diff options
author | pav <pav@FreeBSD.org> | 2005-03-17 05:17:36 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-03-17 05:17:36 +0800 |
commit | da3fe2b21ffb72cd7ea5a5b89fd9c8bf8a1a4332 (patch) | |
tree | 969d19c5b0ad424ab265d679b44a32f60da258af /games | |
parent | febabd53029d88cbef9e715394ab1b9ecb4c9b58 (diff) | |
download | freebsd-ports-gnome-da3fe2b21ffb72cd7ea5a5b89fd9c8bf8a1a4332.tar.gz freebsd-ports-gnome-da3fe2b21ffb72cd7ea5a5b89fd9c8bf8a1a4332.tar.zst freebsd-ports-gnome-da3fe2b21ffb72cd7ea5a5b89fd9c8bf8a1a4332.zip |
- Update to 1.1.1
- IGNORE on FreeBSD 4
PR: ports/78101
Submitted by: Dominic Mitchell <dom@happygiraffe.net> (maintainer)
Diffstat (limited to 'games')
-rw-r--r-- | games/toppler/Makefile | 29 | ||||
-rw-r--r-- | games/toppler/distinfo | 4 | ||||
-rw-r--r-- | games/toppler/pkg-install | 8 | ||||
-rw-r--r-- | games/toppler/pkg-plist | 21 |
4 files changed, 32 insertions, 30 deletions
diff --git a/games/toppler/Makefile b/games/toppler/Makefile index e9e18f81c5ee..ebdd21ebfdf7 100644 --- a/games/toppler/Makefile +++ b/games/toppler/Makefile @@ -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,27 @@ MASTER_SITE_SUBDIR= toppler MAINTAINER= dom@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' +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +IGNORE= can not be compiled because it requires mbrtowc() in libc +.endif 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> +.include <bsd.port.post.mk> diff --git a/games/toppler/distinfo b/games/toppler/distinfo index e39a9c602952..a557dc00a199 100644 --- a/games/toppler/distinfo +++ b/games/toppler/distinfo @@ -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 --git a/games/toppler/pkg-install b/games/toppler/pkg-install new file mode 100644 index 000000000000..d406fe424621 --- /dev/null +++ b/games/toppler/pkg-install @@ -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 --git a/games/toppler/pkg-plist b/games/toppler/pkg-plist index 5f7ea23c0d0d..17b7fe9d23d6 100644 --- a/games/toppler/pkg-plist +++ b/games/toppler/pkg-plist @@ -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 -@dirrm var/toppler |