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 | ff41a8cc881a406f0cdae8d07ad7caff7babf2b7 (patch) | |
tree | 4adb62f663bf45ef711d2a52ae9637d6e9597605 /editors | |
parent | 1bf9f119939e9e35d500477d181e1690440b5ebe (diff) | |
download | pkgsrc-ff41a8cc881a406f0cdae8d07ad7caff7babf2b7.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" |