Date: Tue, 31 Dec 2013 08:51:35 +0000 (UTC) From: Rusmir Dusko <nemysis@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r338264 - head/games/wordplay Message-ID: <201312310851.rBV8pZ0i096679@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nemysis Date: Tue Dec 31 08:51:35 2013 New Revision: 338264 URL: http://svnweb.freebsd.org/changeset/ports/338264 Log: - Support STAGEDIR - Add DOCS Option Approved by: pawel / wg (mentors, implicit) Modified: head/games/wordplay/Makefile Modified: head/games/wordplay/Makefile ============================================================================== --- head/games/wordplay/Makefile Tue Dec 31 08:43:18 2013 (r338263) +++ head/games/wordplay/Makefile Tue Dec 31 08:51:35 2013 (r338264) @@ -19,8 +19,7 @@ PORTDOCS= readme PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/words721.txt PLIST_DIRS= %%DATADIR%% -NO_STAGE= yes -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|CC=gcc|CC?=g++|' ${WRKSRC}/makefile @@ -31,12 +30,11 @@ do-build: cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/words721.txt ${DATADIR} -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/words721.txt ${STAGEDIR}${DATADIR} + + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312310851.rBV8pZ0i096679>