aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorjadawin <jadawin@FreeBSD.org>2013-12-27 17:54:22 +0800
committerjadawin <jadawin@FreeBSD.org>2013-12-27 17:54:22 +0800
commitae661403ff9958aceb444717c4fcb759370fffae (patch)
treeccafd7285f2be88deb9e8e692640398b5dfa4000 /archivers
parent0978b8dc1017b002526e01767c6f29867133ba41 (diff)
downloadfreebsd-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/Makefile14
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>