From 0377c72781f26c04296b11170235c44f56cfa939 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 18 Dec 2015 16:46:05 +0000 Subject: Fix build as a user. Use options helpers. Sponsored by: Absolight --- games/trackballs/Makefile | 8 +++----- games/trackballs/files/patch-share_Makefile.in | 11 +++++++++++ games/trackballs/pkg-plist | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 games/trackballs/files/patch-share_Makefile.in (limited to 'games') diff --git a/games/trackballs/Makefile b/games/trackballs/Makefile index a5a452a561b0..eda0710f78ef 100644 --- a/games/trackballs/Makefile +++ b/games/trackballs/Makefile @@ -35,16 +35,14 @@ MUSIC_DESC= Install additional music NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls -.include - post-patch: @${REINPLACE_CMD} -e 's|install -D|$$(INSTALL)|' \ ${WRKSRC}/share/Makefile.in -post-install: -.if ${PORT_OPTIONS:MMUSIC} +post-install-MUSIC-on: ${INSTALL_DATA} ${WRKDIR}/trackballs-music/*.ogg ${STAGEDIR}${DATADIR}/music/ -.endif + +post-install: ${INSTALL_DATA} ${WRKSRC}/share/icons/${PORTNAME}-48x48.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png .include diff --git a/games/trackballs/files/patch-share_Makefile.in b/games/trackballs/files/patch-share_Makefile.in new file mode 100644 index 000000000000..9fa2d70ba9b7 --- /dev/null +++ b/games/trackballs/files/patch-share_Makefile.in @@ -0,0 +1,11 @@ +--- share/Makefile.in.orig 2015-12-18 16:12:01 UTC ++++ share/Makefile.in +@@ -567,7 +567,7 @@ uninstall-man: uninstall-man6 + + + install-pkgdataDATA: +- -install -D -m664 -g games highScores $(DESTDIR)@with_highscores@ ++ -install -D highScores $(DESTDIR)@with_highscores@ + -chgrp -R games $(DESTDIR)$(pkgdatadir)/levels + chmod -R g+r $(DESTDIR)$(pkgdatadir)/levels + # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/games/trackballs/pkg-plist b/games/trackballs/pkg-plist index ed495a46033d..b4cbdbbcec63 100644 --- a/games/trackballs/pkg-plist +++ b/games/trackballs/pkg-plist @@ -15,7 +15,7 @@ share/pixmaps/trackballs.png %%DATADIR%%/customizing.html %%DATADIR%%/examples.html %%DATADIR%%/fonts/menuFont.ttf -%%DATADIR%%/highScores +@(,games,664) %%DATADIR%%/highScores %%DATADIR%%/images/acid.png %%DATADIR%%/images/difficulty0.png %%DATADIR%%/images/difficulty0High.png -- cgit