diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-12-11 11:09:26 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-12-11 11:09:26 +0000 |
commit | 4babb74c41dc43684e2caab453a90768a5abb2e2 (patch) | |
tree | ffbb912315fc0a280270996020a5c42d6cdc91cc /mail/bmf | |
parent | - Move print/py-cups to print/py-pycups (diff) |
- Add LICENSE
- Switch to options helpers
Notes
Notes:
svn path=/head/; revision=403518
Diffstat (limited to 'mail/bmf')
-rw-r--r-- | mail/bmf/Makefile | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/mail/bmf/Makefile b/mail/bmf/Makefile index 193f848899a6..75430000d514 100644 --- a/mail/bmf/Makefile +++ b/mail/bmf/Makefile @@ -10,35 +10,35 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Fst Bayesian Mail Filter compatible with maildrop and procmail +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + HAS_CONFIGURE= yes OPTIONS_DEFINE= BDB MYSQL DEBUG DOCS OPTIONS_DEFAULT=BDB -BDB_USE= BDB=40+ +BDB_USE= BDB=40+ BDB_CONFIGURE_WITH= libdb +BDB_CFLAGS= -I${BDB_INCLUDE_DIR} +BDB_LDFLAGS= -L${BDB_LIB_DIR} +BDB_CONFIGURE_ENV= DB_LIBNAME=-l${BDB_LIB_NAME} DEBUG_CONFIGURE_ON= --debug=yes -MYSQL_USE= MYSQL=client +MYSQL_USE= MYSQL=client MYSQL_CONFIGURE_WITH= mysql -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MBDB} -CFLAGS+= -I${BDB_INCLUDE_DIR} -LDFLAGS+= -L${BDB_LIB_DIR} -CONFIGURE_ENV+= DB_LIBNAME=-l${BDB_LIB_NAME} -.endif - post-patch: - ${REINPLACE_CMD} -e 's/@@CC/${CC}/;s/@@CXX/${CXX}/' ${WRKSRC}/configure - ${REINPLACE_CMD} -e 's/: checkroot/: /g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|@@CC|${CC}|;s|@@CXX|${CXX}|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's/: checkroot/: /g' ${WRKSRC}/Makefile.in post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmf ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmfconv - ${MKDIR} ${STAGEDIR}${DOCSDIR} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |