aboutsummaryrefslogtreecommitdiffstats
path: root/games/pachi
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-10-18 09:20:16 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-10-18 09:20:16 +0800
commit834d6ef675a47d7cf6b70a72af236f7ef3ac1cdd (patch)
treec138675795d77581eafa1c6564cbfdb7edda800b /games/pachi
parent9284a1fd0042bc74b8ffa877a3c0526806e7cdd9 (diff)
downloadfreebsd-ports-gnome-834d6ef675a47d7cf6b70a72af236f7ef3ac1cdd.tar.gz
freebsd-ports-gnome-834d6ef675a47d7cf6b70a72af236f7ef3ac1cdd.tar.zst
freebsd-ports-gnome-834d6ef675a47d7cf6b70a72af236f7ef3ac1cdd.zip
- Support staging
- Convert USE_GMAKE to USES - Add DESKTOP_ENTRIES
Diffstat (limited to 'games/pachi')
-rw-r--r--games/pachi/Makefile25
-rw-r--r--games/pachi/pkg-plist68
2 files changed, 14 insertions, 79 deletions
diff --git a/games/pachi/Makefile b/games/pachi/Makefile
index 4bf8ffcf1e15..16eeb30a25ec 100644
--- a/games/pachi/Makefile
+++ b/games/pachi/Makefile
@@ -10,10 +10,10 @@ DISTNAME= pachi_source
EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@FreeBSD.org
-COMMENT= A platforms game similar to Manic Miner
+COMMENT= Platform game similar to Manic Miner
USE_SDL= mixer sdl
-USE_GMAKE= yes
+USES= gmake
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
@@ -24,7 +24,16 @@ WRKSRC= ${WRKDIR}/Pachi
SCOREDIR= /var/games/pachi
SCOREFILE= ${SCOREDIR}/scores.dat
-NO_STAGE= yes
+PLIST_FILES= bin/${PORTNAME}
+PORTDATA= *
+
+DESKTOP_ENTRIES="Pachi el marciano" \
+ "${COMMENT}" \
+ "${DATADIR}/Tgfx/icon.bmp" \
+ "${PORTNAME}" \
+ "Game;ActionGame;" \
+ ""
+
post-patch:
@${REINPLACE_CMD} -e 's|/var/lib/games/$$PACKAGE|${SCOREDIR}|' \
${WRKSRC}/configure
@@ -36,13 +45,7 @@ post-patch:
${WRKSRC}/data/Makefile.in
post-install:
- ${CHGRP} games ${PREFIX}/bin/pachi
- ${CHMOD} g+s ${PREFIX}/bin/pachi
- ${MKDIR} ${SCOREDIR}
-.if !exists(${SCOREFILE})
- ${INSTALL_DATA} ${WRKSRC}/data/scores.dat /var/games/pachi
-.endif
- ${CHGRP} -R games ${SCOREDIR}
- ${CHMOD} g+w ${SCOREFILE}
+ ${CHGRP} games ${STAGEDIR}${PREFIX}/bin/pachi
+ ${CHMOD} g+s ${STAGEDIR}${PREFIX}/bin/pachi
.include <bsd.port.mk>
diff --git a/games/pachi/pkg-plist b/games/pachi/pkg-plist
deleted file mode 100644
index 9b4377328e29..000000000000
--- a/games/pachi/pkg-plist
+++ /dev/null
@@ -1,68 +0,0 @@
-bin/pachi
-%%DATADIR%%/Tgfx/backgrounds.T8
-%%DATADIR%%/Tgfx/bright.T8
-%%DATADIR%%/Tgfx/castle.T8
-%%DATADIR%%/Tgfx/cave.T8
-%%DATADIR%%/Tgfx/cemetery.T8
-%%DATADIR%%/Tgfx/comic_01.T8
-%%DATADIR%%/Tgfx/comic_02.T8
-%%DATADIR%%/Tgfx/comic_03.T8
-%%DATADIR%%/Tgfx/comic_04.T8
-%%DATADIR%%/Tgfx/comic_05.T8
-%%DATADIR%%/Tgfx/comic_06.T8
-%%DATADIR%%/Tgfx/comic_07.T8
-%%DATADIR%%/Tgfx/comic_08.T8
-%%DATADIR%%/Tgfx/comic_09.T8
-%%DATADIR%%/Tgfx/comic_10.T8
-%%DATADIR%%/Tgfx/comic_11.T8
-%%DATADIR%%/Tgfx/comic_12.T8
-%%DATADIR%%/Tgfx/comic_13.T8
-%%DATADIR%%/Tgfx/comic_14.T8
-%%DATADIR%%/Tgfx/dragontech.T8
-%%DATADIR%%/Tgfx/endcredits.T8
-%%DATADIR%%/Tgfx/gameover.T8
-%%DATADIR%%/Tgfx/gamepanel.T8
-%%DATADIR%%/Tgfx/help.T8
-%%DATADIR%%/Tgfx/icon.bmp
-%%DATADIR%%/Tgfx/intro.T8
-%%DATADIR%%/Tgfx/lab.T8
-%%DATADIR%%/Tgfx/left.T8
-%%DATADIR%%/Tgfx/line1.T8
-%%DATADIR%%/Tgfx/line2.T8
-%%DATADIR%%/Tgfx/monsters.T8
-%%DATADIR%%/Tgfx/pachi.T8
-%%DATADIR%%/Tgfx/right.T8
-%%DATADIR%%/Tgfx/tiles.T8
-%%DATADIR%%/data/backs.dat
-%%DATADIR%%/data/monsters.dat
-%%DATADIR%%/data/objects_v2.dat
-%%DATADIR%%/data/rooms_v2.dat
-%%DATADIR%%/fonts/font1.T8
-%%DATADIR%%/fonts/font16a.T
-%%DATADIR%%/fonts/font16b.T
-%%DATADIR%%/fonts/font16c.T
-%%DATADIR%%/fonts/font16d.T
-%%DATADIR%%/fonts/font32r.T8
-%%DATADIR%%/fonts/font32v.T8
-%%DATADIR%%/music/credits.s3m
-%%DATADIR%%/music/menu.s3m
-%%DATADIR%%/music/stage1.s3m
-%%DATADIR%%/music/stage2.stm
-%%DATADIR%%/music/stage3.s3m
-%%DATADIR%%/music/stage4.s3m
-%%DATADIR%%/sounds/die.wav
-%%DATADIR%%/sounds/exit.wav
-%%DATADIR%%/sounds/jump.wav
-%%DATADIR%%/sounds/obj.wav
-%%DATADIR%%/sounds/objseq.wav
-%%DATADIR%%/sounds/option.wav
-%%DATADIR%%/sounds/respawn.wav
-%%DATADIR%%/sounds/stageready.wav
-%%DATADIR%%/sounds/storm.wav
-%%DATADIR%%/sounds/timer.wav
-@dirrm %%DATADIR%%/Tgfx
-@dirrm %%DATADIR%%/data
-@dirrm %%DATADIR%%/fonts
-@dirrm %%DATADIR%%/music
-@dirrm %%DATADIR%%/sounds
-@dirrm %%DATADIR%%