aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2012-09-11 14:17:03 +0800
committermartymac <martymac@FreeBSD.org>2012-09-11 14:17:03 +0800
commita7fa3caf79e11881352ae4f584963bc8e179bb16 (patch)
tree4f2232c6767dec3a975c03e71050f0293eb6c498 /games
parentf2268a7e19b1dc33dfff9a385fce105fa9f87a79 (diff)
downloadfreebsd-ports-gnome-a7fa3caf79e11881352ae4f584963bc8e179bb16.tar.gz
freebsd-ports-gnome-a7fa3caf79e11881352ae4f584963bc8e179bb16.tar.zst
freebsd-ports-gnome-a7fa3caf79e11881352ae4f584963bc8e179bb16.zip
- Add MUSIC and NLS options
- Add a pixmap PR: ports/171256 Submitted by: nemysis <nemysis@gmx.ch>
Diffstat (limited to 'games')
-rw-r--r--games/trackballs/Makefile32
-rw-r--r--games/trackballs/distinfo2
-rw-r--r--games/trackballs/pkg-plist20
3 files changed, 46 insertions, 8 deletions
diff --git a/games/trackballs/Makefile b/games/trackballs/Makefile
index 94b21ca194eb..13f0c8301f95 100644
--- a/games/trackballs/Makefile
+++ b/games/trackballs/Makefile
@@ -7,9 +7,12 @@
PORTNAME= trackballs
PORTVERSION= 1.1.4
-PORTREVISION= 14
+PORTREVISION= 15
CATEGORIES= games
-MASTER_SITES= SF
+MASTER_SITES= SF \
+ SF/${PORTNAME}/music/1.4/:music
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}-music-1.4.tar.bz2:music
MAINTAINER= martymac@FreeBSD.org
COMMENT= SDL-based Marble Madness clone
@@ -34,11 +37,36 @@ MANCOMPRESSED= no
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
+OPTIONS_DEFINE= NLS MUSIC
+MUSIC_DESC= Install additional music
+OPTIONS_DEFAULT= NLS MUSIC
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT= yes
+CONFIGURE_ARGS+= --enable-nls
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MMUSIC}
+PLIST_SUB+= MUSIC=""
+.else
+PLIST_SUB+= MUSIC="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|install -D|$$(INSTALL)|' \
${WRKSRC}/share/Makefile.in
post-install:
+.if ${PORT_OPTIONS:MMUSIC}
+ @${INSTALL_DATA} ${WRKDIR}/trackballs-music/*.ogg ${DATADIR}/music/
+.endif
+ @${INSTALL_DATA} ${WRKSRC}/share/icons/${PORTNAME}-48x48.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
-@update-desktop-database
.include <bsd.port.mk>
diff --git a/games/trackballs/distinfo b/games/trackballs/distinfo
index 685d22d326c0..67395cff10a9 100644
--- a/games/trackballs/distinfo
+++ b/games/trackballs/distinfo
@@ -1,2 +1,4 @@
SHA256 (trackballs-1.1.4.tar.gz) = 459dbaec27354fb4afff3d1aa491bc21b4fc2c0769eae86a47aaeb545cb434a6
SIZE (trackballs-1.1.4.tar.gz) = 7229541
+SHA256 (trackballs-music-1.4.tar.bz2) = bf9b793b6fab81e59fb9a373944a5724af279b0faebb2461bb98beb5aa466058
+SIZE (trackballs-music-1.4.tar.bz2) = 18825033
diff --git a/games/trackballs/pkg-plist b/games/trackballs/pkg-plist
index bf31dd548706..8228abb39872 100644
--- a/games/trackballs/pkg-plist
+++ b/games/trackballs/pkg-plist
@@ -3,12 +3,13 @@ share/applications/trackballs.desktop
share/icons/hicolor/32x32/apps/trackballs.png
share/icons/hicolor/48x48/apps/trackballs.png
share/icons/hicolor/64x64/apps/trackballs.png
-share/locale/de/LC_MESSAGES/trackballs.mo
-share/locale/fr/LC_MESSAGES/trackballs.mo
-share/locale/hu/LC_MESSAGES/trackballs.mo
-share/locale/it/LC_MESSAGES/trackballs.mo
-share/locale/sk/LC_MESSAGES/trackballs.mo
-share/locale/sv/LC_MESSAGES/trackballs.mo
+share/pixmaps/trackballs.png
+%%NLS%%share/locale/de/LC_MESSAGES/trackballs.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/trackballs.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/trackballs.mo
+%%NLS%%share/locale/it/LC_MESSAGES/trackballs.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/trackballs.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/trackballs.mo
%%DATADIR%%/api.html
%%DATADIR%%/customizing.html
%%DATADIR%%/examples.html
@@ -233,6 +234,13 @@ share/locale/sv/LC_MESSAGES/trackballs.mo
%%DATADIR%%/levels/tmp.scm
%%DATADIR%%/mapeditor.html
%%DATADIR%%/scriptingLanguage.html
+%%MUSIC%%%%DATADIR%%/music/eurovision.ogg
+%%MUSIC%%%%DATADIR%%/music/tb_plinkeplanke.ogg
+%%MUSIC%%%%DATADIR%%/music/tb_sorrow.ogg
+%%MUSIC%%%%DATADIR%%/music/crazy.ogg
+%%MUSIC%%%%DATADIR%%/music/tb_hrluebke.ogg
+%%MUSIC%%%%DATADIR%%/music/c64revival.ogg
+%%MUSIC%%%%DATADIR%%/music/tb_schizophrenia.ogg
%%DATADIR%%/sfx/badpill.wav
%%DATADIR%%/sfx/ball_sinks.wav
%%DATADIR%%/sfx/ball_sinks2.wav