- Switch to options helpers

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-09-06 15:42:38 +00:00
parent 692a05914f
commit aa3f2f4b51
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396225

View file

@ -42,13 +42,7 @@ PORTDOCS= fontconfig-user.html fontconfig-user.pdf fontconfig-user.txt
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.endif
${INSTALL_MAN} ${MAN5PAGES:S|^|${WRKSRC}/doc/|} \
${STAGEDIR}${PREFIX}/man/man5
.for manpage in ${MAN1PAGES}
@ -61,6 +55,10 @@ post-install:
s|%%LOCALBASE%%|${LOCALBASE}|' < ${FILESDIR}/pkg-install.in \
> ${PKGINSTALL}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
.endif