From 894cf2cebca528a7b4857aa5593d7e2df9d22d3a Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 8 Oct 2008 18:32:06 +0000 Subject: DESTDIR support. --- sysutils/xenkernel33/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sysutils/xenkernel33') diff --git a/sysutils/xenkernel33/Makefile b/sysutils/xenkernel33/Makefile index d494e0245d7..e51ed0fa516 100644 --- a/sysutils/xenkernel33/Makefile +++ b/sysutils/xenkernel33/Makefile @@ -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 @@ MAINTAINER= cegger@NetBSD.org 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-source.py 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 @@ do-build: ${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" -- cgit v1.2.3