mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Converted to OPTIONS and StageDir
This commit is contained in:
parent
83c60f892f
commit
020fb6c23f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359381
@ -12,26 +12,29 @@ COMMENT= procmail spam filter written in ML using Bayesian classification
|
|||||||
|
|
||||||
BUILD_DEPENDS= ocaml:${PORTSDIR}/lang/ocaml
|
BUILD_DEPENDS= ocaml:${PORTSDIR}/lang/ocaml
|
||||||
|
|
||||||
MAN1= spamoracle.1
|
|
||||||
MAN5= spamoracle.conf.5
|
|
||||||
|
|
||||||
PLIST_FILES= bin/spamoracle
|
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
|
PORTDOCS= Changes README
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
do-configure:
|
do-configure:
|
||||||
@${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \
|
@${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \
|
||||||
-e 's|^(MANDIR=).*$$|\1${MANPREFIX}/man|' \
|
-e 's|^(MANDIR=).*$$|\1${STAGEDIR}${MANPREFIX}/man|' \
|
||||||
-e 's|^(BINDIR=).*$$|\1${PREFIX}/bin|' \
|
-e 's|^(BINDIR=).*$$|\1${STAGEDIR}${PREFIX}/bin|' \
|
||||||
${WRKSRC}/Makefile
|
${WRKSRC}/Makefile
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.ifndef(NOPORTDOCS)
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.for file in ${PORTDOCS}
|
.for file in ${PORTDOCS}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user