diff options
author | antoine <antoine@FreeBSD.org> | 2014-02-07 03:01:25 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-02-07 03:01:25 +0800 |
commit | 6642c85c111aa1bfdfc9eb44629a54854d0c7611 (patch) | |
tree | 200a81abb0e26842e15179f6dac7629d7b543197 | |
parent | 4449284ff072cb67e81ed6af55f8071942d0e262 (diff) | |
download | freebsd-ports-gnome-6642c85c111aa1bfdfc9eb44629a54854d0c7611.tar.gz freebsd-ports-gnome-6642c85c111aa1bfdfc9eb44629a54854d0c7611.tar.zst freebsd-ports-gnome-6642c85c111aa1bfdfc9eb44629a54854d0c7611.zip |
Stage support
-rw-r--r-- | net/urlendec/Makefile | 23 | ||||
-rw-r--r-- | net/urlendec/pkg-plist | 6 |
2 files changed, 8 insertions, 21 deletions
diff --git a/net/urlendec/Makefile b/net/urlendec/Makefile index 5a3be3a1ee28..8616906321f9 100644 --- a/net/urlendec/Makefile +++ b/net/urlendec/Makefile @@ -16,24 +16,11 @@ ONLY_FOR_ARCHS= i386 BINARIES= urlencode urldecode DOCFILES= index.html rfc1738.txt -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + do-install: -.for f in ${BINARIES} - ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin -.endfor - -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 + ${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> diff --git a/net/urlendec/pkg-plist b/net/urlendec/pkg-plist index 48531bfd02d7..15dcace295ac 100644 --- a/net/urlendec/pkg-plist +++ b/net/urlendec/pkg-plist @@ -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 |