aboutsummaryrefslogtreecommitdiffstats
path: root/games/jigzo
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-10-22 16:03:09 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-10-22 16:03:09 +0800
commit12fb07912bacd4fc6ce100097a01ceb7c87bda77 (patch)
treefc2679c2308fc79bb16b38f1abe93368ce7960ab /games/jigzo
parent17132f54e7446b9da0d8188c9ee2731f02d91c25 (diff)
downloadfreebsd-ports-gnome-12fb07912bacd4fc6ce100097a01ceb7c87bda77.tar.gz
freebsd-ports-gnome-12fb07912bacd4fc6ce100097a01ceb7c87bda77.tar.zst
freebsd-ports-gnome-12fb07912bacd4fc6ce100097a01ceb7c87bda77.zip
- Support staging
- Convert USE_GMAKE to USES - Use new LIB_DEPENDS syntax
Diffstat (limited to 'games/jigzo')
-rw-r--r--games/jigzo/Makefile25
-rw-r--r--games/jigzo/pkg-plist27
2 files changed, 12 insertions, 40 deletions
diff --git a/games/jigzo/Makefile b/games/jigzo/Makefile
index df43097f7e20..243641762c56 100644
--- a/games/jigzo/Makefile
+++ b/games/jigzo/Makefile
@@ -12,14 +12,16 @@ EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= An OpenGL jigsaw puzzle game
-LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
- jpeg:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
+ libjpeg.so:${PORTSDIR}/graphics/jpeg
+USES= gmake
USE_SDL= sdl mixer
USE_GL= gl
-USE_GMAKE= yes
MAKE_ARGS= CXX=${CXX}
+PLIST_FILES= bin/${PORTNAME}
+PORTDATA= *
PORTDOCS= *
DESKTOP_ENTRIES="Jigzo" \
@@ -29,7 +31,9 @@ DESKTOP_ENTRIES="Jigzo" \
"Game;LogicGame;KidsGame;" \
false
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
.include <bsd.port.options.mk>
post-patch:
@@ -42,15 +46,10 @@ post-patch:
@${FIND} ${WRKSRC} -name .thumbnails | ${XARGS} ${RM} -rf
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC} && ${COPYTREE_SHARE} "font image puzzles sound" \
- ${DATADIR}/
-
-.if ${PORT_OPTIONS:MDOCS}
-post-install:
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ ${STAGEDIR}${DATADIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/jigzo/pkg-plist b/games/jigzo/pkg-plist
deleted file mode 100644
index 27fb58e8ed1a..000000000000
--- a/games/jigzo/pkg-plist
+++ /dev/null
@@ -1,27 +0,0 @@
-bin/jigzo
-%%DATADIR%%/font/charmap.jpg
-%%DATADIR%%/font/charmap.map
-%%DATADIR%%/font/charmap.png
-%%DATADIR%%/image/arrow.png
-%%DATADIR%%/image/folder.png
-%%DATADIR%%/image/leave.png
-%%DATADIR%%/puzzles/00_default/bike-3x4.pzl
-%%DATADIR%%/puzzles/00_default/bird-2x3.pzl
-%%DATADIR%%/puzzles/00_default/blackberry-3x3.pzl
-%%DATADIR%%/puzzles/00_default/castle-6x3.pzl
-%%DATADIR%%/puzzles/00_default/clouds-4x4.pzl
-%%DATADIR%%/puzzles/00_default/gorilla2-3x3.pzl
-%%DATADIR%%/puzzles/00_default/heli-4x3.pzl
-%%DATADIR%%/puzzles/00_default/horse-4x3.pzl
-%%DATADIR%%/puzzles/00_default/penguin-3x2.pzl
-%%DATADIR%%/puzzles/00_default/tobogan-4x3.pzl
-%%DATADIR%%/puzzles/00_default/train-2x2.pzl
-%%DATADIR%%/puzzles/00_default/windmill-4x4.pzl
-%%DATADIR%%/sound/connect.wav
-%%DATADIR%%/sound/finish.wav
-@dirrm %%DATADIR%%/sound
-@dirrm %%DATADIR%%/puzzles/00_default
-@dirrm %%DATADIR%%/puzzles
-@dirrm %%DATADIR%%/image
-@dirrm %%DATADIR%%/font
-@dirrm %%DATADIR%%