Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2012 06:17:04 +0000 (UTC)
From:      Ganael LAPLANCHE <martymac@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304082 - head/games/trackballs
Message-ID:  <201209110617.q8B6H4Vo089824@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: martymac
Date: Tue Sep 11 06:17:03 2012
New Revision: 304082
URL: http://svn.freebsd.org/changeset/ports/304082

Log:
  - Add MUSIC and NLS options
  - Add a pixmap
  
  PR:		ports/171256
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/games/trackballs/Makefile
  head/games/trackballs/distinfo
  head/games/trackballs/pkg-plist

Modified: head/games/trackballs/Makefile
==============================================================================
--- head/games/trackballs/Makefile	Tue Sep 11 06:14:26 2012	(r304081)
+++ head/games/trackballs/Makefile	Tue Sep 11 06:17:03 2012	(r304082)
@@ -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>

Modified: head/games/trackballs/distinfo
==============================================================================
--- head/games/trackballs/distinfo	Tue Sep 11 06:14:26 2012	(r304081)
+++ head/games/trackballs/distinfo	Tue Sep 11 06:17:03 2012	(r304082)
@@ -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

Modified: head/games/trackballs/pkg-plist
==============================================================================
--- head/games/trackballs/pkg-plist	Tue Sep 11 06:14:26 2012	(r304081)
+++ head/games/trackballs/pkg-plist	Tue Sep 11 06:17:03 2012	(r304082)
@@ -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.m
 %%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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209110617.q8B6H4Vo089824>