From 1aefc880899193f470418b7e66451b92e8721395 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 10 Sep 2005 10:01:17 +0000 Subject: [PATCH] fix WANTLIB, revisit linking issue later --- mail/bogofilter/Makefile | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile index e762d9981a7..576c4e7d7d5 100644 --- a/mail/bogofilter/Makefile +++ b/mail/bogofilter/Makefile @@ -1,25 +1,26 @@ -# $OpenBSD: Makefile,v 1.2 2004/11/27 12:02:26 sturm Exp $ +# $OpenBSD: Makefile,v 1.3 2005/09/10 10:01:17 espie Exp $ -DISTNAME=bogofilter-0.92.8 +DISTNAME= bogofilter-0.92.8 +PKGNAME= ${DISTNAME}p0 -CATEGORIES=mail -COMMENT='bayesian spam filter' -MAINTAINER=Marc Espie +CATEGORIES= mail +COMMENT= 'bayesian spam filter' +MAINTAINER= Marc Espie -MASTER_SITES=${MASTER_SITE_SOURCEFORGE:=bogofilter/} +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bogofilter/} CONFIGURE_STYLE=gnu -FLAVORS=db4 +FLAVORS= db4 FLAVOR?= .if ${FLAVOR:L} == "db4" -DB_INC=${LOCALBASE}/include/db4 -DB_LIB=${LOCALBASE}/lib/db4 -LIB_DEPENDS+=lib/db4/db.=4:db-4.*:databases/db/v4 +DB_INC= ${LOCALBASE}/include/db4 +DB_LIB= ${LOCALBASE}/lib/db4 +LIB_DEPENDS+= lib/db4/db.=4:db-4.*:databases/db/v4 .else -DB_INC=${LOCALBASE}/include/db -DB_LIB=${LOCALBASE}/lib/db -LIB_DEPENDS+=lib/db/db.=3:db-3.*:databases/db/v3 +DB_INC= ${LOCALBASE}/include/db +DB_LIB= ${LOCALBASE}/lib/db +LIB_DEPENDS+= lib/db/db.=3:db-3.*:databases/db/v3 .endif @@ -28,6 +29,7 @@ CONFIGURE_ENV+=LDFLAGS='-L${DB_LIB}' CONFIGURE_ARGS+=--with-included-gsl +WANTLIB= c m # GPL PERMIT_DISTFILES_CDROM=Yes @@ -36,6 +38,7 @@ PERMIT_PACKAGE_CDROM=Yes PERMIT_PACKAGE_FTP=Yes SAMPLEDIR=${PREFIX}/share/examples/bogofilter + post-install: ${INSTALL_DATA_DIR} ${SAMPLEDIR} mv ${WRKINST}${SYSCONFDIR}/bogofilter.cf.example ${SAMPLEDIR}