summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-03-10 09:46:50 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-03-10 09:46:50 +0000
commite778e7f0bd8ebe1ac9d1401d68c658ccf7cf8dff (patch)
treeff37f8f77538bed87e29d9a5949fc3921c65e4e7
parentd26aa1b8f712304f1fb0905ea4b0cbe22672f1cf (diff)
downloadpkgsrc-e778e7f0bd8ebe1ac9d1401d68c658ccf7cf8dff.tar.gz
bl3ify and add explicit dependency on pkgconfig.
-rw-r--r--databases/dbh/Makefile5
-rw-r--r--databases/dbh/buildlink3.mk18
2 files changed, 21 insertions, 2 deletions
diff --git a/databases/dbh/Makefile b/databases/dbh/Makefile
index 6a2f87770ca..bf353147ff0 100644
--- a/databases/dbh/Makefile
+++ b/databases/dbh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/02/14 18:26:27 jmmv Exp $
+# $NetBSD: Makefile,v 1.6 2004/03/10 09:46:50 xtraeme Exp $
DISTNAME= dbh_1.0-15
PKGNAME= dbh-1.0.15
@@ -10,7 +10,7 @@ HOMEPAGE= http://dbh.sourceforge.net/
COMMENT= Library to create disk based Hashtables
GNU_CONFIGURE= yes
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE= src/dbh-1.0.pc.in
@@ -22,4 +22,5 @@ post-install:
cd ${WRKSRC} && ${INSTALL_DATA} doc/dbh-hash-tables.html \
${PREFIX}/share/doc/dbh/html
+.include "../../devel/pkgconfig/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/dbh/buildlink3.mk b/databases/dbh/buildlink3.mk
new file mode 100644
index 00000000000..a8c57d56f5d
--- /dev/null
+++ b/databases/dbh/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/03/10 09:46:50 xtraeme Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+DBH_BUILDLINK3_MK:= ${DBH_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= dbh
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndbh}
+BUILDLINK_PACKAGES+= dbh
+
+.if !empty(DBH_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.dbh+= dbh>=1.0.14
+BUILDLINK_PKGSRCDIR.dbh?= ../../databases/dbh
+.endif # DBH_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}