Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2015 11:09:26 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r403518 - head/mail/bmf
Message-ID:  <201512111109.tBBB9Qpw023988@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Dec 11 11:09:26 2015
New Revision: 403518
URL: https://svnweb.freebsd.org/changeset/ports/403518

Log:
  - Add LICENSE
  - Switch to options helpers

Modified:
  head/mail/bmf/Makefile

Modified: head/mail/bmf/Makefile
==============================================================================
--- head/mail/bmf/Makefile	Fri Dec 11 10:07:27 2015	(r403517)
+++ head/mail/bmf/Makefile	Fri Dec 11 11:09:26 2015	(r403518)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512111109.tBBB9Qpw023988>