diff options
author | Philippe Audeoud <jadawin@FreeBSD.org> | 2013-12-27 09:54:22 +0000 |
---|---|---|
committer | Philippe Audeoud <jadawin@FreeBSD.org> | 2013-12-27 09:54:22 +0000 |
commit | 288c4623f6ba3ad7924848b42fbdea4e0e3e0348 (patch) | |
tree | ccafd7285f2be88deb9e8e692640398b5dfa4000 /archivers/makeself | |
parent | aae15c44b2f9b1c8ee732307798c98d49a6192a5 (diff) | |
download | ports-288c4623f6ba3ad7924848b42fbdea4e0e3e0348.tar.gz ports-288c4623f6ba3ad7924848b42fbdea4e0e3e0348.zip |
- Support stage and options
Notes
Notes:
svn path=/head/; revision=337673
Diffstat (limited to 'archivers/makeself')
-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> |