aboutsummaryrefslogtreecommitdiff
path: root/devel/apr
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2006-04-06 10:37:17 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2006-04-06 10:37:17 +0000
commit7d2ec338bd47e706f74ff614e2f3b48f400bfed7 (patch)
tree5d41c604eceddf8b94890040f57a8a0a4ee32801 /devel/apr
parenteb6a1144fdc52059833f4e2804f8ca84a290c777 (diff)
downloadports-7d2ec338bd47e706f74ff614e2f3b48f400bfed7.tar.gz
ports-7d2ec338bd47e706f74ff614e2f3b48f400bfed7.zip
Notes
Diffstat (limited to 'devel/apr')
-rw-r--r--devel/apr/Makefile28
-rw-r--r--devel/apr/files/patch-apr-util_build_dbm.m421
-rw-r--r--devel/apr/files/patch-apr-util_configure21
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