aboutsummaryrefslogtreecommitdiff
path: root/games/jigzo/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-04-28 08:34:21 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-04-28 08:34:21 +0000
commit879c21205012b7a84c8e58fc8445491e9eee14c3 (patch)
treefb4ad766d7ddf92d3ac29fca804a1901acee6309 /games/jigzo/Makefile
parent39fcf29276c95d3074869924a412e00cd9f28336 (diff)
downloadports-879c21205012b7a84c8e58fc8445491e9eee14c3.tar.gz
ports-879c21205012b7a84c8e58fc8445491e9eee14c3.zip
Notes
Diffstat (limited to 'games/jigzo/Makefile')
-rw-r--r--games/jigzo/Makefile28
1 files changed, 12 insertions, 16 deletions
diff --git a/games/jigzo/Makefile b/games/jigzo/Makefile
index aaac10f37cb0..b7b5f23caa73 100644
--- a/games/jigzo/Makefile
+++ b/games/jigzo/Makefile
@@ -5,11 +5,10 @@
# $FreeBSD$
#
-PORTNAME= glpuzzle
-PORTVERSION= 0.2
-PORTREVISION= 4
+PORTNAME= jigzo
+PORTVERSION= 0.5
CATEGORIES= games
-MASTER_SITES= http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/ \
+MASTER_SITES= http://www.iua.upf.es/~mdeboer/resorama/jigzo/ \
http://www.amdmi3.ru/distfiles/
EXTRACT_SUFX= .tgz
@@ -23,24 +22,21 @@ USE_SDL= sdl mixer
USE_GL= gl
USE_GMAKE= yes
-MAKE_ENV= CXX="${CXX}" \
- CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include" \
- LDFLAGS="`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib"
+MAKE_ENV= CXX="${CXX}"
+PORTDOCS= *
post-patch:
.for i in font image puzzles sound
- @${REINPLACE_CMD} -e "s|${i}/|${DATADIR}/${i}/|g" ${WRKSRC}/main.cxx
+ @${REINPLACE_CMD} -e "s|${i}/|${DATADIR}/${i}/|g" \
+ ${WRKSRC}/src/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
+ @${FIND} ${WRKSRC} -name .thumbnails | ${XARGS} ${RM} -rf
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/glpuzzle ${PREFIX}/bin
-.for i in font image puzzles sound
- ${MKDIR} ${DATADIR}/${i}
- ${INSTALL_DATA} ${WRKSRC}/${i}/* ${DATADIR}/${i}
-.endfor
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "font image puzzles sound" \
+ ${DATADIR}/
.ifndef (NOPORTDOCS)
post-install: