diff options
author | edwin <edwin@FreeBSD.org> | 2005-01-22 17:41:03 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-01-22 17:41:03 +0800 |
commit | 103b9a1ad2f48064b69aab336b8240d36461696c (patch) | |
tree | 980ea7e3419d17f8ba4566d2a6ee2e2830be1694 /games | |
parent | fd0aefff7eeda2edf47cecffee9338bd8373e366 (diff) | |
download | freebsd-ports-gnome-103b9a1ad2f48064b69aab336b8240d36461696c.tar.gz freebsd-ports-gnome-103b9a1ad2f48064b69aab336b8240d36461696c.tar.zst freebsd-ports-gnome-103b9a1ad2f48064b69aab336b8240d36461696c.zip |
Update port: games/powermanga (fix high scores handling)
* Fixes crash on game over
* Fixes high scores saving
PR: ports/76558
Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
Diffstat (limited to 'games')
-rw-r--r-- | games/powermanga/Makefile | 4 | ||||
-rw-r--r-- | games/powermanga/files/patch-src::score.cpp | 11 | ||||
-rw-r--r-- | games/powermanga/pkg-install | 15 |
3 files changed, 29 insertions, 1 deletions
diff --git a/games/powermanga/Makefile b/games/powermanga/Makefile index 177de846c91c..2c9b541706ff 100644 --- a/games/powermanga/Makefile +++ b/games/powermanga/Makefile @@ -7,6 +7,7 @@ PORTNAME= powermanga PORTVERSION= 0.79 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://linux.tlk.fr/games/Powermanga/download/ EXTRACT_SUFX= .tgz @@ -40,8 +41,9 @@ post-patch: ${WRKSRC}/src/powermanga.hpp \ ${WRKSRC}/src/sdl_mixer.cpp -.if !defined(NOPORTDOCS) post-install: + @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} \ ${WRKSRC}/AUTHORS \ diff --git a/games/powermanga/files/patch-src::score.cpp b/games/powermanga/files/patch-src::score.cpp new file mode 100644 index 000000000000..b30ad26208c4 --- /dev/null +++ b/games/powermanga/files/patch-src::score.cpp @@ -0,0 +1,11 @@ +--- src/score.cpp.orig Sat Jan 22 01:59:45 2005 ++++ src/score.cpp Sat Jan 22 01:59:56 2005 +@@ -449,7 +449,7 @@ + } + close(_iHandle); + } +- if(_pMemoire) ++ if(_pMemoire && sDescriptionFichier.st_size > 0) + { + char *_pBufferC = _pMemoire; + int *_pBufferL; diff --git a/games/powermanga/pkg-install b/games/powermanga/pkg-install new file mode 100644 index 000000000000..08a67859f0b6 --- /dev/null +++ b/games/powermanga/pkg-install @@ -0,0 +1,15 @@ +#!/bin/sh + +SCOREDIR="/var/games" +SCOREBASE="/var/games/powermanga.hi" + +[ "$2" != "POST-INSTALL" ] && exit 0 + +mkdir -p $SCOREDIR + +for suffix in "-easy" "" "-hard"; do + file="$SCOREBASE$suffix" + [ ! -f $file ] && touch $file + chown root:games $file + chmod 664 $file +done |