aboutsummaryrefslogtreecommitdiff
path: root/games/tecnoballz
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-11-29 02:36:57 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-11-29 02:36:57 +0000
commitc3df8569a579fe5581ccbc1c976ed097e28c4474 (patch)
tree86d08705c4b6ce5ba5253f0511fefbabc09ddead /games/tecnoballz
parentcd73789345889c2d7697ed6d6dda21ad26307370 (diff)
downloadports-c3df8569a579fe5581ccbc1c976ed097e28c4474.tar.gz
ports-c3df8569a579fe5581ccbc1c976ed097e28c4474.zip
Notes
Diffstat (limited to 'games/tecnoballz')
-rw-r--r--games/tecnoballz/Makefile18
-rw-r--r--games/tecnoballz/pkg-install13
-rw-r--r--games/tecnoballz/pkg-plist8
3 files changed, 15 insertions, 24 deletions
diff --git a/games/tecnoballz/Makefile b/games/tecnoballz/Makefile
index 0ce858d63b0b..931e7ab844c9 100644
--- a/games/tecnoballz/Makefile
+++ b/games/tecnoballz/Makefile
@@ -11,6 +11,9 @@ MASTER_SITES= http://linux.tlk.fr/games/TecnoballZ/download/ \
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Brick breaker (Arkanoid-like game)
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
LIB_DEPENDS= libmikmod.so:${PORTSDIR}/audio/libmikmod \
libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
libogg.so:${PORTSDIR}/audio/libogg \
@@ -24,12 +27,12 @@ GNU_CONFIGURE= yes
PORTDATA= *
-DESKTOP_ENTRIES= "TecnoballZ" \
- "A brick breaker (Arkanoid-like game)" \
- "" \
- "tecnoballz" \
- "Game;ArcadeGame;" \
- false
+DESKTOP_ENTRIES="TecnoballZ" \
+ "A brick breaker (Arkanoid-like game)" \
+ "" \
+ "tecnoballz" \
+ "Game;ArcadeGame;" \
+ false
post-patch:
@${FIND} ${WRKSRC}/include -name '*.h' | ${XARGS} ${REINPLACE_CMD} \
@@ -37,6 +40,7 @@ post-patch:
@${REINPLACE_CMD} -e '/^CXXFLAGS=[^$$]*$$/ s|^|#|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|$$(prefix)/games|$$(prefix)/bin|' \
${WRKSRC}/Makefile.am ${WRKSRC}/src/Makefile.am
+ @${REINPLACE_CMD} -e '/chmod/ d; /chown/ d' ${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e 's|supervisor.c|&c|' ${WRKSRC}/src/Makefile.am
.for f in tecnoballz.cc tiles_background.cc sprite_ship.cc controller_magnetic_eyes.cc
@${REINPLACE_CMD} -e '/rand/ s|(Sint32)|(intptr_t)|' ${WRKSRC}/src/${f}
@@ -45,5 +49,7 @@ post-patch:
post-install:
@cd ${WRKSRC}/src/TecnoballZ && ${FIND} . -name "Makefile*" -delete
@cd ${WRKSRC}/src/TecnoballZ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
+ ${MV} ${STAGEDIR}/var/games/tecnoballz/tecnoballz.hi \
+ ${STAGEDIR}/var/games/tecnoballz/tecnoballz.hi.sample
.include <bsd.port.mk>
diff --git a/games/tecnoballz/pkg-install b/games/tecnoballz/pkg-install
deleted file mode 100644
index 383fb6f3bd49..000000000000
--- a/games/tecnoballz/pkg-install
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-SCOREDIR="/var/games/tecnoballz"
-SCOREFILE="${SCOREDIR}/tecnoballz.hi"
-
-[ "$2" != "POST-INSTALL" -o -f "$SCOREFILE" ] && exit 0
-
-echo "Creating hiscore directory..."
-mkdir -p $SCOREDIR
-touch $SCOREFILE
-
-chgrp -R games $SCOREDIR
-chmod g+w $SCOREFILE
diff --git a/games/tecnoballz/pkg-plist b/games/tecnoballz/pkg-plist
index 5e6e60d216d9..63c15fa2be09 100644
--- a/games/tecnoballz/pkg-plist
+++ b/games/tecnoballz/pkg-plist
@@ -1,6 +1,4 @@
-@group games
-@mode 2555
-bin/tecnoballz
-@mode
-@group
+@(,games,2555) bin/tecnoballz
man/man6/tecnoballz.6.gz
+@sample(,games,664) /var/games/tecnoballz/tecnoballz.hi.sample
+@dir(,games,775) /var/games/tecnoballz