aboutsummaryrefslogtreecommitdiff
path: root/mail/bmf
diff options
context:
space:
mode:
authorSean Chittenden <seanc@FreeBSD.org>2003-04-04 22:30:16 +0000
committerSean Chittenden <seanc@FreeBSD.org>2003-04-04 22:30:16 +0000
commit29a22bf2728d257b5cfdc8b0179602f868665120 (patch)
tree521d393a7d1c6ff3dc0211ce3ffb0f5e28b41192 /mail/bmf
parent19963ed070082e336b99dfb45045827b27ca5b0c (diff)
downloadports-29a22bf2728d257b5cfdc8b0179602f868665120.tar.gz
ports-29a22bf2728d257b5cfdc8b0179602f868665120.zip
Notes
Diffstat (limited to 'mail/bmf')
-rw-r--r--mail/bmf/Makefile7
-rw-r--r--mail/bmf/files/patch-configure14
2 files changed, 21 insertions, 0 deletions
diff --git a/mail/bmf/Makefile b/mail/bmf/Makefile
index 3684b74f4fba..459150288071 100644
--- a/mail/bmf/Makefile
+++ b/mail/bmf/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bmf
PORTVERSION= 0.9.4
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,10 +17,16 @@ COMMENT= A fast Bayesian Mail Filter compatible with maildrop and procmail
.if defined(WITH_BDB41)
LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
+CONFIGURE_ENV+= LDFLAGS=-L${LOCALBASE}/lib
+CONFIGURE_ENV+= DB_LIBNAME=-ldb41
.elif defined(WITH_BDB4)
LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
+CONFIGURE_ENV+= LDFLAGS=-L${LOCALBASE}/lib
+CONFIGURE_ENV+= DB_LIBNAME=-ldb4
.else
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
+CONFIGURE_ENV+= LDFLAGS=-L${LOCALBASE}/lib
+CONFIGURE_ENV+= DB_LIBNAME=-ldb3
.endif
HAS_CONFIGURE= yes
diff --git a/mail/bmf/files/patch-configure b/mail/bmf/files/patch-configure
new file mode 100644
index 000000000000..fcc2f62d900a
--- /dev/null
+++ b/mail/bmf/files/patch-configure
@@ -0,0 +1,14 @@
+--- configure.orig Fri Apr 4 14:07:12 2003
++++ configure Fri Apr 4 14:08:48 2003
+@@ -134,9 +134,9 @@
+ AR=ar
+ ARFLAGS="-rc"
+ LD=gcc
+- LDFLAGS="$LDDBG"
++ LDFLAGS="${LDFLAGS}"
+ SYSLIBS=""
+- LIBDB_LIB=""
++ LIBDB_LIB="${DB_LIBNAME}"
+ MYSQL_LIB="-lmysqlclient"
+ ;;
+ OpenBSD)