keep score

ok ajacoutot@
This commit is contained in:
deanna 2008-04-25 13:54:27 +00:00
parent 1e365ceeb8
commit b735a7e2f6
3 changed files with 35 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.21 2007/11/13 14:54:32 steven Exp $
# $OpenBSD: Makefile,v 1.22 2008/04/25 13:54:27 deanna Exp $
COMMENT= win land without colliding with 'flyers' and 'eaters'
DISTNAME= xonix-1.4
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
CATEGORIES= games
MASTER_SITES= ftp://ftp.interface-business.de/pub/outgoing/
@ -19,4 +19,8 @@ CONFIGURE_STYLE=imake
USE_X11= Yes
NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xonix
${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/xonix/xonix.scores
.include <bsd.port.mk>

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-x11_c,v 1.1 2008/04/25 13:54:27 deanna Exp $
--- x11.c.orig Fri Apr 18 17:45:06 2008
+++ x11.c Fri Apr 18 17:45:55 2008
@@ -52,8 +52,8 @@
#ifdef __unix
#define MAXSCORES 10 /* number of entries in high score table */
-#define PATH_HIGHSCORE XONIXDIR "/scores"
-#define PATH_TEMPSCORE XONIXDIR "/score_tmp"
+#define PATH_HIGHSCORE "/var/games/xonix/xonix.scores"
+#define PATH_TEMPSCORE "/var/games/xonix/xonix.score_tmp"
#if defined(__unix) && !defined PATH_RMAIL
#define PATH_RMAIL "rmail" /* rely on the $PATH */

View File

@ -1,5 +1,19 @@
@comment $OpenBSD: PLIST,v 1.5 2004/09/15 00:46:12 espie Exp $
@comment $OpenBSD: PLIST,v 1.6 2008/04/25 13:54:27 deanna Exp $
@mode g+s
@group games
bin/xonix
@mode
@group
lib/X11/app-defaults/Xonix
lib/X11/xonix/
@man man/cat1/xonix.0
share/examples/xonix/
@mode 775
@group games
@sample /var/games/xonix/
@mode
@group
share/examples/xonix/xonix.scores
@mode 664
@group games
@sample /var/games/xonix/xonix.scores