pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/x11-links Added support for installation to D...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/df830ecee67d
branches:  trunk
changeset: 532582:df830ecee67d
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Thu Aug 23 20:40:56 2007 +0000

description:
Added support for installation to DESTDIR.

diffstat:

 pkgtools/x11-links/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r f5f01f635cf0 -r df830ecee67d pkgtools/x11-links/Makefile
--- a/pkgtools/x11-links/Makefile       Thu Aug 23 20:38:03 2007 +0000
+++ b/pkgtools/x11-links/Makefile       Thu Aug 23 20:40:56 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.83 2007/06/09 23:05:42 reed Exp $
+# $NetBSD: Makefile,v 1.84 2007/08/23 20:40:56 heinz Exp $
 #
 # NOTE:        If you update this package, then you'll likely need to also update
 #      the x11-links dependency in buildlink3.mk to the correct version,
@@ -13,6 +13,7 @@
 HOMEPAGE=      ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html
 COMMENT=       Shadow tree of links to native X11 headers and libraries
 
+PKG_DESTDIR_SUPPORT=   user-destdir
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
 WRKSRC=                        ${WRKDIR}
@@ -82,7 +83,8 @@
        } > ${PLIST_SRC.dirs}
 
 do-install:
-       ${INSTALL_DATA_DIR} ${X11_LINKS_DIR}
-       cd ${X11_LINKS_BUILD_DIR} && ${PAX} -rw . ${X11_LINKS_DIR}
+       ${INSTALL_DATA_DIR} ${DESTDIR:Q}${X11_LINKS_DIR:Q}
+       cd  ${X11_LINKS_BUILD_DIR} && \
+               ${PAX} -rw .  ${DESTDIR:Q}${X11_LINKS_DIR:Q}
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index