Bug 171256 - [PATCH] games/trackballs: Makefile changed, added Music Support and OptionsNG
Summary: [PATCH] games/trackballs: Makefile changed, added Music Support and OptionsNG
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ganael LAPLANCHE
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-02 15:40 UTC by nemysis
Modified: 2012-09-11 07:20 UTC (History)
1 user (show)

See Also:


Attachments
trackballs-1.1.4_15.patch (11.38 KB, patch)
2012-09-02 15:40 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2012-09-02 15:40:35 UTC
Makefile changed:

Added

- Music support
- PLIST_FILES
- PLIST_DIRSTRY
- PORTDATA=	*
- Pixmaps

OptionsNG for

- NLS, PLIST_FILES+, only if install NLS
- Music

Removed file(s):
- pkg-plist

Port maintainer (martymac@FreeBSD.org) is cc'd.

Generated and tested manually, tested with port test and with RedPorts (all RELEASES), sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer 2012-09-02 15:41:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->martymac

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter freebsd_committer 2012-09-11 07:17:13 UTC
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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Ganael LAPLANCHE freebsd_committer 2012-09-11 07:20:05 UTC
State Changed
From-To: open->closed

Committed with minor changes, thanks!