aboutsummaryrefslogtreecommitdiff
path: root/games/gtktetcolor
diff options
context:
space:
mode:
Diffstat (limited to 'games/gtktetcolor')
-rw-r--r--games/gtktetcolor/Makefile15
-rw-r--r--games/gtktetcolor/files/patch-Makefile.in21
-rw-r--r--games/gtktetcolor/pkg-descr4
3 files changed, 30 insertions, 10 deletions
diff --git a/games/gtktetcolor/Makefile b/games/gtktetcolor/Makefile
index e056eb95c4e6..d707168c91c7 100644
--- a/games/gtktetcolor/Makefile
+++ b/games/gtktetcolor/Makefile
@@ -3,6 +3,7 @@
PORTNAME= gtktetcolor
DISTVERSION= 0.6.5pre3
+PORTREVISION= 1
CATEGORIES= games gnome
MASTER_SITES= ftp://canopus.iacp.dvo.ru/pub/Games/gtktetcolor/ \
SF/nemysisfreebsdp/games/${PORTNAME}/:icons
@@ -16,15 +17,16 @@ COMMENT= Game for GNOME that resembles well-known Tetris and Columns
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_BZIP2= yes
-USES= desktop-file-utils gmake pathfix pkgconfig
+BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
+
+USES= gmake pathfix pkgconfig tar:bzip2
USE_GNOME= gnomeprefix intlhack libgnomeui
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-PORTDOCS= AUTHORS ChangeLog NEWS README TODO
+PORTDOCS= AUTHORS ChangeLog NEWS README
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
@@ -34,10 +36,6 @@ NLS_USES= gettext
.include <bsd.port.options.mk>
post-patch:
- @${REINPLACE_CMD} \
- -e 's|games.games|root.games|' \
- -e 's|scoredir = $$(localstatedir)/games|scoredir = /var/games|' \
- ${WRKSRC}/Makefile.in
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-D.*_DISABLE_DEPRECATED||g'
@${REINPLACE_CMD} -e 's|^Icon.*|Icon=${PORTNAME}|' \
@@ -48,7 +46,8 @@ post-patch:
.endif
post-install:
- ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
diff --git a/games/gtktetcolor/files/patch-Makefile.in b/games/gtktetcolor/files/patch-Makefile.in
new file mode 100644
index 000000000000..9c8acebfa347
--- /dev/null
+++ b/games/gtktetcolor/files/patch-Makefile.in
@@ -0,0 +1,21 @@
+--- ./Makefile.in.orig 2014-03-30 22:32:54.917825473 +0200
++++ ./Makefile.in 2014-03-30 22:38:32.398257484 +0200
+@@ -218,7 +218,7 @@
+
+ @use_gnome_TRUE@soundlist_DATA = gtktetcolor.soundlist
+ @use_gnome_TRUE@soundlistdir = $(sysconfdir)/sound/events
+-@use_gnome_TRUE@scoredir = $(localstatedir)/games
++@use_gnome_TRUE@scoredir = /var/games
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+@@ -671,9 +671,7 @@
+ @use_gnome_TRUE@install-data-local:
+ @use_gnome_TRUE@ -$(mkinstalldirs) $(DESTDIR)$(scoredir)
+ @use_gnome_TRUE@ touch $(DESTDIR)$(scoredir)/gtktetcolor.scores
+-@use_gnome_TRUE@ -chown games.games $(DESTDIR)$(scoredir)/gtktetcolor.scores
+ @use_gnome_TRUE@ -chmod 664 $(DESTDIR)$(scoredir)/gtktetcolor.scores
+-@use_gnome_TRUE@ -chgrp games $(DESTDIR)$(bindir)/gtktetcolor && chmod 2111 $(DESTDIR)$(bindir)/gtktetcolor
+ @use_gnome_FALSE@install-score:
+ @use_gnome_FALSE@ cd ./src && $(MAKE) $(AM_MAKEFLAGS) install-score
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
diff --git a/games/gtktetcolor/pkg-descr b/games/gtktetcolor/pkg-descr
index 39c3a84d04ac..6e3b218a86bf 100644
--- a/games/gtktetcolor/pkg-descr
+++ b/games/gtktetcolor/pkg-descr
@@ -4,6 +4,6 @@ fall. After block landing the sequence of at least three cells horizontally,
vertically or diagonally having matching colors is removed and the above blocks
will collapse. If two or more sequences will be removed simultaneously the
player has got bonus points. The game will be over when new block cannot be
-placed on screen.
+placed on screen.
-WWW: http://canopus.iacp.dvo.ru/~panov/gtktetcolor/
+WWW: https://web.archive.org/web/20080409165301/http://canopus.iacp.dvo.ru/~panov/gtktetcolor/