1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Stage support

This commit is contained in:
Antoine Brodin 2014-02-06 19:01:25 +00:00
parent 152da8d4c9
commit bd74e10b09
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343139
2 changed files with 8 additions and 21 deletions

View File

@ -16,24 +16,11 @@ ONLY_FOR_ARCHS= i386
BINARIES= urlencode urldecode
DOCFILES= index.html rfc1738.txt
NO_STAGE= yes
do-install:
.for f in ${BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
OPTIONS_DEFINE= DOCS
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/urlendec
.for f in ${DOCFILES}
${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/share/doc/urlendec
.endfor
@echo ""
@echo " ----------------------------------------------------"
@echo " Please read ${PREFIX}/share/doc/urlendec/index.html"
@echo " for detailed instructions how to use this port."
@echo " ----------------------------------------------------"
@echo ""
.endif
do-install:
${INSTALL_PROGRAM} ${BINARIES:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/urlendec
${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/share/doc/urlendec
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
bin/urlencode
bin/urldecode
share/doc/urlendec/index.html
share/doc/urlendec/rfc1738.txt
@dirrm share/doc/urlendec
%%PORTDOCS%%share/doc/urlendec/index.html
%%PORTDOCS%%share/doc/urlendec/rfc1738.txt
%%PORTDOCS%%@dirrm share/doc/urlendec