From owner-svn-ports-head@FreeBSD.ORG Mon Aug 11 13:40:53 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 127DCFFD for ; Mon, 11 Aug 2014 13:40:53 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DCE6328B9 for ; Mon, 11 Aug 2014 13:40:52 +0000 (UTC) Received: from wg (uid 1317) (envelope-from wg@FreeBSD.org) id 2154 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Mon, 11 Aug 2014 13:40:52 +0000 From: William Grzybowski Date: Mon, 11 Aug 2014 13:40:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r364608 - head/games/glest-data X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e8c7e4.2154.6034c34f@svn.freebsd.org> X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2014 13:40:53 -0000 Author: wg Date: Mon Aug 11 13:40:52 2014 New Revision: 364608 URL: http://svnweb.freebsd.org/changeset/ports/364608 QAT: https://qat.redports.org/buildarchive/r364608/ Log: games/glest-data: support stage PR: 192564 Submitted by: christian.mangin gmail com (with changes) Modified: head/games/glest-data/Makefile Modified: head/games/glest-data/Makefile ============================================================================== --- head/games/glest-data/Makefile Mon Aug 11 13:34:39 2014 (r364607) +++ head/games/glest-data/Makefile Mon Aug 11 13:40:52 2014 (r364608) @@ -19,51 +19,32 @@ NO_BUILD= yes PLIST= ${WRKDIR}/pkg-plist WRKSRC= ${WRKDIR}/glest_game -DATADIR= share/${PKGNAMEPREFIX:S/-//} -DOCSDIR= share/doc/${PKGNAMEPREFIX:S/-//} +DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX:S/-//} +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX:S/-//} GLESTDATADIRE= data maps scenarios techs tilesets tutorials -NO_STAGE= yes +PORTDATA= * +PORTDOCS= * + +OPTIONS_DEFINE= DOCS + post-extract: @${MV} ${WRKSRC}/docs/license.txt ${WRKSRC}/docs/license-data.txt @${RMDIR} ${WRKSRC}/screens -pre-install: - @${RM} -f ${PLIST} - -. for FILE in glest.ico servers.ini - @${ECHO_CMD} "%%DATADIR%%/${FILE}" >> ${PLIST} -. endfor - -. for DIRE in ${GLESTDATADIRE} - @cd ${WRKSRC} && \ - ${FIND} ${DIRE} -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \ - ${FIND} ${DIRE} -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST} -. endfor - @${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST} - -. if !defined(NOPORTDOCS) - @cd ${WRKSRC}/docs && \ - ${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%PORTDOCS%%%%DOCSDIR%%/|' >> ${PLIST} && \ - ${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|%%PORTDOCS%%@dirrm %%DOCSDIR%%/|' >> ${PLIST} - @${ECHO_CMD} "%%PORTDOCS%%@dirrmtry %%DOCSDIR%%" >> ${PLIST} -. endif - do-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/license-data.txt ${PREFIX}/${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/readme.txt ${PREFIX}/${DOCSDIR} -.endif - @${MKDIR} ${PREFIX}/${DATADIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/license-data.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/readme.txt ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DATADIR} .for FILE in glest.ico servers.ini - ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR} .endfor .for DIRE in ${GLESTDATADIRE} @cd ${WRKSRC} && \ - ${FIND} ${DIRE} -type d -exec ${MKDIR} "${PREFIX}/${DATADIR}/{}" \; && \ - ${FIND} ${DIRE} -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${DATADIR}/{}" \; + ${FIND} ${DIRE} -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \ + ${FIND} ${DIRE} -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \; .endfor .include