aboutsummaryrefslogtreecommitdiffstats
path: root/mail/bmf
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-04-18 10:53:13 +0800
committeradamw <adamw@FreeBSD.org>2014-04-18 10:53:13 +0800
commit1f19301b7e044088356e7fb56176b6c14d3054d5 (patch)
tree5f95233b32ea2cf4922ff1fe3f508685b546cc45 /mail/bmf
parent90ac3cb4718e6670e734d6db34ffe09d15c0021c (diff)
downloadfreebsd-ports-graphics-1f19301b7e044088356e7fb56176b6c14d3054d5.tar.gz
freebsd-ports-graphics-1f19301b7e044088356e7fb56176b6c14d3054d5.tar.zst
freebsd-ports-graphics-1f19301b7e044088356e7fb56176b6c14d3054d5.zip
Use OPTIONS helpers, pass proper configure arguments,
and install docs into DOCSDIR, not DATADIR. PORTREVISION bump for that last change.
Diffstat (limited to 'mail/bmf')
-rw-r--r--mail/bmf/Makefile33
-rw-r--r--mail/bmf/pkg-plist4
2 files changed, 15 insertions, 22 deletions
diff --git a/mail/bmf/Makefile b/mail/bmf/Makefile
index 3845fc8c820..a9baad14256 100644
--- a/mail/bmf/Makefile
+++ b/mail/bmf/Makefile
@@ -3,39 +3,32 @@
PORTNAME= bmf
PORTVERSION= 0.9.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Fst Bayesian Mail Filter compatible with maildrop and procmail
+HAS_CONFIGURE= yes
+
OPTIONS_DEFINE= BDB MYSQL DEBUG
OPTIONS_DEFAULT= BDB
-BDB_DESC= Berkeley DB support (may specify w/ WITH_BDB_VER)
-MYSQL_DESC= Adds MySQL Support
+
+BDB_USE= BDB=40+
+BDB_CONFIGURE_WITH= libdb
+
+DEBUG_CONFIGURE_ON= --debug=yes
+
+MYSQL_USE= MYSQL=client
+MYSQL_CONFIGURE_WITH= mysql
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBDB}
-USE_BDB= 40+
CFLAGS+= -I${BDB_INCLUDE_DIR}
LDFLAGS+= -L${BDB_LIB_DIR}
-CONFIGURE_ARGS+=--with-libdb=yes
CONFIGURE_ENV+= DB_LIBNAME=-l${BDB_LIB_NAME}
-.else
-CONFIGURE_ARGS+=--with-libdb=no
-.endif
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL= client
-CONFIGURE_ARGS+=--with-mysql
-.endif
-
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS+= --without-package
-
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+= --debug=yes
.endif
post-patch:
@@ -45,7 +38,7 @@ post-patch:
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmf
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmfconv
- ${MKDIR} ${STAGEDIR}${PREFIX}/share/bmf
- ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/bmf
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/mail/bmf/pkg-plist b/mail/bmf/pkg-plist
index 5d86155f057..91f1e5f4207 100644
--- a/mail/bmf/pkg-plist
+++ b/mail/bmf/pkg-plist
@@ -2,5 +2,5 @@ bin/bmf
bin/bmfconv
man/man1/bmf.1.gz
man/man1/bmfconv.1.gz
-%%DATADIR%%/README
-@dirrm %%DATADIR%%
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%