summaryrefslogtreecommitdiffstats
path: root/mail/bogofilter
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-06-17 07:10:44 +0000
committeryar <yar@FreeBSD.org>2004-06-17 07:10:44 +0000
commitee5aa07d39d86344d8e240b081334dd3d24e7e21 (patch)
treecd055addfeefe9c5d4396c32d83c985615e6626d /mail/bogofilter
parentf775f99cb10c3a19880873eea458b0500433e73b (diff)
downloadFreeBSD-ports-ee5aa07d39d86344d8e240b081334dd3d24e7e21.zip
FreeBSD-ports-ee5aa07d39d86344d8e240b081334dd3d24e7e21.tar.gz
Implement WITHOUT_GSL so that bogofilter can statically link against the
internal GSL subset, to avoid the bulky libtool and gsl requirements. PR: ports/68021 Submitted by: Matthias Andree (as maintainer)
Diffstat (limited to 'mail/bogofilter')
-rw-r--r--mail/bogofilter/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile
index c0c396d..e545002 100644
--- a/mail/bogofilter/Makefile
+++ b/mail/bogofilter/Makefile
@@ -16,7 +16,9 @@ MAINTAINER= matthias.andree@gmx.de
COMMENT= "Fast, teachable, learning spam detector"
LIB_DEPENDS?= db-4.2:${PORTSDIR}/databases/db42
+.if !defined(WITHOUT_GSL)
LIB_DEPENDS+= gsl.5:${PORTSDIR}/math/gsl
+.endif
.if !defined(WITHOUT_BASH)
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
.endif
@@ -29,6 +31,9 @@ USE_PERL5_RUN= yes
GNU_CONFIGURE= yes
PATCH_STRIP= -p1
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
+.if defined(WITHOUT_GSL)
+CONFIGURE_ARGS+= --with-included-gsl
+.endif
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db42" \
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-ldb-4.2"
CONFIGURE_ENV+= PERL="${PERL}"
@@ -53,13 +58,21 @@ post-patch:
PORTDOCS= *
.endif
-.if !defined(WITHOUT_BASH)
pre-everything::
- @${ECHO_CMD} "----------------------------------------------------------------------------"
+ @${ECHO_CMD} ""
+.if !defined(WITHOUT_BASH)
@${ECHO_CMD} "To install without bash dependency, you can use: make -DWITHOUT_BASH install"
@${ECHO_CMD} "Note that installing without bash dependency will mean that some of the"
@${ECHO_CMD} "${DOCSDIR}/contrib scripts will not be installed."
- @${ECHO_CMD} "----------------------------------------------------------------------------"
+ @${ECHO_CMD} ""
+.endif
+.if !defined(WITHOUT_GSL)
+ @${ECHO_CMD} "To have bogofilter link against its shipped GSL 1.4 statically,"
+ @${ECHO_CMD} "you can use: make -DWITHOUT_GSL && make -DWITHOUT_GSL install"
+.if !defined(WITHOUT_BASH)
+ @${ECHO_CMD} "or: make -DWITHOUT_GSL && make -DWITHOUT_GSL -DWITHOUT_BASH install"
+.endif
+ @${ECHO_CMD} ""
.endif
post-build::
OpenPOWER on IntegriCloud