diff options
author | leeym <leeym@FreeBSD.org> | 2006-04-06 18:37:17 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2006-04-06 18:37:17 +0800 |
commit | f77843078c60584fbcb97dc2cd0b290bbb164c0e (patch) | |
tree | effef22692877b8f7676d3077d98b8d0a1ecf785 /devel/apr | |
parent | 2303e27935d9ea34f0276983d268d52d128ea57d (diff) | |
download | freebsd-ports-gnome-f77843078c60584fbcb97dc2cd0b290bbb164c0e.tar.gz freebsd-ports-gnome-f77843078c60584fbcb97dc2cd0b290bbb164c0e.tar.zst freebsd-ports-gnome-f77843078c60584fbcb97dc2cd0b290bbb164c0e.zip |
- utilize USE_BDB
PR: 89023
Submitted by: swhetzel at gmail.com
Approved by: maintainer
Diffstat (limited to 'devel/apr')
-rw-r--r-- | devel/apr/Makefile | 28 | ||||
-rw-r--r-- | devel/apr/files/patch-apr-util_build_dbm.m4 | 21 | ||||
-rw-r--r-- | devel/apr/files/patch-apr-util_configure | 21 |
3 files changed, 59 insertions, 11 deletions
diff --git a/devel/apr/Makefile b/devel/apr/Makefile index ef33fce9f6bb..f8badb63961b 100644 --- a/devel/apr/Makefile +++ b/devel/apr/Makefile @@ -29,7 +29,6 @@ LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2 USE_ICONV= yes USE_AUTOTOOLS= automake:19 autoconf:259 libtool:15:env -USE_REINPLACE= yes USE_PERL5= yes USE_GMAKE= yes USE_PYTHON_BUILD= yes @@ -63,22 +62,29 @@ CONFIGURE_ARGS+= --enable-threads APR_UTIL_CONF_ARGS+= --without-gdbm .elif defined(APR_UTIL_WITH_GDBM) || exists(${LOCALBASE}/lib/libgdbm.so.3) LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm +APR_UTIL_CONF_ARGS+= --with-gdbm=${LOCALBASE} .if defined(PKGNAMESUFFIX) PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-gdbm .else PKGNAMESUFFIX= -gdbm .endif +.else +APR_UTIL_CONF_ARGS+= --without-gdbm +.endif + +.if defined(WITH_BDB) +APR_UTIL_WITH_BERKELEY_DB= yes .endif .if defined(APR_UTIL_WITHOUT_BERKELEY_DB) APR_UTIL_CONF_ARGS+= --without-berkeley-db .elif defined(APR_UTIL_WITH_BERKELEY_DB) || exists(${LOCALBASE}/lib/libdb-4.2.so.2) -LIB_DEPENDS+= db-4.2.2:${PORTSDIR}/databases/db42 -APR_UTIL_CONF_ARGS+= --with-berkeley-db=${PREFIX} +USE_BDB= 42+ +APR_UTIL_CONF_ARGS+= --with-berkeley-db=${BDB_INCLUDE_DIR}:${BDB_LIB_DIR} .if defined(PKGNAMESUFFIX) -PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-db4 +PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-${BDB_INCLUDE_DIR:S,^${LOCALBASE}/include/,,} .else -PKGNAMESUFFIX= -db4 +PKGNAMESUFFIX= -${BDB_INCLUDE_DIR:S,^${LOCALBASE}/include/,,} .endif .endif @@ -116,15 +122,15 @@ pre-extract: .endif @${ECHO_MSG} "" .if defined(APR_UTIL_WITHOUT_BERKELEY_DB) - @${ECHO_MSG} "Berkeley db4.2 support is disabled." + @${ECHO_MSG} "Berkeley DB support is disabled." .elif defined(APR_UTIL_WITH_BERKELEY_DB) - @${ECHO_MSG} "Berkeley db4.2 support forced." + @${ECHO_MSG} "Berkeley DB support forced." .elif exists(${LOCALBASE}/lib/libdb-4.2.so.2) @${ECHO_MSG} "Berkeley db4.2 support is enabled." @${ECHO_MSG} "You can disable Berkeley db4.2 support by defining APR_UTIL_WITHOUT_BERKELEY_DB." .else - @${ECHO_MSG} "Berkeley db4.2 was not found." - @${ECHO_MSG} "You can force Berkeley db4.2 support by defining APR_UTIL_WITH_BERKELEY_DB." + @${ECHO_MSG} "Berkeley DB was not found." + @${ECHO_MSG} "You can force Berkeley DB support by defining APR_UTIL_WITH_BERKELEY_DB." .endif @${ECHO_MSG} "" @@ -164,8 +170,8 @@ do-build: cd ${WRKDIR}/apr-util-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE} do-install: - cd ${WRKDIR}/apr-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE} install - cd ${WRKDIR}/apr-util-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE} install + cd ${WRKDIR}/apr-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${INSTALL_TARGET} + cd ${WRKDIR}/apr-util-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${INSTALL_TARGET} debug_autoconf: @echo "LIBTOOL: ${LIBTOOL_VERSION}" diff --git a/devel/apr/files/patch-apr-util_build_dbm.m4 b/devel/apr/files/patch-apr-util_build_dbm.m4 new file mode 100644 index 000000000000..cb7dd1128ba4 --- /dev/null +++ b/devel/apr/files/patch-apr-util_build_dbm.m4 @@ -0,0 +1,21 @@ +--- apr-util-1.2.2/build/dbm.m4-orig Wed Dec 7 09:02:23 2005 ++++ apr-util-1.2.2/build/dbm.m4 Wed Dec 23 09:07:34 2005 +@@ -588,6 +588,8 @@ + elif test "$withval" = "no"; then + apu_have_gdbm=0 + else ++ saved_cppflags="$CPPFLAGS" ++ saved_libs="$LIBS" + CPPFLAGS="-I$withval/include" + LIBS="-L$withval/lib " + +@@ -597,6 +599,9 @@ + APR_ADDTO(APRUTIL_LDFLAGS, [-L$withval/lib]) + APR_ADDTO(APRUTIL_INCLUDES, [-I$withval/include]) + fi ++ ++ CPPFLAGS="$saved_cppflags" ++ LIBS="$saved_libs" + fi + ], [ + apu_have_gdbm=0 diff --git a/devel/apr/files/patch-apr-util_configure b/devel/apr/files/patch-apr-util_configure new file mode 100644 index 000000000000..c1571922898b --- /dev/null +++ b/devel/apr/files/patch-apr-util_configure @@ -0,0 +1,21 @@ +--- apr-util-1.2.2/configure.orig Mon Sep 26 18:28:49 2005 ++++ apr-util-1.2.2/configure Fri Dec 23 15:06:09 2005 +@@ -13806,6 +13806,8 @@ + elif test "$withval" = "no"; then + apu_have_gdbm=0 + else ++ saved_cppflags="$CPPFLAGS" ++ saved_libs="$LIBS" + CPPFLAGS="-I$withval/include" + LIBS="-L$withval/lib " + +@@ -14064,6 +14066,9 @@ + fi + + fi ++ ++ CPPFLAGS="$saved_cppflags" ++ LIBS="$saved_libs" + fi + + else |