Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2004 22:08:59 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Yar Tikhiy <yar@FreeBSD.org>
Subject:   ports/68021: [MAINTAINER] mail/bogofilter: implement WITHOUT_GSL
Message-ID:  <E1BagiR-0006CV-D8@libertas.emma.line.org>
Resent-Message-ID: <200406162010.i5GKAH6i079535@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68021
>Category:       ports
>Synopsis:       [MAINTAINER] mail/bogofilter: implement WITHOUT_GSL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 16 20:10:17 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Mon May 31 15:21:30 CEST 2004
>Description:
Implement WITHOUT_GSL so that bogofilter can statically link against the
GSL component it needs, to avoid the bulky libtool15 and gsl requirements.

Suggested by Yar Tikhiy (Cc'd).

PORTREVISION bump is NOT necessary in so far as the files, dependencies and
pkg-plist are unchanged with the default port options.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- bogofilter-0.17.5_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/bogofilter/Makefile /root/ports/mail/bogofilter/Makefile
--- /usr/ports/mail/bogofilter/Makefile	Mon May 31 12:03:56 2004
+++ /root/ports/mail/bogofilter/Makefile	Wed Jun 16 22:03:23 2004
@@ -16,7 +16,9 @@
 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 @@
 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 @@
 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::
--- bogofilter-0.17.5_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BagiR-0006CV-D8>