pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/xenkernel33 DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e53fc74d2223
branches:  trunk
changeset: 548099:e53fc74d2223
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Oct 08 18:32:06 2008 +0000

description:
DESTDIR support.

diffstat:

 sysutils/xenkernel33/Makefile |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 8b101ee22698 -r e53fc74d2223 sysutils/xenkernel33/Makefile
--- a/sysutils/xenkernel33/Makefile     Wed Oct 08 18:25:20 2008 +0000
+++ b/sysutils/xenkernel33/Makefile     Wed Oct 08 18:32:06 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2008/08/22 17:03:30 cegger Exp $
+# $NetBSD: Makefile,v 1.6 2008/10/08 18:32:06 joerg Exp $
 #
 
 VERSION=       3.3.0
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://xen.org/
 COMMENT=       Xen 3.3.0 Kernel
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 ONLY_FOR_PLATFORM=     Linux-2.6*-i386 Linux-2.6*-x86_64
 ONLY_FOR_PLATFORM+=    NetBSD-4.99.*-x86_64 NetBSD-4.99.*-i386
 ONLY_FOR_PLATFORM+=    NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386
@@ -39,6 +41,8 @@
 SUBST_FILES.py2+=      xen/tools/compat-build-header.py
 SUBST_SED.py2=         -e "s,/usr/bin/env python,${PYTHONBIN},g"
 
+INSTALLATION_DIRS=     xen3-kernel
+
 do-build:
        cd ${WRKSRC} && ${GMAKE} debug=n xen
        ${CP} ${WRKSRC}/dist/install/boot/xen.gz ${WRKDIR}/xen.gz
@@ -46,9 +50,8 @@
        ${CP} ${WRKSRC}/dist/install/boot/xen.gz ${WRKDIR}/xen-debug.gz
 
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/xen3-kernel
-       ${INSTALL_DATA} ${WRKDIR}/xen.gz ${PREFIX}/xen3-kernel/xen.gz
-       ${INSTALL_DATA} ${WRKDIR}/xen-debug.gz ${PREFIX}/xen3-kernel/xen-debug.gz
+       ${INSTALL_DATA} ${WRKDIR}/xen.gz ${DESTDIR}${PREFIX}/xen3-kernel/xen.gz
+       ${INSTALL_DATA} ${WRKDIR}/xen-debug.gz ${DESTDIR}${PREFIX}/xen3-kernel/xen-debug.gz
 
 .include "../../lang/python/application.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index