diff options
author | joerg <joerg@pkgsrc.org> | 2014-12-11 22:13:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2014-12-11 22:13:08 +0000 |
commit | 54639711e53d0aec21b8e389ea881748015b13af (patch) | |
tree | 045c1c0ff3fa857415f9dae892451f18ac5586c8 /misc | |
parent | 9dd84c92c5cf790991b5be911d7c896c80bc6802 (diff) | |
download | pkgsrc-54639711e53d0aec21b8e389ea881748015b13af.tar.gz |
Replace rename with l to work with both old and new wrappers.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/rpm/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/misc/rpm/Makefile b/misc/rpm/Makefile index 70af5f40594..4d145770ee6 100644 --- a/misc/rpm/Makefile +++ b/misc/rpm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.83 2014/08/08 15:00:54 dholland Exp $ +# $NetBSD: Makefile,v 1.84 2014/12/11 22:13:08 joerg Exp $ DISTNAME= rpm-4.11.1 PKGREVISION= 2 @@ -37,12 +37,15 @@ CONFIGURE_ARGS+= --without-lua CONFIGURE_ARGS+= --with-external-db BDB_ACCEPTED= db4 db5 - +.include "../../mk/bdb.buildlink3.mk" +.if ${BDB_TYPE} == "db4" +BUILDLINK_TRANSFORM+= l:db:db4 +.else +BUILDLINK_TRANSFORM+= l:db:db5 +.endif # The rpm databases are kept under ${RPM_DB_PREFIX}/lib/rpm. CONFIGURE_ENV+= varprefix=${RPM_DB_PREFIX:Q} -# Needs help finding bdb. -BUILDLINK_TRANSFORM+= rename:-ldb:${BDB_LIBS} LDFLAGS+= ${PTHREAD_LDFLAGS} MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man8 @@ -82,5 +85,4 @@ SUBST_SED.mkd+= -e 's,${TOOLS_CMD.mkdir},${TOOLS_PATH.mkdir},' .include "../../devel/zlib/buildlink3.mk" .include "../../sysutils/file/buildlink3.mk" # for libmagic. -.include "../../mk/bdb.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |