1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00

- Switch to options helpers

- Fix binary installation (INSTALL_PROGRAM instead of INSTALL_SCRIPT + STRIP_CMD)

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-09-03 11:07:42 +00:00
parent 1adbfb6374
commit b41c8d6c1f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395947

View File

@ -28,17 +28,12 @@ PORTDOCS= AUTHORS COPYING ChangeLog NEWS README TODO
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install:
.if ${PORT_OPTIONS:MDOCS}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>