diff options
author | mat <mat@FreeBSD.org> | 2015-12-19 00:46:05 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-12-19 00:46:05 +0800 |
commit | 0377c72781f26c04296b11170235c44f56cfa939 (patch) | |
tree | 952a3d2cc89c10f6ba9642b3dbea55d5c04445db /games | |
parent | f176c2b2c0629ae3205c7cd87806a92024d48f1f (diff) | |
download | freebsd-ports-gnome-0377c72781f26c04296b11170235c44f56cfa939.tar.gz freebsd-ports-gnome-0377c72781f26c04296b11170235c44f56cfa939.tar.zst freebsd-ports-gnome-0377c72781f26c04296b11170235c44f56cfa939.zip |
Fix build as a user.
Use options helpers.
Sponsored by: Absolight
Diffstat (limited to 'games')
-rw-r--r-- | games/trackballs/Makefile | 8 | ||||
-rw-r--r-- | games/trackballs/files/patch-share_Makefile.in | 11 | ||||
-rw-r--r-- | games/trackballs/pkg-plist | 2 |
3 files changed, 15 insertions, 6 deletions
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 <bsd.port.options.mk> - 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 <bsd.port.mk> 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 |