diff options
author | jlam <jlam> | 2004-01-05 09:31:31 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-01-05 09:31:31 +0000 |
commit | d6bfa06973a35023677999e5c61d93db3b76aee9 (patch) | |
tree | 5e468c9c5f542e31226f7780d62182ff9f54b072 /databases/db | |
parent | ecc4f995c404a2f0ab096f7bf737647d47ec256f (diff) | |
download | pkgsrc-d6bfa06973a35023677999e5c61d93db3b76aee9.tar.gz |
Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables.
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 |