pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/craft user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bc868f201eb3
branches:  trunk
changeset: 395555:bc868f201eb3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jul 08 17:20:52 2009 +0000

description:
user-destdir support

diffstat:

 games/craft/Makefile       |   6 +++++-
 games/craft/files/Makefile |  16 ++++++++--------
 2 files changed, 13 insertions(+), 9 deletions(-)

diffs (54 lines):

diff -r bc0d20143c41 -r bc868f201eb3 games/craft/Makefile
--- a/games/craft/Makefile      Wed Jul 08 17:20:50 2009 +0000
+++ b/games/craft/Makefile      Wed Jul 08 17:20:52 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2008/01/19 09:16:20 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2009/07/08 17:20:52 joerg Exp $
 
 DISTNAME=      craftcc35
 PKGNAME=       craft-3.5
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://set.gmd.de/~hua/
 COMMENT=       Warcraft-like game for X11
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}
 USE_LANGUAGES= c c++
 USE_TOOLS+=    gmake
@@ -26,6 +28,8 @@
 SUBST_FILES.buttons=   .windefaults.params
 SUBST_SED.buttons=     -e 's+buttons+${PREFIX}/share/craft/buttons+'
 
+INSTALLATION_DIRS=     bin
+
 post-extract:
        find ${WRKSRC} -type f -name '*~' -print | xargs rm -f
        ln -fs ${FILESDIR}/Makefile ${WRKSRC}
diff -r bc0d20143c41 -r bc868f201eb3 games/craft/files/Makefile
--- a/games/craft/files/Makefile        Wed Jul 08 17:20:50 2009 +0000
+++ b/games/craft/files/Makefile        Wed Jul 08 17:20:52 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2001/12/19 10:51:19 tron Exp $
+# $NetBSD: Makefile,v 1.3 2009/07/08 17:20:52 joerg Exp $
 #
 #---------------------------------------------------------------------
 #
@@ -43,10 +43,10 @@
        ${GPP} ${CFLAGS} $< -o hcc/hcc
 
 install: craft
-       ${BSD_INSTALL_PROGRAM} craft ${PREFIX}/bin
-       ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/craft
-       ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/doc/craft
-       cp -R hcraft ${PREFIX}/share/craft
-       cp -R buttons ${PREFIX}/share/craft
-       cp -R html/* ${PREFIX}/share/doc/craft
-       ${BSD_INSTALL_DATA} .windefaults.params ${PREFIX}/share/craft
+       ${BSD_INSTALL_PROGRAM} craft ${DESTDIR}${PREFIX}/bin
+       ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/craft
+       ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/craft
+       cp -R hcraft ${DESTDIR}${PREFIX}/share/craft
+       cp -R buttons ${DESTDIR}${PREFIX}/share/craft
+       cp -R html/* ${DESTDIR}${PREFIX}/share/doc/craft
+       ${BSD_INSTALL_DATA} .windefaults.params ${DESTDIR}${PREFIX}/share/craft



Home | Main Index | Thread Index | Old Index