diff options
author | obache <obache@pkgsrc.org> | 2009-02-22 12:20:17 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-02-22 12:20:17 +0000 |
commit | 8ba1bd4118288b6731a75ef76048df1e31ad0276 (patch) | |
tree | 4adb62f663bf45ef711d2a52ae9637d6e9597605 /editors | |
parent | 8a6b90cf28d47ecb0b51533d6ddfbfe015e0549b (diff) | |
download | pkgsrc-8ba1bd4118288b6731a75ef76048df1e31ad0276.tar.gz |
Fixes configure failure if db1 is not in BDB_ACCEPTED.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/nvi/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editors/nvi/Makefile b/editors/nvi/Makefile index f5276e78234..ba5af830544 100644 --- a/editors/nvi/Makefile +++ b/editors/nvi/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2009/01/16 12:31:51 obache Exp $ +# $NetBSD: Makefile,v 1.36 2009/02/22 12:20:17 obache Exp $ # DISTNAME= nvi-1.81.6 @@ -41,9 +41,12 @@ INSTALL_UNSTRIPPED= yes # Use of db1 is not officially supported. BDB_ACCEPTED= db3 db4 +CONFIGURE_ARGS+= --with-db=system .include "../../mk/bdb.buildlink3.mk" -.if ${BDB_TYPE} == "db1" || ${BDB_TYPE} == "db2" +.if ${BDB_TYPE} == "db1" CONFIGURE_ARGS+= --with-db_type=db1 -.endif +.else CONFIGURE_ARGS+= --with-db-prefix=${BDBBASE} +BUILDLINK_TRANSFORM+= l:db:${BDB_TYPE} +.endif .include "../../mk/bsd.pkg.mk" |