blob: fe0d69f34e95345cc3f1a2b8a100a2d778aa759c (
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
|
# $NetBSD: buildlink3.mk,v 1.8 2004/02/05 07:06:15 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
DB2_BUILDLINK3_MK:= ${DB2_BUILDLINK3_MK}+
.if !empty(DB2_BUILDLINK3_MK:M+)
BUILDLINK_PACKAGES+= db
BUILDLINK_DEPENDS.db+= db>=2.7.3
BUILDLINK_PKGSRCDIR.db?= ../../databases/db
.endif # DB2_BUILDLINK3_MK
.if defined(PREFER_PKGSRC)
. if empty(PREFER_PKGSRC) || !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
!empty(PREFER_PKGSRC:Mdb)
BUILDLINK_USE_BUILTIN.db= NO
. endif
.endif
.if !defined(BUILDLINK_USE_BUILTIN.db)
BUILDLINK_USE_BUILTIN.db= NO
. if defined(USE_DB185)
. if exists(/usr/include/db.h)
# NetBSD, Darwin
BUILDLINK_USE_BUILTIN.db= YES
. elif exists(/usr/include/db1/db.h)
# Linux
BUILDLINK_USE_BUILTIN.db= YES
BUILDLINK_INCDIRS.db?= include/db1
BUILDLINK_TRANSFORM+= l:db:db1
. endif
. endif
MAKEFLAGS+= BUILDLINK_USE_BUILTIN.db="${BUILDLINK_USE_BUILTIN.db}"
.endif
.if !empty(BUILDLINK_USE_BUILTIN.db:M[nN][oO])
. if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= db
. endif
.endif
.if !empty(DB2_BUILDLINK3_MK:M+)
. if !empty(BUILDLINK_USE_BUILTIN.db:M[nN][oO])
BUILDLINK_INCDIRS.db= include/db2
BUILDLINK_TRANSFORM+= l:db:db2
. endif
.endif # DB2_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|