aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-02-02 06:12:52 +0800
committernemysis <nemysis@FreeBSD.org>2014-02-02 06:12:52 +0800
commit564a829363a43864ea1602748f186da12371be99 (patch)
treefe6463c4e00df4ae624740bb61eea4df85348bf9 /games
parent7a7c6f6d3b741017e8d40bfb50bc3b7700b4b097 (diff)
downloadfreebsd-ports-gnome-564a829363a43864ea1602748f186da12371be99.tar.gz
freebsd-ports-gnome-564a829363a43864ea1602748f186da12371be99.tar.zst
freebsd-ports-gnome-564a829363a43864ea1602748f186da12371be99.zip
- Take maintainership
- Add license (GPLv2) - Disable all warnings with -w - Change DOCS, add DOCS and NLS Options - Support STAGEDIR and add OPTIONS_SUB - Fix NLS, use NLS_USES gettext instead of USES gettext - Add Desktop entry file and icon - Recreate patches with make makepatch - Change pkg-plist, remove DOCS PR: ports/173876 Submitted by: nemysis (self)
Diffstat (limited to 'games')
-rw-r--r--games/gtkballs/Makefile41
-rw-r--r--games/gtkballs/files/patch-src__game.c (renamed from games/gtkballs/files/patch-src_game.c)4
-rw-r--r--games/gtkballs/files/patch-src__gtkballs.c (renamed from games/gtkballs/files/patch-src_gtkballs.c)6
-rw-r--r--games/gtkballs/pkg-plist14
4 files changed, 36 insertions, 29 deletions
diff --git a/games/gtkballs/Makefile b/games/gtkballs/Makefile
index 6c44434b14d0..b85c5d91e0d9 100644
--- a/games/gtkballs/Makefile
+++ b/games/gtkballs/Makefile
@@ -7,29 +7,38 @@ PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= http://gtkballs.antex.ru/dist/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= Lines-like simple logic game for X Window System
-USES= gettext gmake pkgconfig
+LICENSE= GPLv2
+
+USES= gmake pkgconfig
USE_GNOME= gtk20
GNU_CONFIGURE= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --localstatedir=${DATADIR}
-MAN6= gtkballs.6x
+CPPFLAGS+= -I${LOCALBASE}/include -w
+LDFLAGS+= -L${LOCALBASE}/lib
+
+PORTDOCS= AUTHORS ChangeLog NEWS README README.russian TODO
+
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
+
+DESKTOP_ENTRIES="GtkBalls" "" ${PORTNAME} \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
-NO_STAGE= yes
post-install:
- ${CHMOD} 2755 ${PREFIX}/bin/gtkballs
- ${CHOWN} root:games ${PREFIX}/bin/gtkballs
- ${CHMOD} 0664 ${DATADIR}/gtkballs-scores
- ${CHOWN} root:games ${DATADIR}/gtkballs-scores
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in README README.russian TODO
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/gnome-gtkballs.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+ ${CHMOD} 664 ${STAGEDIR}${DATADIR}/gtkballs-scores
+ ${CHOWN} root:games ${STAGEDIR}${DATADIR}/gtkballs-scores
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/gtkballs/files/patch-src_game.c b/games/gtkballs/files/patch-src__game.c
index fc5585c0b2dd..78ac25e7553f 100644
--- a/games/gtkballs/files/patch-src_game.c
+++ b/games/gtkballs/files/patch-src__game.c
@@ -1,5 +1,5 @@
---- src/game.c.orig Wed Oct 6 20:06:46 2004
-+++ src/game.c Wed Oct 27 02:10:30 2004
+--- ./src/game.c.orig 2004-10-06 13:06:46.000000000 +0200
++++ ./src/game.c 2014-02-01 20:44:28.000000000 +0100
@@ -495,8 +495,8 @@
lock_actions(1);
draw_board();
diff --git a/games/gtkballs/files/patch-src_gtkballs.c b/games/gtkballs/files/patch-src__gtkballs.c
index 875649d96b0c..c0151ea08496 100644
--- a/games/gtkballs/files/patch-src_gtkballs.c
+++ b/games/gtkballs/files/patch-src__gtkballs.c
@@ -1,6 +1,6 @@
---- src/gtkballs.c.orig 2009-11-16 23:08:02.000000000 +0100
-+++ src/gtkballs.c 2009-11-16 23:08:12.000000000 +0100
-@@ -123,7 +123,7 @@ int main(int argc, char **argv) {
+--- ./src/gtkballs.c.orig 2004-02-06 14:51:54.000000000 +0100
++++ ./src/gtkballs.c 2014-02-01 20:44:28.000000000 +0100
+@@ -123,7 +123,7 @@
#ifdef ENABLE_NLS
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
diff --git a/games/gtkballs/pkg-plist b/games/gtkballs/pkg-plist
index e714b2871fad..9b2f8149892d 100644
--- a/games/gtkballs/pkg-plist
+++ b/games/gtkballs/pkg-plist
@@ -1,7 +1,5 @@
bin/gtkballs
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/README.russian
-%%PORTDOCS%%%%DOCSDIR%%/TODO
+man/man6/gtkballs.6x.gz
%%DATADIR%%/COPYING
%%DATADIR%%/gtkballs-logo.png
%%DATADIR%%/gtkballs-scores
@@ -526,14 +524,14 @@ bin/gtkballs
%%DATADIR%%/themes/mascots/walk7.xpm
%%DATADIR%%/themes/mascots/walk8.xpm
%%DATADIR%%/themes/mascots/walk_small.xpm
-share/locale/de/LC_MESSAGES/gtkballs.mo
-share/locale/fr/LC_MESSAGES/gtkballs.mo
-share/locale/pl/LC_MESSAGES/gtkballs.mo
-share/locale/ru/LC_MESSAGES/gtkballs.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gtkballs.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gtkballs.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gtkballs.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gtkballs.mo
+share/pixmaps/gtkballs.png
@dirrm %%DATADIR%%/themes/mascots
@dirrm %%DATADIR%%/themes/klines
@dirrm %%DATADIR%%/themes/Default
@dirrm %%DATADIR%%/themes/5balls-Big
@dirrm %%DATADIR%%/themes
@dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%