aboutsummaryrefslogtreecommitdiffstats
path: root/games/jigzo/Makefile
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-04-28 16:34:21 +0800
committermiwi <miwi@FreeBSD.org>2008-04-28 16:34:21 +0800
commit0ed6b7d4a853b0749195e461fc4ed1c70da0dfe8 (patch)
tree1dac7fbc3ef8eefd3609bc0c108f28266feb3103 /games/jigzo/Makefile
parent97cd06ead119c27b5ea9c28e0b7d6e90d23b9c1f (diff)
downloadfreebsd-ports-gnome-0ed6b7d4a853b0749195e461fc4ed1c70da0dfe8.tar.gz
freebsd-ports-gnome-0ed6b7d4a853b0749195e461fc4ed1c70da0dfe8.tar.zst
freebsd-ports-gnome-0ed6b7d4a853b0749195e461fc4ed1c70da0dfe8.zip
- Update to 0.5
PR: 122407 Submitted by: maintainer
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: