diff options
author | joerg <joerg@pkgsrc.org> | 2006-06-21 16:00:57 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-06-21 16:00:57 +0000 |
commit | ce2670dcfb9106e732b56199e950872e5493fc6e (patch) | |
tree | 3b46e12f0e1318180a248fbf1d7d9e49f0a0a6cc /games | |
parent | c42218fd2b6044276726baadd9fc5ede13a8d240 (diff) | |
download | pkgsrc-ce2670dcfb9106e732b56199e950872e5493fc6e.tar.gz |
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 (limited to 'games')
-rw-r--r-- | games/lbreakout2/INSTALL | 18 | ||||
-rw-r--r-- | games/lbreakout2/Makefile | 12 | ||||
-rw-r--r-- | games/lbreakout2/distinfo | 3 | ||||
-rw-r--r-- | games/lbreakout2/patches/patch-aa | 15 |
4 files changed, 43 insertions, 5 deletions
diff --git a/games/lbreakout2/INSTALL b/games/lbreakout2/INSTALL new file mode 100644 index 00000000000..ae680190c15 --- /dev/null +++ b/games/lbreakout2/INSTALL @@ -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 --git a/games/lbreakout2/Makefile b/games/lbreakout2/Makefile index 0cf25e679a4..4758b323e21 100644 --- a/games/lbreakout2/Makefile +++ b/games/lbreakout2/Makefile @@ -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 @@ HOMEPAGE= http://lgames.sourceforge.net/ 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_FILES.sunpro= common/tools.h common/tools.c 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 --git a/games/lbreakout2/distinfo b/games/lbreakout2/distinfo index 385fece85db..7de27ad04d4 100644 --- a/games/lbreakout2/distinfo +++ b/games/lbreakout2/distinfo @@ -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 --git a/games/lbreakout2/patches/patch-aa b/games/lbreakout2/patches/patch-aa new file mode 100644 index 00000000000..225fef8e692 --- /dev/null +++ b/games/lbreakout2/patches/patch-aa @@ -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) |