summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorsketch <sketch>2009-09-22 08:37:15 +0000
committersketch <sketch>2009-09-22 08:37:15 +0000
commit822fa3f7650bf98da88d551347fac9b6db22d809 (patch)
tree4625477b6d850e464a6b1e50ea687db499956fe7 /misc
parent58191f7c8b55a43bf88b024a5f6e7536620d2027 (diff)
downloadpkgsrc-822fa3f7650bf98da88d551347fac9b6db22d809.tar.gz
Add an hack to get this building on platforms with USE_DB185.
Diffstat (limited to 'misc')
-rw-r--r--misc/rpm/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/misc/rpm/Makefile b/misc/rpm/Makefile
index 4fe6b39374c..98b69cb4c14 100644
--- a/misc/rpm/Makefile
+++ b/misc/rpm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.66 2008/01/12 23:43:53 heinz Exp $
+# $NetBSD: Makefile,v 1.67 2009/09/22 08:37:15 sketch Exp $
DISTNAME= rpm-2.5.4
PKGREVISION= 6
@@ -33,6 +33,13 @@ MAKE_FLAGS+= ROOT=${DESTDIR}
RPMDIR= ${RPM_DB_PREFIX}/lib/rpm
FILES_SUBST+= RPMDIR=${RPMDIR:Q}
+.include "../../mk/bdb.buildlink3.mk"
+
+# Ugly hack, but easier than fixing our bdb handling / rpm configure for now
+.if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS])
+LDFLAGS+= -ldb
+.endif
+
.include "../../mk/bsd.prefs.mk"
post-configure:
@@ -55,5 +62,4 @@ BROKEN_GETTEXT_DETECTION= yes
.include "../../devel/popt/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
-.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"