pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/crack-attack Supports DESTDIR installation.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/41b1922533ef
branches:  trunk
changeset: 394512:41b1922533ef
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Jun 11 10:07:21 2009 +0000

description:
Supports DESTDIR installation.

diffstat:

 games/crack-attack/Makefile |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r a0f6cb7ab572 -r 41b1922533ef games/crack-attack/Makefile
--- a/games/crack-attack/Makefile       Thu Jun 11 10:04:27 2009 +0000
+++ b/games/crack-attack/Makefile       Thu Jun 11 10:07:21 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/04/04 18:22:40 dsainty Exp $
+# $NetBSD: Makefile,v 1.17 2009/06/11 10:07:21 tnn Exp $
 
 DISTNAME=      crack-attack-1.1.14
 PKGREVISION=   5
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://savannah.nongnu.org/projects/crack-attack
 COMMENT=       Tetris Attack inspired game
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         YES
 CONFIGURE_ARGS+=       --enable-sound=yes
 CONFIGURE_ARGS+=       --disable-binreloc
@@ -16,9 +18,9 @@
 USE_TOOLS+=            pkg-config
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/${PKGBASE}
-       ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/html/${PKGBASE}
-       ${INSTALL_DATA} ${WRKSRC}/doc/*.jpg ${PREFIX}/share/doc/html/${PKGBASE}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/html/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.jpg        \
+           ${DESTDIR}${PREFIX}/share/doc/html/${PKGBASE}
 
 .include "../../audio/SDL_mixer/buildlink3.mk"
 .include "../../devel/SDL/buildlink3.mk"



Home | Main Index | Thread Index | Old Index