diff options
author | jlam <jlam> | 2004-01-03 23:06:43 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-01-03 23:06:43 +0000 |
commit | 0d6c711ce586532632e1ae1b985d86085faa4580 (patch) | |
tree | 7815453a8a5d5cc91288c15c8c52893726b1e2bc /databases/db | |
parent | 7c4feed9a8d4596547ef84ababb069e65e478323 (diff) | |
download | pkgsrc-0d6c711ce586532632e1ae1b985d86085faa4580.tar.gz |
Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
Diffstat (limited to 'databases/db')
-rw-r--r-- | databases/db/buildlink3.mk | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/databases/db/buildlink3.mk b/databases/db/buildlink3.mk new file mode 100644 index 00000000000..a9518948b67 --- /dev/null +++ b/databases/db/buildlink3.mk @@ -0,0 +1,41 @@ +# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 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(_NEED_DB2) +_NEED_DB2= YES +. if defined(USE_DB185) +. if exists(/usr/include/db.h) # NetBSD, Darwin +BUILDLINK_PREFIX.db= /usr +_NEED_DB2= NO +. 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 +. endif +. endif +MAKEFLAGS+= _NEED_DB2="${_NEED_DB2}" +.endif + +.if ${_NEED_DB2} == "YES" +. if !empty(BUILDLINK_DEPTH:M\+) +BUILDLINK_DEPENDS+= db +. endif +.endif + +.if !empty(DB2_BUILDLINK3_MK:M\+) +. if ${_NEED_DB2} == "YES" +BUILDLINK_INCDIRS.db= include/db2 +BUILDLINK_TRANSFORM+= l:db:db2 +. endif +.endif # DB2_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} |