pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mutt-devel Fix detection of Berkeley db4 if /usr/...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2546fa9145b
branches:  trunk
changeset: 498774:d2546fa9145b
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Sep 03 03:21:23 2005 +0000

description:
Fix detection of Berkeley db4 if /usr/include/db.h exists and happens
to pass mutt's weak configure tests.  Fixes build with the "mutt-hcache"
option on FreeBSD-4.

diffstat:

 mail/mutt-devel/distinfo         |   3 ++-
 mail/mutt-devel/options.mk       |  10 +++++++++-
 mail/mutt-devel/patches/patch-al |  22 ++++++++++++++++++++++
 3 files changed, 33 insertions(+), 2 deletions(-)

diffs (64 lines):

diff -r 6d6e8f30faa1 -r d2546fa9145b mail/mutt-devel/distinfo
--- a/mail/mutt-devel/distinfo  Fri Sep 02 23:15:36 2005 +0000
+++ b/mail/mutt-devel/distinfo  Sat Sep 03 03:21:23 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2005/08/20 21:58:00 jlam Exp $
+$NetBSD: distinfo,v 1.25 2005/09/03 03:21:23 jlam Exp $
 
 SHA1 (mutt-1.5.9i.tar.gz) = a380747b86f11b2b3bf3c4407e70bfebe6d0af02
 RMD160 (mutt-1.5.9i.tar.gz) = 888848046382b3c4e8b18eacd30af4291a7ed23d
@@ -9,3 +9,4 @@
 SHA1 (patch-ag) = 97200a45130506d79d41884c130825d502806a76
 SHA1 (patch-ah) = 4227c5768b900e58fa4a679e6ad67efc974a70b5
 SHA1 (patch-ai) = e9a872cdde09dfae012d63a475f100e8be70acb5
+SHA1 (patch-al) = 9a2c61fae88c6c42534490ee19498677a355c276
diff -r 6d6e8f30faa1 -r d2546fa9145b mail/mutt-devel/options.mk
--- a/mail/mutt-devel/options.mk        Fri Sep 02 23:15:36 2005 +0000
+++ b/mail/mutt-devel/options.mk        Sat Sep 03 03:21:23 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.7 2005/08/02 13:15:40 tonio Exp $
+# $NetBSD: options.mk,v 1.8 2005/09/03 03:21:23 jlam Exp $
 
 # Global and legacy options
 
@@ -47,6 +47,14 @@
 BDB_ACCEPTED=          db4
 .  include "../../mk/bdb.buildlink3.mk"
 CONFIGURE_ARGS+=       --enable-hcache
+CONFIGURE_ARGS+=       --without-gdbm
+#
+# BDB_INCLUDE_DIR_ and BDB_LIB_DIR don't have to be particularly accurate
+# since the real -I and -L flags are added by buildlink already.
+#
+CONFIGURE_ENV+=                BDB_INCLUDE_DIR=${BDBBASE}/include
+CONFIGURE_ENV+=                BDB_LIB_DIR=${BDBBASE}/lib
+CONFIGURE_ENV+=                BDB_LIB=${BDB_LIBS:S/^-l//}
 .else
 CONFIGURE_ARGS+=       --disable-hcache
 .endif
diff -r 6d6e8f30faa1 -r d2546fa9145b mail/mutt-devel/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mutt-devel/patches/patch-al  Sat Sep 03 03:21:23 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-al,v 1.3 2005/09/03 03:21:23 jlam Exp $
+
+--- configure.orig     Sun Mar 13 16:36:32 2005
++++ configure
+@@ -14107,6 +14107,7 @@ if test "${with_bdb+set}" = set; then
+   withval="$with_bdb"
+   ac_bdb_prefix=$withval
+ fi;
++    if test x$BDB_INCLUDE_DIR = x -o test x$BDB_LIB_DIR = x -o test x$BDB_LIB = x; then
+     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
+         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
+         for d in $ac_bdb_prefix; do
+@@ -14198,6 +14199,9 @@ echo "${ECHO_T}yes" >&6
+             echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+         fi
++    fi
++    else
++        ac_cv_dbcreate=yes
+     fi
+ 
+     if test x$ac_cv_gdbmopen = xyes; then



Home | Main Index | Thread Index | Old Index