From ccb339f7ccfc34a9edf354625ccdf60ef9c9013f Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Fri, 27 Sep 2013 22:56:06 +0000 Subject: Add support for STAGEDIR --- games/gigalomania/Makefile | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'games/gigalomania') diff --git a/games/gigalomania/Makefile b/games/gigalomania/Makefile index 9e21e25f08ce..b70b5689775a 100644 --- a/games/gigalomania/Makefile +++ b/games/gigalomania/Makefile @@ -17,9 +17,6 @@ PORTDOCS= readme.html OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include - post-patch: @${REINPLACE_CMD} -e 's|CC=g++|CC=${CXX}|' \ -e '/^CCFLAGS/ s|-O2|${CXXFLAGS}|' \ @@ -36,19 +33,19 @@ post-patch: ${WRKSRC}/gamestate.cpp do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${MKDIR} ${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} .for dir in gfx islands sound - cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${DATADIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR} .endfor - ${MKDIR} ${PREFIX}/share/applications - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications + @${MKDIR} ${STAGEDIR}${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \ + ${STAGEDIR}${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}_fullscreen.desktop \ - ${PREFIX}/share/applications - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}64.png ${PREFIX}/share/pixmaps -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/readme.html ${DOCSDIR} -.endif + ${STAGEDIR}${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}64.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/readme.html ${STAGEDIR}${DOCSDIR} .include -- cgit v1.2.3