From 288c4623f6ba3ad7924848b42fbdea4e0e3e0348 Mon Sep 17 00:00:00 2001 From: Philippe Audeoud Date: Fri, 27 Dec 2013 09:54:22 +0000 Subject: - Support stage and options --- archivers/makeself/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'archivers/makeself') 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 + 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 -- cgit v1.2.3