From a19c100ea79c3994069aaee33aee5fb2437dd663 Mon Sep 17 00:00:00 2001 From: danilo Date: Tue, 12 Nov 2013 19:53:01 +0000 Subject: - Add DOCS option - Add stage support --- games/umark/Makefile | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'games') diff --git a/games/umark/Makefile b/games/umark/Makefile index d6af048da70c..4bdd7f3302de 100644 --- a/games/umark/Makefile +++ b/games/umark/Makefile @@ -20,22 +20,16 @@ MAKEFILE= ${FILESDIR}/Makefile SUB_FILES= pkg-message PORTDOCS= ChangeLog INSTALL README TODO -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - @${MKDIR} ${DATADIR} - ${INSTALL_SCRIPT} ${WRKDIR}/UMark/install_umark_data.sh ${DATADIR} - ${INSTALL_SCRIPT} ${WRKDIR}/UMark/utxinfo.pl ${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/UMark/install_umark_data.sh ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/UMark/utxinfo.pl ${STAGEDIR}${DATADIR} cd ${WRKDIR}/UMark && ${FIND} data html pixmaps | \ - ${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKDIR}/UMark/,} ${DOCSDIR} -.endif - -post-install: - @${ECHO_MSG} - @${CAT} ${PKGMESSAGE} - @${ECHO_MSG} + ${CPIO} -pdu ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKDIR}/UMark/,} ${STAGEDIR}${DOCSDIR} .include -- cgit