From a5070101e064a9dfc32bba7fadc85c5b1f73d06b Mon Sep 17 00:00:00 2001 From: xtraeme Date: Wed, 10 Mar 2004 09:46:50 +0000 Subject: bl3ify and add explicit dependency on pkgconfig. --- databases/dbh/Makefile | 5 +++-- databases/dbh/buildlink3.mk | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 databases/dbh/buildlink3.mk (limited to 'databases/dbh') 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/+$//} -- cgit v1.2.3