1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

- Simplify installation

- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2016-07-04 14:10:01 +00:00
parent f7e05824e6
commit c32416a795
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418030

View File

@ -30,18 +30,13 @@ post-patch:
s|gcc -E|$$(CC) -E|' ${WRKSRC}/Makefile
do-install:
# Program.
(cd ${WRKSRC} && ${INSTALL_PROGRAM} x${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME})
# Data.
${INSTALL_PROGRAM} ${WRKSRC}/x${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DATADIR}
.for d in rc rc-test
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "rc rc-test" ${STAGEDIR}${DATADIR})
# Documentation (optional).
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>