diff options
author | xride <xride@FreeBSD.org> | 2014-06-26 23:55:22 +0800 |
---|---|---|
committer | xride <xride@FreeBSD.org> | 2014-06-26 23:55:22 +0800 |
commit | 0dcaafca7b9e960f82be5d57022486a23c1d766f (patch) | |
tree | 7607c643638a037fbb934c0bfdc854ac82358b82 /mail | |
parent | 0907541cf63b375afe0e3c6372790dbaeecdfe9d (diff) | |
download | freebsd-ports-gnome-0dcaafca7b9e960f82be5d57022486a23c1d766f.tar.gz freebsd-ports-gnome-0dcaafca7b9e960f82be5d57022486a23c1d766f.tar.zst freebsd-ports-gnome-0dcaafca7b9e960f82be5d57022486a23c1d766f.zip |
Converted to OPTIONS and StageDir
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamoracle/Makefile | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/mail/spamoracle/Makefile b/mail/spamoracle/Makefile index 4ffab371cf25..d62caad41382 100644 --- a/mail/spamoracle/Makefile +++ b/mail/spamoracle/Makefile @@ -12,26 +12,29 @@ COMMENT= procmail spam filter written in ML using Bayesian classification 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 |