pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/maelstrom-sdl DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/127fa3ed72dd
branches:  trunk
changeset: 573697:127fa3ed72dd
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 23 16:02:39 2010 +0000

description:
DESTDIR support.
XXX still doesn't pass the world-writeable file check

diffstat:

 games/maelstrom-sdl/Makefile         |  12 +++++++-----
 games/maelstrom-sdl/distinfo         |   6 +++---
 games/maelstrom-sdl/patches/patch-aa |  14 ++++++++------
 games/maelstrom-sdl/patches/patch-ab |  14 ++++++++------
 4 files changed, 26 insertions(+), 20 deletions(-)

diffs (98 lines):

diff -r 1b3685b509c6 -r 127fa3ed72dd games/maelstrom-sdl/Makefile
--- a/games/maelstrom-sdl/Makefile      Tue Mar 23 15:37:56 2010 +0000
+++ b/games/maelstrom-sdl/Makefile      Tue Mar 23 16:02:39 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/06/12 16:28:09 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2010/03/23 16:02:39 joerg Exp $
 #
 
 DISTNAME=      Maelstrom-3.0.5
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.devolution.com/~slouken/Maelstrom/
 COMMENT=       High resolution version of Asteroids (SDL version)
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 CONFLICTS=             maelstrom-x11-[0-9]* maelstrom-[0-9]*
 
 GNU_CONFIGURE=         YES
@@ -19,10 +21,10 @@
 MAKE_ENV+=             CP=${CP:Q}
 
 post-install:
-       ${RM} ${PREFIX}/share/doc/Maelstrom/Docs/Makefile \
-               ${PREFIX}/share/doc/Maelstrom/Docs/Makefile.in \
-               ${PREFIX}/share/Maelstrom/Images/Makefile \
-               ${PREFIX}/share/Maelstrom/Images/Makefile.in
+       ${RM} ${DESTDIR}${PREFIX}/share/doc/Maelstrom/Docs/Makefile \
+               ${DESTDIR}${PREFIX}/share/doc/Maelstrom/Docs/Makefile.in \
+               ${DESTDIR}${PREFIX}/share/Maelstrom/Images/Makefile \
+               ${DESTDIR}${PREFIX}/share/Maelstrom/Images/Makefile.in
 
 .include "../../devel/SDL/buildlink3.mk"
 .include "../../net/SDL_net/buildlink3.mk"
diff -r 1b3685b509c6 -r 127fa3ed72dd games/maelstrom-sdl/distinfo
--- a/games/maelstrom-sdl/distinfo      Tue Mar 23 15:37:56 2010 +0000
+++ b/games/maelstrom-sdl/distinfo      Tue Mar 23 16:02:39 2010 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.6 2008/07/27 22:47:43 dholland Exp $
+$NetBSD: distinfo,v 1.7 2010/03/23 16:02:39 joerg Exp $
 
 SHA1 (Maelstrom-3.0.5.tar.gz) = 3731cc0ea73138539c7b12bf0b297d68be96cbab
 RMD160 (Maelstrom-3.0.5.tar.gz) = 1c0dbf3d588025ce18fced4733e638670e0c5de0
 Size (Maelstrom-3.0.5.tar.gz) = 977191 bytes
-SHA1 (patch-aa) = ecc8933ab457e84fd8ab5710014d9c2934e61fa3
-SHA1 (patch-ab) = 0cddfbde7c1420c77dc2f96a543215e9a314cfee
+SHA1 (patch-aa) = d886cc680968b6ee22abbbf78775928d7318862c
+SHA1 (patch-ab) = 54abac77b1d6afe82bf8bfb3a4288d32091039dc
 SHA1 (patch-ac) = 3c2b09dab9a40b2499fd8d1ddb744084b049c4a8
 SHA1 (patch-ad) = 2d72ac28eb44cd00f8007be305bedb9f5d41e448
 SHA1 (patch-ae) = a256a45e5ac3c4d82cb3333a49e31ecf0ed318b2
diff -r 1b3685b509c6 -r 127fa3ed72dd games/maelstrom-sdl/patches/patch-aa
--- a/games/maelstrom-sdl/patches/patch-aa      Tue Mar 23 15:37:56 2010 +0000
+++ b/games/maelstrom-sdl/patches/patch-aa      Tue Mar 23 16:02:39 2010 +0000
@@ -1,12 +1,14 @@
-$NetBSD: patch-aa,v 1.2 2004/03/07 05:59:17 snj Exp $
+$NetBSD: patch-aa,v 1.3 2010/03/23 16:02:39 joerg Exp $
 
---- Makefile.am.orig   2001-07-22 20:45:05.000000000 -0700
-+++ Makefile.am        2004-03-06 21:54:35.000000000 -0800
-@@ -66,10 +66,11 @@ DIST_SUBDIRS = $(SUBDIRS) Images Docs
+--- Makefile.am.orig   2001-07-23 03:45:05.000000000 +0000
++++ Makefile.am
+@@ -65,11 +65,12 @@ DIST_SUBDIRS = $(SUBDIRS) Images Docs
+ 
  # Special install rule for the game
  install:
-       make install_gamedata target=@GAME_INSTALLDIR@
-+      make install_gamedocs target=$(prefix)/share/doc/Maelstrom
+-      make install_gamedata target=@GAME_INSTALLDIR@
++      make install_gamedata target=${DESTDIR}@GAME_INSTALLDIR@
++      make install_gamedocs target=${DESTDIR}$(prefix)/share/doc/Maelstrom
  
  install_gamedata:
        sh mkinstalldirs $(target)/
diff -r 1b3685b509c6 -r 127fa3ed72dd games/maelstrom-sdl/patches/patch-ab
--- a/games/maelstrom-sdl/patches/patch-ab      Tue Mar 23 15:37:56 2010 +0000
+++ b/games/maelstrom-sdl/patches/patch-ab      Tue Mar 23 16:02:39 2010 +0000
@@ -1,12 +1,14 @@
-$NetBSD: patch-ab,v 1.2 2004/03/07 05:59:17 snj Exp $
+$NetBSD: patch-ab,v 1.3 2010/03/23 16:02:39 joerg Exp $
 
---- Makefile.in.orig   2001-07-22 20:56:05.000000000 -0700
-+++ Makefile.in        2004-03-06 21:54:49.000000000 -0800
-@@ -433,10 +433,11 @@ maintainer-clean-generic clean mostlycle
+--- Makefile.in.orig   2001-07-23 03:56:05.000000000 +0000
++++ Makefile.in
+@@ -432,11 +432,12 @@ maintainer-clean-generic clean mostlycle
+ 
  # Special install rule for the game
  install:
-       make install_gamedata target=@GAME_INSTALLDIR@
-+      make install_gamedocs target=$(prefix)/share/doc/Maelstrom
+-      make install_gamedata target=@GAME_INSTALLDIR@
++      make install_gamedata target=${DESTDIR}@GAME_INSTALLDIR@
++      make install_gamedocs target=${DESTDIR}$(prefix)/share/doc/Maelstrom
  
  install_gamedata:
        sh mkinstalldirs $(target)/



Home | Main Index | Thread Index | Old Index