ports/78101: Update for games/toppler
Dominic Mitchell
dom at happygiraffe.net
Sat Feb 26 01:10:21 UTC 2005
>Number: 78101
>Category: ports
>Synopsis: Update for games/toppler
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 26 01:10:20 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Dominic Mitchell
>Release: FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ppe.happygiraffe.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Tue Jan 4 21:51:37 GMT 2005 root at ppe.happygiraffe.net:/usr/obj/usr/src/sys/PPE i386
>Description:
This updates games/toppler to the latest version.
>How-To-Repeat:
Spend hours swearing at autoconf/automake abuse. ;-)
>Fix:
Here's the patch.
diff -ruN /usr/ports/games/toppler/Makefile toppler/Makefile
--- /usr/ports/games/toppler/Makefile Wed Mar 17 00:17:43 2004
+++ toppler/Makefile Sat Feb 26 00:49:39 2005
@@ -6,8 +6,7 @@
#
PORTNAME= toppler
-PORTVERSION= 1.0.2
-PORTREVISION= 2
+PORTVERSION= 1.1.1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= toppler
@@ -15,19 +14,21 @@
MAINTAINER= dom at happygiraffe.net
COMMENT= A game where you have to climb the tower and avoid the monsters
-USE_SDL= mixer sdl
-USE_GMAKE= yes
-USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
+USE_GETTEXT= yes
+USE_GMAKE= yes
+USE_SDL= mixer sdl
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ LIBS="-lintl"
+CONFIGURE_ARGS= --program-transform-name= --localstatedir=/var/games
MAN6= toppler.6
-pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
- @${FIND} ${WRKSRC} \( -name "*.[ch]" -or -name "*.cc" \) | \
- ${XARGS} ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
-
post-install:
- @cd ${WRKSRC} && ${MAKE} global_highscore
+ @${CHOWN} root:games ${PREFIX}/bin/toppler
+ @${CHMOD} g+s ${PREFIX}/bin/toppler
+ @${SETENV} "PKG_PREFIX=${PREFIX}" \
+ ${SH} pkg-install ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
diff -ruN /usr/ports/games/toppler/distinfo toppler/distinfo
--- /usr/ports/games/toppler/distinfo Thu Apr 1 00:37:20 2004
+++ toppler/distinfo Fri Feb 25 13:13:05 2005
@@ -1,2 +1,2 @@
-MD5 (toppler-1.0.2.tar.gz) = 18793ac2bec622a94e5369c645941954
-SIZE (toppler-1.0.2.tar.gz) = 1081984
+MD5 (toppler-1.1.1.tar.gz) = 913fe90fcb15f3d6a12d5194a0db2b7d
+SIZE (toppler-1.1.1.tar.gz) = 1168116
diff -ruN /usr/ports/games/toppler/pkg-install toppler/pkg-install
--- /usr/ports/games/toppler/pkg-install Thu Jan 1 01:00:00 1970
+++ toppler/pkg-install Sat Feb 26 00:42:43 2005
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+FILE=/var/games/toppler/toppler.hsc
+[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
+
+echo "===> Creating initial high score file $FILE"
+[ -d `dirname $FILE` ] || install -o root -g games -m 775 -d `dirname $FILE`
+install -o root -g games -m 664 /dev/null $FILE
diff -ruN /usr/ports/games/toppler/pkg-plist toppler/pkg-plist
--- /usr/ports/games/toppler/pkg-plist Tue Jul 1 00:20:04 2003
+++ toppler/pkg-plist Sat Feb 26 00:57:04 2005
@@ -1,27 +1,14 @@
bin/toppler
+share/locale/de/LC_MESSAGES/toppler.mo
+share/locale/fi/LC_MESSAGES/toppler.mo
+share/locale/fr/LC_MESSAGES/toppler.mo
share/toppler/abc.ttm
-share/toppler/alarm.wav
share/toppler/ball1.ttm
share/toppler/ball2.ttm
share/toppler/ball3.ttm
-share/toppler/boing.wav
-share/toppler/bubbles.wav
-share/toppler/fanfare.wav
-share/toppler/hit.wav
-share/toppler/honk.wav
share/toppler/m1.ttm
share/toppler/m2.ttm
-share/toppler/rumble.wav
-share/toppler/score.wav
-share/toppler/sonar.wav
-share/toppler/splash.wav
-share/toppler/swoosh.wav
-share/toppler/tap.wav
-share/toppler/tick.wav
+share/toppler/pasi2.ttm
share/toppler/toppler.dat
share/toppler/toppler.xpm
-share/toppler/torpedo.wav
-share/toppler/water.wav
-var/toppler/toppler.hsc
@dirrm share/toppler
- at dirrm var/toppler
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list