svn commit: r359381 - head/mail/spamoracle
Soeren Straarup
xride at FreeBSD.org
Thu Jun 26 15:55:23 UTC 2014
Author: xride
Date: Thu Jun 26 15:55:22 2014
New Revision: 359381
URL: http://svnweb.freebsd.org/changeset/ports/359381
QAT: https://qat.redports.org/buildarchive/r359381/
Log:
Converted to OPTIONS and StageDir
Modified:
head/mail/spamoracle/Makefile
Modified: head/mail/spamoracle/Makefile
==============================================================================
--- head/mail/spamoracle/Makefile Thu Jun 26 15:51:36 2014 (r359380)
+++ head/mail/spamoracle/Makefile Thu Jun 26 15:55:22 2014 (r359381)
@@ -12,26 +12,29 @@ COMMENT= procmail spam filter written in
BUILD_DEPENDS= ocaml:${PORTSDIR}/lang/ocaml
-MAN1= spamoracle.1
-MAN5= spamoracle.conf.5
-
PLIST_FILES= bin/spamoracle
-.ifndef(NOPORTDOCS)
+PLIST_FILES+= man/man1/spamoracle.1.gz
+PLIST_FILES+= man/man5/spamoracle.conf.5.gz
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= Changes README
.endif
-NO_STAGE= yes
do-configure:
@${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \
- -e 's|^(MANDIR=).*$$|\1${MANPREFIX}/man|' \
- -e 's|^(BINDIR=).*$$|\1${PREFIX}/bin|' \
+ -e 's|^(MANDIR=).*$$|\1${STAGEDIR}${MANPREFIX}/man|' \
+ -e 's|^(BINDIR=).*$$|\1${STAGEDIR}${PREFIX}/bin|' \
${WRKSRC}/Makefile
post-install:
-.ifndef(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/
.endfor
.endif
More information about the svn-ports-head
mailing list