diff options
-rw-r--r-- | databases/ruby-bdb/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile index eeb9c2ec2409..1bc6163bcce8 100644 --- a/databases/ruby-bdb/Makefile +++ b/databases/ruby-bdb/Makefile @@ -10,17 +10,27 @@ PORTVERSION= 0.2.9 CATEGORIES= databases ruby MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +#.if defined(WITH_BDB4) +#PKGNAMESUFFIX= 4 +#.endif DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org +.if defined(WITH_BDB4) +LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 +.else LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3 +.endif USE_RUBY= yes USE_RUBY_EXTCONF= yes -CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db3" \ - --with-db-lib-dir="${PREFIX}/lib/db3" +.if defined(WITH_BDB4) +CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db4" +.else +CONFIGURE_ARGS= --with-db-include-dir="${PREFIX}/include/db3" +.endif INSTALL_TARGET= site-install DOCS= Changes README.en bdb.html bdb.rd docs/* |