pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/42e4aa087dae
branches:  trunk
changeset: 570452:42e4aa087dae
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 29 20:15:46 2010 +0000

description:
DESTDIR support

diffstat:

 emulators/aranym/Makefile     |  26 ++++++++++++++------------
 games/LostPixels/Makefile     |   4 +++-
 games/angband-x11/Makefile    |  13 ++++++++-----
 games/atomix/Makefile         |   4 +++-
 games/cgoban/Makefile         |   4 +++-
 games/cgoban/distinfo         |   4 ++--
 games/cgoban/patches/patch-aa |   4 ++--
 games/chest/Makefile          |   4 +++-
 games/defendguin/Makefile     |   7 +++++--
 9 files changed, 43 insertions(+), 27 deletions(-)

diffs (218 lines):

diff -r 2eefadf8334e -r 42e4aa087dae emulators/aranym/Makefile
--- a/emulators/aranym/Makefile Fri Jan 29 20:02:25 2010 +0000
+++ b/emulators/aranym/Makefile Fri Jan 29 20:15:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2008/08/07 16:19:34 hauke Exp $
+# $NetBSD: Makefile,v 1.21 2010/01/29 20:20:53 joerg Exp $
 #
 
 DISTNAME=                      aranym-0.9.6beta2
@@ -12,6 +12,8 @@
 HOMEPAGE=              http://aranym.sourceforge.net/
 COMMENT=               Atari Running on Any Machine
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=            gmake gzip
 USE_LANGUAGES=         c c++
 GNU_CONFIGURE=         yes
@@ -20,8 +22,8 @@
 CONFIGURE_ARGS+=       --enable-fullmmu
 
 EMUTOS_WRKSRC=         ${WRKDIR}/emutos-512k-0.8.3
-EMUTOS_DOC_DIR=                ${DESTDIR}${PREFIX}/share/doc/aranym/emutos
-EMUTOS_ROM_DIR=                ${DESTDIR}${PREFIX}/share/aranym
+EMUTOS_DOC_DIR=                ${PREFIX}/share/doc/aranym/emutos
+EMUTOS_ROM_DIR=                ${PREFIX}/share/aranym
 
 REQD_DIRS+=            ${EMUTOS_ROM_DIR} ${EMUTOS_DOC_DIR}
 
@@ -40,16 +42,16 @@
 CONFIGURE_ARGS+=       --enable-nfpci
 .endif
 
+INSTALLATION_DIRS+=    ${EMUTOS_DOC_DIR} ${EMUTOS_ROM_DIR}
+
 post-install:
-       #${INSTALL_DATA_DIR} ${EMUTOS_ROM_DIR}
-       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/etos512k.img ${EMUTOS_ROM_DIR}
-       ${INSTALL_DATA_DIR} ${EMUTOS_DOC_DIR}
-       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/readme.txt ${EMUTOS_DOC_DIR}
-       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/announce.txt ${EMUTOS_DOC_DIR}
-       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/authors.txt ${EMUTOS_DOC_DIR}
-       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/changelog.txt ${EMUTOS_DOC_DIR}
-       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/license.txt ${EMUTOS_DOC_DIR}
-       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/status.txt ${EMUTOS_DOC_DIR}
+       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/etos512k.img ${DESTDIR}${EMUTOS_ROM_DIR}
+       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/readme.txt ${DESTDIR}${EMUTOS_DOC_DIR}
+       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/announce.txt ${DESTDIR}${EMUTOS_DOC_DIR}
+       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/authors.txt ${DESTDIR}${EMUTOS_DOC_DIR}
+       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/changelog.txt ${DESTDIR}${EMUTOS_DOC_DIR}
+       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/license.txt ${DESTDIR}${EMUTOS_DOC_DIR}
+       ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/status.txt ${DESTDIR}${EMUTOS_DOC_DIR}
 
 .include "../../devel/SDL/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2eefadf8334e -r 42e4aa087dae games/LostPixels/Makefile
--- a/games/LostPixels/Makefile Fri Jan 29 20:02:25 2010 +0000
+++ b/games/LostPixels/Makefile Fri Jan 29 20:15:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2010/01/18 09:58:50 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2010/01/29 20:15:46 joerg Exp $
 #
 
 DISTNAME=      LostPixels-0.5.3-source
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.blinkensisters.org/wiki/index.php/Main_Page
 COMMENT=       Blinken Sisters - Hunt for the Lost Pixels (80s-style Jump'n'Run)
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/blinkensisters/lostpixels/game/software
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
diff -r 2eefadf8334e -r 42e4aa087dae games/angband-x11/Makefile
--- a/games/angband-x11/Makefile        Fri Jan 29 20:02:25 2010 +0000
+++ b/games/angband-x11/Makefile        Fri Jan 29 20:15:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2008/05/26 02:13:19 joerg Exp $
+# $NetBSD: Makefile,v 1.44 2010/01/29 20:20:00 joerg Exp $
 #
 
 DISTNAME=      angband-3.0.3
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://www.thangorodrim.net/
 COMMENT=       Tolkien based variant of Moria for X11 displays
 
+PKG_DESTDIR_SUPPORT=   destdir
+
 CONFLICTS=     angband-tty-[0-9]*
 
 EXTRACT_ONLY=  ${DISTNAME}${EXTRACT_SUFX}
@@ -36,13 +38,14 @@
 SUBST_FILES.070=       lib/save/Makefile.in lib/bone/Makefile.in
 SUBST_SED.070=         -e 's,070,770,g'
 
+INSTALLATION_DIRS+=    share/games/angband/lib/info
+
 # add spoiler files and clean up a bit
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/games/angband/lib/info
-       cd ${PREFIX}/share/games/angband/lib/info/ && \
+       cd ${DESTDIR}${PREFIX}/share/games/angband/lib/info/ && \
                 pax -O -zrf ${DISTDIR}/${SPOILERFILE}
-       ${CHOWN} -R bin:games ${PREFIX}/share/games/angband
-       ${FIND} ${PREFIX}/share/games/angband -name delete.me -exec ${RM} {} \;
+       ${CHOWN} -R bin:games ${DESTDIR}${PREFIX}/share/games/angband
+       ${FIND} ${DESTDIR}${PREFIX}/share/games/angband -name delete.me -exec ${RM} {} \;
 
 BUILDLINK_DEPMETHOD.libXt?=    build
 
diff -r 2eefadf8334e -r 42e4aa087dae games/atomix/Makefile
--- a/games/atomix/Makefile     Fri Jan 29 20:02:25 2010 +0000
+++ b/games/atomix/Makefile     Fri Jan 29 20:15:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2010/01/18 09:58:50 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2010/01/29 20:21:21 joerg Exp $
 #
 
 DISTNAME=              atomix-2.14.0
@@ -10,6 +10,8 @@
 HOMEPAGE=              http://jens.triq.net/atomix.php
 COMMENT=               Puzzle game
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_PKGLOCALEDIR=      yes
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
diff -r 2eefadf8334e -r 42e4aa087dae games/cgoban/Makefile
--- a/games/cgoban/Makefile     Fri Jan 29 20:02:25 2010 +0000
+++ b/games/cgoban/Makefile     Fri Jan 29 20:15:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2009/12/05 14:56:38 bad Exp $
+# $NetBSD: Makefile,v 1.16 2010/01/29 20:22:11 joerg Exp $
 
 DISTNAME=      cgoban-1.9.14
 CATEGORIES=    games x11
@@ -8,6 +8,8 @@
 HOMEPAGE=      http://cgoban1.sourceforge.net/
 COMMENT=       The complete goban.  A Go server client and sgf viewer/editor
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 MAKE_JOBS_SAFE=                no
 
 GNU_CONFIGURE= yes
diff -r 2eefadf8334e -r 42e4aa087dae games/cgoban/distinfo
--- a/games/cgoban/distinfo     Fri Jan 29 20:02:25 2010 +0000
+++ b/games/cgoban/distinfo     Fri Jan 29 20:15:46 2010 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2009/12/05 14:56:39 bad Exp $
+$NetBSD: distinfo,v 1.6 2010/01/29 20:22:11 joerg Exp $
 
 SHA1 (cgoban-1.9.14.tar.gz) = 90bd53499c9f410caddaae601e7f00350d520a32
 RMD160 (cgoban-1.9.14.tar.gz) = c5c3abd6ea422cc9192db48972d584fbfd2fca06
 Size (cgoban-1.9.14.tar.gz) = 417691 bytes
-SHA1 (patch-aa) = d3d421f12dce42542da0cf06636c7a7adfce46fb
+SHA1 (patch-aa) = b71b7be5b325e3806a3f42c2ac69545f81b75cc0
diff -r 2eefadf8334e -r 42e4aa087dae games/cgoban/patches/patch-aa
--- a/games/cgoban/patches/patch-aa     Fri Jan 29 20:02:25 2010 +0000
+++ b/games/cgoban/patches/patch-aa     Fri Jan 29 20:15:46 2010 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.6 2009/12/05 14:56:39 bad Exp $
+$NetBSD: patch-aa,v 1.7 2010/01/29 20:22:11 joerg Exp $
 
 --- Makefile.in.orig   2003-01-06 19:33:40.000000000 +0000
 +++ Makefile.in        2009-12-05 13:46:39.000000000 +0000
@@ -6,7 +6,7 @@
  info-am:
  
  install-data-am:
-+      $(INSTALL_DATA) seigen-minoru.sgf $(PREFIX)/share/misc/seigen-minoru.sgf
++      $(INSTALL_DATA) seigen-minoru.sgf ${DESTDIR}$(PREFIX)/share/misc/seigen-minoru.sgf
  
  install-exec-am: install-binSCRIPTS
  
diff -r 2eefadf8334e -r 42e4aa087dae games/chest/Makefile
--- a/games/chest/Makefile      Fri Jan 29 20:02:25 2010 +0000
+++ b/games/chest/Makefile      Fri Jan 29 20:15:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/11/14 17:36:57 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2010/01/29 20:22:27 joerg Exp $
 #
 
 DISTNAME=      chest-3.19
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://www.drb.insel.de/~heiner/Chess/chest.html
 COMMENT=       Chess problem solver
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 MAKE_FILE=     Templates/Makefile.simple
 
 DIST_SUBDIR=   ${PKGNAME_NOREV}
diff -r 2eefadf8334e -r 42e4aa087dae games/defendguin/Makefile
--- a/games/defendguin/Makefile Fri Jan 29 20:02:25 2010 +0000
+++ b/games/defendguin/Makefile Fri Jan 29 20:15:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2007/12/29 09:52:10 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2010/01/29 20:24:16 joerg Exp $
 
 DISTNAME=      defendguin-0.0.10
 PKGREVISION=   7
@@ -9,10 +9,13 @@
 HOMEPAGE=      http://www.newbreedsoftware.com/defendguin/
 COMMENT=       Clone of the arcade game Defender
 
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 USE_TOOLS+=    gmake
 
-INSTALLATION_DIRS=     ${PKGMANDIR}/man6
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man6
+
+INSTALL_MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX}
 
 .include "../../audio/SDL_mixer/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index