blob: 991610b0cc5198a40ff322aa6d0f8f137c982f5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: buildlink2.mk,v 1.7 2004/02/12 02:35:06 jlam Exp $
.if !defined(HESIOD_BUILDLINK2_MK)
HESIOD_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
BUILDLINK_DEPENDS.hesiod?= hesiod>=3.0.2
BUILDLINK_PKGSRCDIR.hesiod?= ../../net/hesiod
.if exists(/usr/include/hesiod.h)
_BUILTIN_HESIOD= YES
.else
_BUILTIN_HESIOD= NO
.endif
.if ${_BUILTIN_HESIOD} == "YES"
_NEED_HESIOD= NO
.else
_NEED_HESIOD= YES
.endif
.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
${_BUILTIN_HESIOD} == "YES"
_NEED_HESIOD= NO
.endif
.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
_NEED_HESIOD= YES
.endif
.if !empty(PREFER_NATIVE:Mhesiod) && \
${_BUILTIN_HESIOD} == "YES"
_NEED_HESIOD= NO
.endif
.if !empty(PREFER_PKGSRC:Mhesiod)
_NEED_HESIOD= YES
.endif
.if defined(USE_HESIOD)
_NEED_HESIOD= YES
.endif
.if ${_NEED_HESIOD} == "YES"
BUILDLINK_PACKAGES+= hesiod
EVAL_PREFIX+= BUILDLINK_PREFIX.hesiod=hesiod
BUILDLINK_PREFIX.hesiod_DEFAULT= ${LOCALBASE}
.else
BUILDLINK_PREFIX.hesiod= /usr
.endif
BUILDLINK_FILES.hesiod= include/hesiod.h
#
# if lib/libhesiod.* does not exists assume hesiod service is included in libc
#
BUILDLINK_FILES.hesiod+= lib/libhesiod.*
BUILDLINK_TARGETS+= hesiod-buildlink
hesiod-buildlink: _BUILDLINK_USE
.endif # HESIOD_BUILDLINK2_MK
|