svn commit: r403979 - in head/games/trackballs: . files
Mathieu Arnold
mat at FreeBSD.org
Fri Dec 18 16:46:07 UTC 2015
Author: mat
Date: Fri Dec 18 16:46:05 2015
New Revision: 403979
URL: https://svnweb.freebsd.org/changeset/ports/403979
Log:
Fix build as a user.
Use options helpers.
Sponsored by: Absolight
Added:
head/games/trackballs/files/patch-share_Makefile.in (contents, props changed)
Modified:
head/games/trackballs/Makefile
head/games/trackballs/pkg-plist
Modified: head/games/trackballs/Makefile
==============================================================================
--- head/games/trackballs/Makefile Fri Dec 18 16:46:00 2015 (r403978)
+++ head/games/trackballs/Makefile Fri Dec 18 16:46:05 2015 (r403979)
@@ -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>
Added: head/games/trackballs/files/patch-share_Makefile.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/trackballs/files/patch-share_Makefile.in Fri Dec 18 16:46:05 2015 (r403979)
@@ -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.
Modified: head/games/trackballs/pkg-plist
==============================================================================
--- head/games/trackballs/pkg-plist Fri Dec 18 16:46:00 2015 (r403978)
+++ head/games/trackballs/pkg-plist Fri Dec 18 16:46:05 2015 (r403979)
@@ -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
More information about the svn-ports-head
mailing list