mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Switch to options helpers
Approved by: portmgr blanket
This commit is contained in:
parent
692a05914f
commit
aa3f2f4b51
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396225
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue