pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c7098cfba86b
branches:  trunk
changeset: 570468:c7098cfba86b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 29 23:35:57 2010 +0000

description:
DESTDIR support

diffstat:

 games/lbreakout/Makefile         |   4 +++-
 games/lbreakout/distinfo         |   4 ++--
 games/lbreakout/patches/patch-ab |   5 ++---
 games/lgeneral-data/Makefile     |   9 ++++++++-
 games/lincity/Makefile           |  13 ++++++-------
 games/moon-buggy/Makefile        |   4 +++-
 6 files changed, 24 insertions(+), 15 deletions(-)

diffs (134 lines):

diff -r 819ad58cc8db -r c7098cfba86b games/lbreakout/Makefile
--- a/games/lbreakout/Makefile  Fri Jan 29 23:33:15 2010 +0000
+++ b/games/lbreakout/Makefile  Fri Jan 29 23:35:57 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2007/12/13 11:17:19 rillig Exp $
+# $NetBSD: Makefile,v 1.31 2010/01/29 23:35:57 joerg Exp $
 
 DISTNAME=      lbreakout-010315
 PKGREVISION=   10
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://lgames.sourceforge.net/
 COMMENT=       Breakout-style arcade game
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         YES
 CONFIGURE_ENV+=                VARBASE=${VARBASE:Q}
 CONFIGURE_ARGS+=       --disable-sound
diff -r 819ad58cc8db -r c7098cfba86b games/lbreakout/distinfo
--- a/games/lbreakout/distinfo  Fri Jan 29 23:33:15 2010 +0000
+++ b/games/lbreakout/distinfo  Fri Jan 29 23:35:57 2010 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.9 2007/12/13 11:17:19 rillig Exp $
+$NetBSD: distinfo,v 1.10 2010/01/29 23:35:57 joerg Exp $
 
 SHA1 (lbreakout-010315.tar.gz) = 9385f4690aee645955acb23d8481957aaaf0e2fb
 RMD160 (lbreakout-010315.tar.gz) = ecb5784ec9475766035fabd84609c8a71581219d
 Size (lbreakout-010315.tar.gz) = 655418 bytes
 SHA1 (patch-aa) = 42dbfbf5cdbbe72b652319dc7e43867fa1907c76
-SHA1 (patch-ab) = 7440e75129b56c9d0f340d8695771375e22da794
+SHA1 (patch-ab) = 5eb50dd1e4925ac9ad9469b03b92ca351baad305
 SHA1 (patch-ac) = 0dd6692789e41eb0f32d34dc2f4efd9efc1fec8a
diff -r 819ad58cc8db -r c7098cfba86b games/lbreakout/patches/patch-ab
--- a/games/lbreakout/patches/patch-ab  Fri Jan 29 23:33:15 2010 +0000
+++ b/games/lbreakout/patches/patch-ab  Fri Jan 29 23:35:57 2010 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.4 2007/12/13 11:17:19 rillig Exp $
+$NetBSD: patch-ab,v 1.5 2010/01/29 23:35:58 joerg Exp $
 
 --- lbreakout/Makefile.in.orig 2001-03-15 15:28:10.000000000 +0000
 +++ lbreakout/Makefile.in
@@ -11,13 +11,12 @@
  
  EXTRA_SUBDIRS = manual
  
-@@ -353,7 +353,8 @@ install-data-local:
+@@ -353,7 +353,7 @@ install-data-local:
        $(INSTALL_DATA) wontgiveup.wav $(DESTDIR)$(sdir)/wontgiveup.wav 
        $(INSTALL_DATA) speedup.wav $(DESTDIR)$(sdir)/speedup.wav 
        $(INSTALL_DATA) speeddown.wav $(DESTDIR)$(sdir)/speeddown.wav
 -      $(INSTALL_DATA) -m 666 lbreakout.hscr $(DESTDIR)$(hdir)/lbreakout.hscr
 +      $(INSTALL_DATA) -m 444 lbreakout.hscr $(DESTDIR)$(sdir)/lbreakout.hscr
-+      [ -f $(DESTDIR)$(hdir)/lbreakout.hscr ] || $(INSTALL_DATA) -m 666 lbreakout.hscr $(DESTDIR)$(hdir)/lbreakout.hscr
  
  uninstall-local:
        rm -fr $(DESTDIR)$(sdir)
diff -r 819ad58cc8db -r c7098cfba86b games/lgeneral-data/Makefile
--- a/games/lgeneral-data/Makefile      Fri Jan 29 23:33:15 2010 +0000
+++ b/games/lgeneral-data/Makefile      Fri Jan 29 23:35:57 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/03/04 21:29:42 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2010/01/29 23:38:18 joerg Exp $
 #
 
 DISTNAME=      lgeneral-data-1.1.3
@@ -10,8 +10,15 @@
 HOMEPAGE=      http://lgames.sourceforge.net/index.php?project=LGeneral
 COMMENT=       Panzer General data files for lgeneral
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      lgeneral>=1.1.1:../../games/lgeneral
 
 GNU_CONFIGURE= YES
 
+INSTALLATION_DIRS+=    share/games/lgeneral/nations \
+                       share/games/lgeneral/gfx/flags \
+                       share/games/lgeneral/gfx/units \
+                       share/games/lgeneral/units
+
 .include "../../mk/bsd.pkg.mk"
diff -r 819ad58cc8db -r c7098cfba86b games/lincity/Makefile
--- a/games/lincity/Makefile    Fri Jan 29 23:33:15 2010 +0000
+++ b/games/lincity/Makefile    Fri Jan 29 23:35:57 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2008/01/19 09:16:21 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2010/01/29 23:39:30 joerg Exp $
 
 DISTNAME=      lincity-1.12.1
 PKGREVISION=   1
@@ -9,20 +9,19 @@
 HOMEPAGE=      http://lincity.sourceforge.net/
 COMMENT=       Free clone of SimCity for X11
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=            gmake msgfmt
 USE_PKGLOCALEDIR=      yes
 GNU_CONFIGURE=         yes
 
 CHECK_INTERPRETER_SKIP+=       share/lincity/icons/*
 
-pre-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/lincity/help
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/lincity/icons
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/lincity/messages
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/lincity/opening
+INSTALLATION_DIRS+=    share/lincity/help share/lincity/icons \
+                       share/lincity/messages share/lincity/opening
 
 post-install:
-       ${LN} -sf lincity.6 ${PREFIX}/${PKGMANDIR}/man6/xlincity.6
+       ${LN} -sf lincity.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xlincity.6
 
 BUILDLINK_DEPMETHOD.libXt?=    build
 
diff -r 819ad58cc8db -r c7098cfba86b games/moon-buggy/Makefile
--- a/games/moon-buggy/Makefile Fri Jan 29 23:33:15 2010 +0000
+++ b/games/moon-buggy/Makefile Fri Jan 29 23:35:57 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2008/03/04 11:02:24 rillig Exp $
+# $NetBSD: Makefile,v 1.6 2010/01/29 23:39:48 joerg Exp $
 #
 
 DISTNAME=              moon-buggy-1.0
@@ -10,6 +10,8 @@
 HOMEPAGE=              http://seehuhn.de/media/programs/
 COMMENT=               Game on the Moon
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_PKGLOCALEDIR=      yes
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --sharedstatedir=${VARBASE}/games



Home | Main Index | Thread Index | Old Index