diff options
author | danilo <danilo@FreeBSD.org> | 2016-01-09 08:20:34 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2016-01-09 08:20:34 +0800 |
commit | 7d7ab2b34cd97a6edc160d3ddd962427c7988d62 (patch) | |
tree | fc44668ff0b187d88c83ceb1edae01ce8a4e9b1d /games | |
parent | 7dd66dcc16c3042b2de0ab13cbcf174afbd3f991 (diff) | |
download | freebsd-ports-gnome-7d7ab2b34cd97a6edc160d3ddd962427c7988d62.tar.gz freebsd-ports-gnome-7d7ab2b34cd97a6edc160d3ddd962427c7988d62.tar.zst freebsd-ports-gnome-7d7ab2b34cd97a6edc160d3ddd962427c7988d62.zip |
- Move highscores to /var/games
- Modernize plist
- Add license
PR: 205628
Submitted by: amdmi3
Diffstat (limited to 'games')
-rw-r--r-- | games/xbomb/Makefile | 11 | ||||
-rw-r--r-- | games/xbomb/files/patch-hiscore.c | 6 | ||||
-rw-r--r-- | games/xbomb/pkg-plist | 18 |
3 files changed, 15 insertions, 20 deletions
diff --git a/games/xbomb/Makefile b/games/xbomb/Makefile index 2716861d9e17..c7970abf996d 100644 --- a/games/xbomb/Makefile +++ b/games/xbomb/Makefile @@ -9,6 +9,9 @@ MASTER_SITES= http://www.gedanken.org.uk/software/xbomb/download/ MAINTAINER= danilo@FreeBSD.org COMMENT= Minesweeper with a couple of grid types +LICENSE= GPLv2 # or later +LICENSE_FILE= ${WRKSRC}/COPYING + USES= pkgconfig tar:tgz USE_XORG= xaw7 @@ -21,9 +24,9 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xbomb ${STAGEDIR}${PREFIX}/bin/xbomb ${INSTALL_MAN} ${WRKSRC}/xbomb.6 ${STAGEDIR}${MANPREFIX}/man/man6/xbomb.6 ${INSTALL_DATA} ${WRKSRC}/xbomb.ad ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/XBomb - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xbomb - @${TOUCH} ${STAGEDIR}${PREFIX}/lib/X11/xbomb/xbomb3.hi - @${TOUCH} ${STAGEDIR}${PREFIX}/lib/X11/xbomb/xbomb4.hi - @${TOUCH} ${STAGEDIR}${PREFIX}/lib/X11/xbomb/xbomb6.hi + @${MKDIR} ${STAGEDIR}/var/games/xbomb + @${TOUCH} ${STAGEDIR}/var/games/xbomb/xbomb3.hi.sample + @${TOUCH} ${STAGEDIR}/var/games/xbomb/xbomb4.hi.sample + @${TOUCH} ${STAGEDIR}/var/games/xbomb/xbomb6.hi.sample .include <bsd.port.mk> diff --git a/games/xbomb/files/patch-hiscore.c b/games/xbomb/files/patch-hiscore.c index 6d7a940dde31..a5f4ff060a87 100644 --- a/games/xbomb/files/patch-hiscore.c +++ b/games/xbomb/files/patch-hiscore.c @@ -5,9 +5,9 @@ /*+ The names of the high score tables. +*/ -static char *filenames[NTYPES]={"/var/tmp/xbomb6.hi","/var/tmp/xbomb4.hi","/var/tmp/xbomb3.hi"}; -+static char *filenames[NTYPES]={LOCALBASE"/lib/X11/xbomb/xbomb6.hi", -+ LOCALBASE"/lib/X11/xbomb/xbomb4.hi", -+ LOCALBASE"/lib/X11/xbomb/xbomb3.hi"}; ++static char *filenames[NTYPES]={"/var/games/xbomb/xbomb6.hi", ++ "/var/games/xbomb/xbomb4.hi", ++ "/var/games/xbomb/xbomb3.hi"}; /*+ The names of the positions in the high score tables. +*/ static char pos[11][5]={"Top","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","Lost"}; diff --git a/games/xbomb/pkg-plist b/games/xbomb/pkg-plist index 5c6ecd2d36f4..8a256261c27d 100644 --- a/games/xbomb/pkg-plist +++ b/games/xbomb/pkg-plist @@ -1,15 +1,7 @@ -@group games -@mode 2755 -bin/xbomb -@mode -@group +@(,games,2755) bin/xbomb man/man6/xbomb.6.gz lib/X11/app-defaults/XBomb -@group games -@mode 664 -lib/X11/xbomb/xbomb3.hi -lib/X11/xbomb/xbomb4.hi -lib/X11/xbomb/xbomb6.hi -@mode -@group -@dirrmtry lib/X11/xbomb +@sample(,games,664) /var/games/xbomb/xbomb3.hi.sample +@sample(,games,664) /var/games/xbomb/xbomb4.hi.sample +@sample(,games,664) /var/games/xbomb/xbomb6.hi.sample +@dir /var/games/xbomb |