From 48ac60c0fdcf4c053178b68fef28935702640024 Mon Sep 17 00:00:00 2001 From: ehaupt Date: Mon, 28 Oct 2013 13:26:35 +0000 Subject: Support staging. --- archivers/unzip/Makefile | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/archivers/unzip/Makefile b/archivers/unzip/Makefile index e05f06e1977a..d1f2045f53e4 100644 --- a/archivers/unzip/Makefile +++ b/archivers/unzip/Makefile @@ -20,7 +20,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE CONFLICTS?= unzip-iconv-[0-9]* zh-unzip-[0-9]* ko-unzip-[0-9]* ru-unzip-[0-9]* -NO_STAGE= yes MAKEFILE= unix/Makefile MAKE_ARGS= LF2="${STRIP}" .if defined(INSTALL_AS_INFOUNZIP) @@ -67,6 +66,10 @@ ALL_TARGET= freebsd ALL_TARGET= bsd .endif +.for m in ${MAN1} +PLIST_FILES+= man/man1/${m}.gz +.endfor + .if !defined(INSTALL_AS_INFOUNZIP) pre-fetch: @${ECHO} "" @@ -84,20 +87,20 @@ pre-build: .endif do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/unzip ${PREFIX}/bin/${UNZIP_NAME} + ${INSTALL_PROGRAM} ${WRKSRC}/unzip ${STAGEDIR}${PREFIX}/bin/${UNZIP_NAME} .for file in funzip unzipsfx - ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin .endfor - ${LN} -sf ${UNZIP_NAME} ${PREFIX}/bin/zipinfo - ${INSTALL_SCRIPT} ${WRKSRC}/unix/zipgrep ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/man/unzip.1 ${MAN1PREFIX}/man/man1/${UNZIP_NAME}.1 + ${LN} -sf ${UNZIP_NAME} ${STAGEDIR}${PREFIX}/bin/zipinfo + ${INSTALL_SCRIPT} ${WRKSRC}/unix/zipgrep ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/man/unzip.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${UNZIP_NAME}.1 .for f in ${MAN1:Nunzip.1:Ninfo-unzip.1} - ${INSTALL_MAN} ${WRKSRC}/man/${f} ${MAN1PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/man/${f} ${STAGEDIR}${MAN1PREFIX}/man/man1 .endfor .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor .endif -- cgit