mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
- Simplify installation
- Switch to options helpers
This commit is contained in:
parent
f7e05824e6
commit
c32416a795
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418030
1 changed files with 5 additions and 10 deletions
|
@ -30,18 +30,13 @@ post-patch:
|
||||||
s|gcc -E|$$(CC) -E|' ${WRKSRC}/Makefile
|
s|gcc -E|$$(CC) -E|' ${WRKSRC}/Makefile
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
# Program.
|
${INSTALL_PROGRAM} ${WRKSRC}/x${PORTNAME} \
|
||||||
(cd ${WRKSRC} && ${INSTALL_PROGRAM} x${PORTNAME} \
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||||
${STAGEDIR}${PREFIX}/bin/${PORTNAME})
|
|
||||||
|
|
||||||
# Data.
|
|
||||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||||
.for d in rc rc-test
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "rc rc-test" ${STAGEDIR}${DATADIR})
|
||||||
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
|
|
||||||
.endfor
|
|
||||||
|
|
||||||
# Documentation (optional).
|
do-install-DOCS-on:
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue