aboutsummaryrefslogtreecommitdiffstats
path: root/games/biniax2
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-12-21 01:13:02 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-12-21 01:13:02 +0800
commit69adf37ad24bcbeda1c2420283230122cfd752fc (patch)
tree9c025b3133b9b9b1c7132ad98c42dfddafb06b55 /games/biniax2
parent58da5b0ef645d27281c020214582a2710fa9f35f (diff)
downloadfreebsd-ports-gnome-69adf37ad24bcbeda1c2420283230122cfd752fc.tar.gz
freebsd-ports-gnome-69adf37ad24bcbeda1c2420283230122cfd752fc.tar.zst
freebsd-ports-gnome-69adf37ad24bcbeda1c2420283230122cfd752fc.zip
- Support staging
- Prevent DOS2UNIX from corrupting binary files
Diffstat (limited to 'games/biniax2')
-rw-r--r--games/biniax2/Makefile13
-rw-r--r--games/biniax2/pkg-plist44
2 files changed, 7 insertions, 50 deletions
diff --git a/games/biniax2/Makefile b/games/biniax2/Makefile
index ca142dd537ed..9dabdbcb7c93 100644
--- a/games/biniax2/Makefile
+++ b/games/biniax2/Makefile
@@ -3,7 +3,7 @@
PORTNAME= biniax2
PORTVERSION= 1.30
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= http://mordred.dir.bg/biniax/ \
http://mirror.amdmi3.ru/distfiles/
@@ -13,10 +13,12 @@ MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Original logic game with arcade and tactics modes
USE_SDL= sdl mixer image
-USE_DOS2UNIX= yes
+USE_DOS2UNIX= biniax.c
NO_WRKSUBDIR= yes
-NO_STAGE= yes
+PLIST_FILES= bin/${PORTNAME}
+PORTDATA= *
+
post-patch:
@${RM} -f ${WRKSRC}/data/Thumbs.db
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|g' \
@@ -29,8 +31,7 @@ do-build:
-lSDL_image -lSDL_mixer -o ${PORTNAME}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
- cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${DATADIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>
diff --git a/games/biniax2/pkg-plist b/games/biniax2/pkg-plist
deleted file mode 100644
index dbc158ab840d..000000000000
--- a/games/biniax2/pkg-plist
+++ /dev/null
@@ -1,44 +0,0 @@
-bin/biniax2
-%%DATADIR%%/graphics/background0.png
-%%DATADIR%%/graphics/background1.png
-%%DATADIR%%/graphics/background2.png
-%%DATADIR%%/graphics/cursor0.png
-%%DATADIR%%/graphics/cursor1.png
-%%DATADIR%%/graphics/element0.png
-%%DATADIR%%/graphics/element1.png
-%%DATADIR%%/graphics/element2.png
-%%DATADIR%%/graphics/element3.png
-%%DATADIR%%/graphics/elementB.png
-%%DATADIR%%/graphics/font.png
-%%DATADIR%%/graphics/help.png
-%%DATADIR%%/graphics/keyboard.png
-%%DATADIR%%/graphics/logo.png
-%%DATADIR%%/graphics/marker0.png
-%%DATADIR%%/graphics/marker1.png
-%%DATADIR%%/graphics/movecount.png
-%%DATADIR%%/graphics/particle0.png
-%%DATADIR%%/graphics/particle1.png
-%%DATADIR%%/graphics/particle2.png
-%%DATADIR%%/graphics/roadmap.png
-%%DATADIR%%/graphics/splash.png
-%%DATADIR%%/graphics/sweep.png
-%%DATADIR%%/graphics/window.png
-%%DATADIR%%/music/biniax_common00.it
-%%DATADIR%%/music/biniax_common01.it
-%%DATADIR%%/music/biniax_common02.it
-%%DATADIR%%/music/biniax_common03.it
-%%DATADIR%%/music/biniax_common04.it
-%%DATADIR%%/music/biniax_common05.it
-%%DATADIR%%/music/biniax_common06.it
-%%DATADIR%%/music/biniax_common07.it
-%%DATADIR%%/sound/sfx1.wav
-%%DATADIR%%/sound/sfx2.wav
-%%DATADIR%%/sound/sfx3.wav
-%%DATADIR%%/sound/sfx4.wav
-%%DATADIR%%/sound/sfx5.wav
-%%DATADIR%%/text/help.txt
-@dirrm %%DATADIR%%/text
-@dirrm %%DATADIR%%/sound
-@dirrm %%DATADIR%%/music
-@dirrm %%DATADIR%%/graphics
-@dirrm %%DATADIR%%