diff options
author | jadawin <jadawin@FreeBSD.org> | 2013-12-27 17:54:22 +0800 |
---|---|---|
committer | jadawin <jadawin@FreeBSD.org> | 2013-12-27 17:54:22 +0800 |
commit | ae661403ff9958aceb444717c4fcb759370fffae (patch) | |
tree | ccafd7285f2be88deb9e8e692640398b5dfa4000 /archivers | |
parent | 0978b8dc1017b002526e01767c6f29867133ba41 (diff) | |
download | freebsd-ports-gnome-ae661403ff9958aceb444717c4fcb759370fffae.tar.gz freebsd-ports-gnome-ae661403ff9958aceb444717c4fcb759370fffae.tar.zst freebsd-ports-gnome-ae661403ff9958aceb444717c4fcb759370fffae.zip |
- Support stage and options
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/makeself/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/archivers/makeself/Makefile b/archivers/makeself/Makefile index e49d06467c40..f0d9a48a4554 100644 --- a/archivers/makeself/Makefile +++ b/archivers/makeself/Makefile @@ -18,25 +18,27 @@ EXTRACT_BEFORE_ARGS= EXTRACT_AFTER_ARGS= --nox11 --target ${WRKSRC} NO_BUILD= yes -NO_STAGE= yes PLIST_FILES= bin/makeself bin/makeself-header \ bin/makeself-header.sh bin/makeself.sh PORTDOCS= README +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -e \ 's|#!/bin/sh|#!${LOCALBASE}/bin/bash|g' ${WRKSRC}/makeself.sh do-install: .for i in makeself makeself-header - ${INSTALL_SCRIPT} ${WRKSRC}/${i}.sh ${PREFIX}/bin - @${LN} -sf ${i}.sh ${PREFIX}/bin/${i} + ${INSTALL_SCRIPT} ${WRKSRC}/${i}.sh ${STAGEDIR}${PREFIX}/bin + @${LN} -sf ${i}.sh ${STAGEDIR}${PREFIX}/bin/${i} .endfor -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> |