diff options
author | marcus <marcus@FreeBSD.org> | 2006-10-09 02:51:57 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2006-10-09 02:51:57 +0800 |
commit | fd6408d8c1ccd36adac5a67b544d3ed2f2a80a77 (patch) | |
tree | 47ba36c03d196c6a018bcea62c3e750712aff6b1 /net | |
parent | f0245836203e9a119f108230e4bd11522ed695e5 (diff) | |
download | freebsd-ports-gnome-fd6408d8c1ccd36adac5a67b544d3ed2f2a80a77.tar.gz freebsd-ports-gnome-fd6408d8c1ccd36adac5a67b544d3ed2f2a80a77.tar.zst freebsd-ports-gnome-fd6408d8c1ccd36adac5a67b544d3ed2f2a80a77.zip |
Fix detection of BDB libraries.
Diffstat (limited to 'net')
-rw-r--r-- | net/netatalk/Makefile | 3 | ||||
-rw-r--r-- | net/netatalk/files/patch-configure | 75 |
2 files changed, 73 insertions, 5 deletions
diff --git a/net/netatalk/Makefile b/net/netatalk/Makefile index 0684b6efa549..dbb7c6af253f 100644 --- a/net/netatalk/Makefile +++ b/net/netatalk/Makefile @@ -86,7 +86,8 @@ pre-everything:: @${ECHO_MSG} "" post-patch: - @${REINPLACE_CMD} -e 's|%%BDB_NAME%%|${BDB_INCLUDE_DIR:T}|' \ + @${REINPLACE_CMD} -e 's|%%BDB_NAME%%|${BDB_INCLUDE_DIR:T}| ; \ + s|%%DB_LIB%%|-l${BDB_LIB_NAME}|g' \ ${WRKSRC}/configure post-install: diff --git a/net/netatalk/files/patch-configure b/net/netatalk/files/patch-configure index 2801280ef7b7..c045ceab4ff0 100644 --- a/net/netatalk/files/patch-configure +++ b/net/netatalk/files/patch-configure @@ -1,11 +1,78 @@ ---- configure.orig Sat Aug 28 03:20:01 2004 -+++ configure Sat Aug 28 03:20:14 2004 -@@ -15118,7 +15118,7 @@ +--- configure.orig Tue May 17 18:14:29 2005 ++++ configure Sun Oct 8 14:47:02 2006 +@@ -15057,7 +15057,7 @@ if test "x$bdb_required" = "xyes"; then trybdbdir="" dobdbsearch=yes bdb_search_dirs="/usr/local/include /usr/include" - search_subdirs="/db4.2 /db42 /db4.1 /db41 /db4 /" -+ search_subdirs="/%%BDB_NAME%% /db4.2 /db42 /db4.1 /db41 /db4 /" ++ search_subdirs="/%%DB_NAME%% /db4.2 /db42 /db4.1 /db41 /db4 /" DB_MAJOR_REQ=4 DB_MINOR_REQ=1 +@@ -15198,6 +15198,66 @@ echo "${ECHO_T}yes" >&6 + LDFLAGS="-L$bdblibdir $LDFLAGS" + + atalk_cv_lib_db=no ++if test $atalk_cv_lib_db = no ; then ++ echo "$as_me:$LINENO: checking for Berkeley DB link (%%DB_LIB%%)" >&5 ++echo $ECHO_N "checking for Berkeley DB link (%%DB_LIB%%)... $ECHO_C" >&6 ++ atalk_DB_LIB=%%DB_LIB%% ++ atalk_LIBS=$LIBS ++ LIBS="$atalk_DB_LIB $LIBS" ++ ++ cat >conftest.$ac_ext <<_ACEOF ++#line $LINENO "configure" ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#include <db.h> ++ ++int ++main () ++{ ++ ++ char *version; ++ int major, minor, patch; ++ ++ version = db_version( &major, &minor, &patch ); ++ return (0); ++ ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ++ (eval $ac_link) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && ++ { ac_try='test -s conftest$ac_exeext' ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ atalk_cv_db_db_lib=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++atalk_cv_db_db_lib=no ++fi ++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ++ ++ echo "$as_me:$LINENO: result: $atalk_cv_db_db_lib" >&5 ++echo "${ECHO_T}$atalk_cv_db_db_lib" >&6 ++ LIBS="$atalk_LIBS" ++ if test $atalk_cv_db_db_lib = yes ; then ++ atalk_cv_lib_db=%%DB_LIB%% ++ fi ++fi ++ + if test $atalk_cv_lib_db = no ; then + echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5 + echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6 |