diff options
Diffstat (limited to 'games/glpuzzle/Makefile')
-rw-r--r-- | games/glpuzzle/Makefile | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/games/glpuzzle/Makefile b/games/glpuzzle/Makefile index 5a3f27f..2b8c748 100644 --- a/games/glpuzzle/Makefile +++ b/games/glpuzzle/Makefile @@ -6,7 +6,7 @@ # PORTNAME= glpuzzle -PORTVERSION= 0.1.4 +PORTVERSION= 0.2 CATEGORIES= games MASTER_SITES= http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/ EXTRACT_SUFX= .tgz @@ -18,25 +18,26 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ jpeg.9:${PORTSDIR}/graphics/jpeg USE_X_PREFIX= yes -USE_SDL= sdl +USE_SDL= sdl mixer USE_GL= yes USE_GMAKE= yes -USE_REINPLACE= yes +USE_GCC= 3.4+ MAKE_ENV= CXX="${CXX}" \ CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \ LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib" post-patch: - @${REINPLACE_CMD} -e "s|font/|${DATADIR}/font/|g" ${WRKSRC}/main.cxx - @${REINPLACE_CMD} -e "s|puzzle-preview/|${DATADIR}/puzzle-preview/|g" ${WRKSRC}/main.cxx - @${REINPLACE_CMD} -e "s|terminate|terminate_|g" ${WRKSRC}/main.cxx - @${REINPLACE_CMD} -e "s|puzzle-maps/|${DATADIR}/puzzle-maps/|g" ${WRKSRC}/puzzle-preview/preview.map - @${RM} -f ${WRKSRC}/puzzle-preview/preview.map.bak +.for i in font image puzzles sound + @${REINPLACE_CMD} -e "s|${i}/|${DATADIR}/${i}/|g" ${WRKSRC}/main.cxx +.endfor + @${REINPLACE_CMD} -e "s|g++|${CXX}|g" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s|INCLFLAGS|CPPFLAGS|" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "/^include.*DEPENDS/ d" ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/glpuzzle ${PREFIX}/bin -.for i in font puzzle-maps puzzle-preview +.for i in font image puzzles sound ${MKDIR} ${DATADIR}/${i} ${INSTALL_DATA} ${WRKSRC}/${i}/* ${DATADIR}/${i} .endfor |