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/bc901b0a71c0
branches:  trunk
changeset: 520878:bc901b0a71c0
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Nov 01 09:01:56 2006 +0000

description:
DESTDIR support.

diffstat:

 devel/libtool-base/Makefile   |  4 ++--
 devel/libtool/Makefile.common |  3 ++-
 sysutils/mc/Makefile          |  6 ++++--
 3 files changed, 8 insertions(+), 5 deletions(-)

diffs (62 lines):

diff -r 58bc6ef95be6 -r bc901b0a71c0 devel/libtool-base/Makefile
--- a/devel/libtool-base/Makefile       Wed Nov 01 08:59:03 2006 +0000
+++ b/devel/libtool-base/Makefile       Wed Nov 01 09:01:56 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.78 2006/04/01 11:21:42 grant Exp $
+# $NetBSD: Makefile,v 1.79 2006/11/01 09:01:56 joerg Exp $
 
 ###########################################################################
 ###########################################################################
@@ -94,7 +94,7 @@
                ${FILESDIR}/shlibtool.in > ${WRKSRC}/shlibtool
 
 post-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${PREFIX}/bin/shlibtool
+       ${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${DESTDIR}${PREFIX}/bin/shlibtool
 .endif
 
 BUILDLINK_DEPMETHOD.dlcompat=  build
diff -r 58bc6ef95be6 -r bc901b0a71c0 devel/libtool/Makefile.common
--- a/devel/libtool/Makefile.common     Wed Nov 01 08:59:03 2006 +0000
+++ b/devel/libtool/Makefile.common     Wed Nov 01 09:01:56 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.66 2006/03/22 22:50:32 tv Exp $
+# $NetBSD: Makefile.common,v 1.67 2006/11/01 09:01:56 joerg Exp $
 
 ###########################################################################
 ###########################################################################
@@ -33,6 +33,7 @@
 CONFLICTS=     glibtool-[0-9]*
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 GNU_CONFIGURE= yes
 
diff -r 58bc6ef95be6 -r bc901b0a71c0 sysutils/mc/Makefile
--- a/sysutils/mc/Makefile      Wed Nov 01 08:59:03 2006 +0000
+++ b/sysutils/mc/Makefile      Wed Nov 01 09:01:56 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.66 2006/09/14 15:23:28 joerg Exp $
+# $NetBSD: Makefile,v 1.67 2006/11/01 09:04:56 joerg Exp $
 
 DISTNAME=      mc-4.6.1
 PKGREVISION=   2
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://www.ibiblio.org/mc/
 COMMENT=       User-friendly file manager and visual shell
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=            pkg-config
 GNU_CONFIGURE=         YES
 USE_PKGLOCALEDIR=      YES
@@ -28,7 +30,7 @@
 
 # remove dir if no extensions were installed there
 post-install:
-       @${RMDIR} ${PREFIX:Q}/lib/mc 2>/dev/null || ${TRUE}
+       @${RMDIR} ${DESTDIR}${PREFIX:Q}/lib/mc 2>/dev/null || ${TRUE}
 
 # we need working e2fsprogs and gpm packages first
 CONFIGURE_ARGS+=       --without-ext2undel



Home | Main Index | Thread Index | Old Index