1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Update to 1.1.1

- IGNORE on FreeBSD 4

PR:		ports/78101
Submitted by:	Dominic Mitchell <dom@happygiraffe.net> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-03-16 21:17:36 +00:00
parent 0b59e72aea
commit 0c0be630f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131432
4 changed files with 32 additions and 30 deletions

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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