diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2004-05-12 17:55:00 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2004-05-12 17:55:00 +0000 |
commit | f7cb3dded2521d629d23df36ba6859b5c0adca8c (patch) | |
tree | afa16019c8b2b784f50f9f60a8498625243b30f1 /databases/ruby-bdb | |
parent | Add ptex-tetex, a version of pTeX that depends on print/teTeX and (diff) |
- Build with db4 instead of db3 by default.
- Always suffix db's version number to PKGNAME.
Notes
Notes:
svn path=/head/; revision=109026
Diffstat (limited to 'databases/ruby-bdb')
-rw-r--r-- | databases/ruby-bdb/Makefile | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile index 792078319e44..864d76faf722 100644 --- a/databases/ruby-bdb/Makefile +++ b/databases/ruby-bdb/Makefile @@ -10,36 +10,29 @@ PORTVERSION= 0.5.0 CATEGORIES= databases ruby MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} -.if defined(WITH_BDB4) -PKGNAMESUFFIX= 4 -.endif +PKGNAMESUFFIX= ${WITH_BDB_VER} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org COMMENT= Ruby interface to Sleepycat's Berkeley DB revision 2 or later -.if defined(WITH_BDB41) -LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41 -.elif defined(WITH_BDB4) -LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 -.else -LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 +LIB_DEPENDS= db${WITH_BDB_VER}:${PORTSDIR}/databases/db${WITH_BDB_VER} + +.if defined(WITH_BDB3) || defined(WITH_DB3) +WITH_BDB_VER= 3 +.elif defined(WITH_BDB4) || defined(WITH_DB4) +WITH_BDB_VER= 4 +.elif defined(WITH_BDB41) || defined(WITH_DB41) +WITH_BDB_VER= 41 .endif +WITH_BDB_VER?= 4 USE_RUBY= yes USE_RUBY_EXTCONF= yes USE_RUBY_RDOC= yes -.if defined(WITH_BDB41) -CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db41" \ - --with-db-version=41 -.elif defined(WITH_BDB4) -CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db4" \ - --with-db-version=4 -.else -CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db3" \ - --with-db-version=3 -.endif +CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db${WITH_BDB_VER}" \ + --with-db-version=${WITH_BDB_VER} INSTALL_TARGET= site-install DOCS= Changes \ |