pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3e6a56125add
branches:  trunk
changeset: 570268:3e6a56125add
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jan 27 18:25:46 2010 +0000

description:
DESTDIR support

diffstat:

 sysutils/afbinit/Makefile   |   6 ++++--
 sysutils/atitvout/Makefile  |  13 +++++++------
 sysutils/cvsreport/Makefile |  10 +++++++---
 sysutils/dmassage/Makefile  |   7 ++++---
 4 files changed, 22 insertions(+), 14 deletions(-)

diffs (116 lines):

diff -r c3b1a7bbfc0b -r 3e6a56125add sysutils/afbinit/Makefile
--- a/sysutils/afbinit/Makefile Wed Jan 27 18:21:56 2010 +0000
+++ b/sysutils/afbinit/Makefile Wed Jan 27 18:25:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2005/06/17 03:50:33 jlam Exp $
+# $NetBSD: Makefile,v 1.3 2010/01/27 18:27:24 joerg Exp $
 
 DISTNAME=              afbinit_1.0.orig
 PKGNAME=               afbinit-1.0
@@ -8,6 +8,8 @@
 MAINTAINER=            macallan%NetBSD.org@localhost
 COMMENT=               Firmware download tool for Sun AFB graphic cards
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                        ${WRKDIR}/${DISTNAME:S/_/-/}
 BUILD_TARGET=          afbinit
 ONLY_FOR_PLATFORM=     *-*-sparc64 *-*-sparc
@@ -15,6 +17,6 @@
 INSTALLATION_DIRS=     bin
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/afbinit ${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/afbinit ${DESTDIR}${PREFIX}/bin
 
 .include "../../mk/bsd.pkg.mk"
diff -r c3b1a7bbfc0b -r 3e6a56125add sysutils/atitvout/Makefile
--- a/sysutils/atitvout/Makefile        Wed Jan 27 18:21:56 2010 +0000
+++ b/sysutils/atitvout/Makefile        Wed Jan 27 18:25:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/01/05 04:56:27 obache Exp $
+# $NetBSD: Makefile,v 1.13 2010/01/27 18:29:02 joerg Exp $
 
 DISTNAME=      atitvout-0.4
 PKGREVISION=   1
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://0pointer.de/lennart/projects/atitvout/
 COMMENT=       Allows TV-Out connector support under Linux/NetBSD
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 ONLY_FOR_PLATFORM=     NetBSD-*-i386 # Linux-*-i386 [gnumakefile needs work]
 
 WRKSRC=                        ${WRKDIR}/atitvout
@@ -35,12 +37,11 @@
 SUBST_FILES.sh=        test.sh
 SUBST_SED.sh=  -e "s,@PREFIX@,${PREFIX},"
 
-INSTALLATION_DIRS=     sbin
+INSTALLATION_DIRS=     sbin share/doc/atitvout
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/atitvout ${PREFIX}/sbin
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/atitvout
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/atitvout
-       ${INSTALL_DATA} ${WRKSRC}/test.sh ${PREFIX}/share/doc/atitvout
+       ${INSTALL_PROGRAM} ${WRKSRC}/atitvout ${DESTDIR}${PREFIX}/sbin
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/atitvout
+       ${INSTALL_DATA} ${WRKSRC}/test.sh ${DESTDIR}${PREFIX}/share/doc/atitvout
 
 .include "../../mk/bsd.pkg.mk"
diff -r c3b1a7bbfc0b -r 3e6a56125add sysutils/cvsreport/Makefile
--- a/sysutils/cvsreport/Makefile       Wed Jan 27 18:21:56 2010 +0000
+++ b/sysutils/cvsreport/Makefile       Wed Jan 27 18:25:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/01/07 09:14:11 rillig Exp $
+# $NetBSD: Makefile,v 1.4 2010/01/27 18:25:46 joerg Exp $
 #
 
 DISTNAME=              cvsreport-0.3.5
@@ -9,12 +9,16 @@
 HOMEPAGE=              http://home.gna.org/cvsreport/
 COMMENT=               Message reports from CVS activity
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 REPLACE_PERL+=         cvsreport
 USE_TOOLS+=            perl:run
 NO_BUILD=              yes
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/cvsreport ${PREFIX}/bin/
-       ${INSTALL_MAN} ${WRKSRC}/cvsreport.1 ${PREFIX}/${PKGMANDIR}/man1/
+       ${INSTALL_SCRIPT} ${WRKSRC}/cvsreport ${DESTDIR}${PREFIX}/bin/
+       ${INSTALL_MAN} ${WRKSRC}/cvsreport.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
 
 .include "../../mk/bsd.pkg.mk"
diff -r c3b1a7bbfc0b -r 3e6a56125add sysutils/dmassage/Makefile
--- a/sysutils/dmassage/Makefile        Wed Jan 27 18:21:56 2010 +0000
+++ b/sysutils/dmassage/Makefile        Wed Jan 27 18:25:46 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2006/03/04 21:30:40 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2010/01/27 18:26:51 joerg Exp $
 #
 
 DISTNAME=      dmassage-0.6
@@ -10,6 +10,7 @@
 COMMENT=       dmesg(8) parser
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 ONLY_FOR_PLATFORM=     NetBSD-*-* OpenBSD-*-*
 
@@ -20,7 +21,7 @@
 INSTALLATION_DIRS=     bin share/doc/${PKGBASE}
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/dmassage ${PREFIX}/bin
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_SCRIPT} ${WRKSRC}/dmassage ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index