pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/lbreakout2 Honour VARBASE and use config file fr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8a4a6d2c0c06
branches: trunk
changeset: 514977:8a4a6d2c0c06
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Jun 21 16:00:57 2006 +0000
description:
Honour VARBASE and use config file framework for the high score file.
Use INSTALL to inform the user of the changed location. Bump revision.
Discussed with jlam@
diffstat:
games/lbreakout2/INSTALL | 18 ++++++++++++++++++
games/lbreakout2/Makefile | 12 ++++++++----
games/lbreakout2/distinfo | 3 ++-
games/lbreakout2/patches/patch-aa | 15 +++++++++++++++
4 files changed, 43 insertions(+), 5 deletions(-)
diffs (87 lines):
diff -r fba03f5bebb7 -r 8a4a6d2c0c06 games/lbreakout2/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/lbreakout2/INSTALL Wed Jun 21 16:00:57 2006 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: INSTALL,v 1.1 2006/06/21 16:00:57 joerg Exp $
+
+case ${STAGE} in
+POST-INSTALL)
+ if ${TEST} -f @PREFIX@/var/lbreakout2.hscr; then
+ ${CAT} << EOF
+===========================================================================
+
+If you are upgrading lbreakout2 from a previous version, please note
+that the locations of the highscore file has moved:
+
+ @PREFIX@/var/lbreakout2.hscr ==> @VARBASE@/games/lbreakout2.hscr
+
+===========================================================================
+EOF
+ fi
+ ;;
+esac
diff -r fba03f5bebb7 -r 8a4a6d2c0c06 games/lbreakout2/Makefile
--- a/games/lbreakout2/Makefile Wed Jun 21 15:52:33 2006 +0000
+++ b/games/lbreakout2/Makefile Wed Jun 21 16:00:57 2006 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.26 2006/06/12 16:28:09 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2006/06/21 16:00:57 joerg Exp $
DISTNAME= lbreakout2-2.5.2
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lgames/}
@@ -10,8 +10,9 @@
COMMENT= Breakout-style arcade game
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-highscore-path=${PREFIX}/share/games/ \
- --with-docdir=${PREFIX}/share/doc/html
+CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}/games
+CONFIGURE_ARGS+= --with-highscore-path=${PREFIX}/share/games/
+CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/html
LDFLAGS.SunOS+= -lsocket -lnsl
@@ -24,6 +25,9 @@
SUBST_SED.sunpro= -e 's,^inline ,,'
.endif
+CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/lbreakout2.hscr \
+ ${ROOT_USER} games 664
+
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r fba03f5bebb7 -r 8a4a6d2c0c06 games/lbreakout2/distinfo
--- a/games/lbreakout2/distinfo Wed Jun 21 15:52:33 2006 +0000
+++ b/games/lbreakout2/distinfo Wed Jun 21 16:00:57 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.8 2005/02/23 23:12:00 agc Exp $
+$NetBSD: distinfo,v 1.9 2006/06/21 16:00:57 joerg Exp $
SHA1 (lbreakout2-2.5.2.tar.gz) = 50a7627c7373178a04467c292e83a1c8e7dc58c6
RMD160 (lbreakout2-2.5.2.tar.gz) = bf2031134f26b88899c96890cb994603c4e67f2c
Size (lbreakout2-2.5.2.tar.gz) = 2849669 bytes
+SHA1 (patch-aa) = 1898a5af757bec97e3e9951f0329dfeb9fe41371
diff -r fba03f5bebb7 -r 8a4a6d2c0c06 games/lbreakout2/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/lbreakout2/patches/patch-aa Wed Jun 21 16:00:57 2006 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.3 2006/06/21 16:00:57 joerg Exp $
+
+--- client/Makefile.in.orig 2006-06-21 15:29:55.000000000 +0000
++++ client/Makefile.in
+@@ -626,10 +626,6 @@ lbreakout2res.o: win32.ico
+
+ install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(inst_dir)
+- $(mkinstalldirs) $(DESTDIR)$(hi_dir)
+- if ! test -f $(DESTDIR)$(hi_dir)/lbreakout2.hscr; then \
+- $(INSTALL_DATA) -m 666 empty.hscr $(DESTDIR)$(hi_dir)/lbreakout2.hscr; \
+- fi;
+
+ uninstall-local:
+ rm -rf $(DESTDIR)$(inst_dir)
Home |
Main Index |
Thread Index |
Old Index