diff options
author | knu <knu@FreeBSD.org> | 2002-01-16 05:56:52 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-01-16 05:56:52 +0800 |
commit | f930cd5ee96d758ff7f1172adc99ce88de26f1a8 (patch) | |
tree | 05518c47e13a519d3733e810b4bb8bd3c4eea0a5 | |
parent | e3e572e3730000816623178b44f99f4a9e67bd9d (diff) | |
download | freebsd-ports-gnome-f930cd5ee96d758ff7f1172adc99ce88de26f1a8.tar.gz freebsd-ports-gnome-f930cd5ee96d758ff7f1172adc99ce88de26f1a8.tar.zst freebsd-ports-gnome-f930cd5ee96d758ff7f1172adc99ce88de26f1a8.zip |
Add a WITH_BDB4 knob.
-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/* |