diff options
Diffstat (limited to 'databases/db')
-rw-r--r-- | databases/db/buildlink3.mk | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/databases/db/buildlink3.mk b/databases/db/buildlink3.mk index fbb6638add0..2136defaad3 100644 --- a/databases/db/buildlink3.mk +++ b/databases/db/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.2 2004/01/04 23:34:05 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.3 2004/01/05 09:31:31 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ DB2_BUILDLINK3_MK:= ${DB2_BUILDLINK3_MK}+ @@ -9,30 +9,28 @@ BUILDLINK_DEPENDS.db?= db>=2.7.3 BUILDLINK_PKGSRCDIR.db?= ../../databases/db .endif # DB2_BUILDLINK3_MK -.if !defined(_NEED_DB2) -_NEED_DB2= YES +.if !defined(BUILDLINK_USE_BUILTIN.db) +BUILDLINK_USE_BUILTIN.db= NO . if defined(USE_DB185) . if exists(/usr/include/db.h) # NetBSD, Darwin -BUILDLINK_PREFIX.db= /usr -_NEED_DB2= NO +BUILDLINK_USE_BUILTIN.db= YES . elif exists(/usr/include/db1/db.h) # Linux -BUILDLINK_PREFIX.db= /usr -BUILDLINK_INCDIRS.db= include/db1 -BUILDLINK_TRANSFORM+= l:db:db1 -_NEED_DB2= NO +BUILDLINK_USE_BUILTIN.db= YES +BUILDLINK_INCDIRS.db?= include/db1 +BUILDLINK_TRANSFORM+= l:db:db1 . endif . endif -MAKEFLAGS+= _NEED_DB2="${_NEED_DB2}" +MAKEFLAGS+= BUILDLINK_USE_BUILTIN.db="${BUILDLINK_USE_BUILTIN.db}" .endif -.if ${_NEED_DB2} == "YES" +.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 ${_NEED_DB2} == "YES" +. if !empty(BUILDLINK_USE_BUILTIN.db:M[nN][oO]) BUILDLINK_INCDIRS.db= include/db2 BUILDLINK_TRANSFORM+= l:db:db2 . endif |