1 # $NetBSD: Makefile,v 1.21 2013/04/11 19:57:51 joerg Exp $
5 DISTNAME
= xen-
${VERSION}
6 PKGNAME
= xenkernel33-
${VERSION}
9 MASTER_SITES
= http
://bits.xensource.com
/oss-xen
/release
/${VERSION}/
11 MAINTAINER
= cegger@NetBSD.org
12 HOMEPAGE
= http
://xen.org
/
13 COMMENT
= Xen
3.3.2 Kernel
17 ONLY_FOR_PLATFORM
= Linux-2.6
*-i386 Linux-2.6
*-x86_64
18 ONLY_FOR_PLATFORM
+= NetBSD-
[5-9].
*-x86_64 NetBSD-
[5-9].
*-i386
20 CONFLICTS
= xenkernel30-
* xentools30-
*
21 CONFLICTS
+= xenkernel3-
* xentools3-
*
22 CONFLICTS
+= xenkernel32-
* xentools32-
*
24 WRKSRC
= ${WRKDIR}/xen-
${VERSION}
29 PYTHON_FOR_BUILD_ONLY
= yes
33 SUBST_STAGE.py
= pre-build
34 SUBST_FILES.py
+= xen
/tools
/get-fields.sh
35 SUBST_SED.py
= -e
"s,python,${PYTHONBIN},g"
37 #PY_PATCHPLIST doesn't work because we have NO_CONFIGURE
39 SUBST_STAGE.py2
= pre-build
40 SUBST_FILES.py2
= xen
/tools
/compat-build-source.py
41 SUBST_FILES.py2
+= xen
/tools
/compat-build-header.py
42 SUBST_SED.py2
= -e
"s,/usr/bin/env python,${PYTHONBIN},g"
44 INSTALLATION_DIRS
= xen3-kernel
45 XENKERNELDIR
= ${PREFIX}/${INSTALLATION_DIRS}
47 MESSAGE_SUBST
+= XENKERNELDIR
=${XENKERNELDIR
:Q
}
49 .
include "../../mk/compiler.mk"
50 .if
!empty
(PKGSRC_COMPILER
:Mclang
)
51 EXTRA_CFLAGS
+= -Qunused-arguments
-no-integrated-as
-Wno-error
=format \
52 -Wno-error
=parentheses-equality
-Wno-error
=enum-conversion \
53 -Wno-error
=tautological-compare
57 cd
${WRKSRC} && EXTRA_CFLAGS
=${EXTRA_CFLAGS
:Q
} ${GMAKE} debug
=n xen
58 ${CP} ${WRKSRC}/dist/install/boot
/xen.gz
${WRKDIR}/xen.gz
59 cd
${WRKSRC} && ${GMAKE} clean
60 cd
${WRKSRC} && EXTRA_CFLAGS
=${EXTRA_CFLAGS
:Q
} ${GMAKE} debug
=y xen
61 ${CP} ${WRKSRC}/dist/install/boot
/xen.gz
${WRKDIR}/xen-debug.gz
64 ${INSTALL_DATA} ${WRKDIR}/xen.gz \
65 ${DESTDIR}${XENKERNELDIR}/xen.gz
66 ${INSTALL_DATA} ${WRKDIR}/xen-debug.gz \
67 ${DESTDIR}${XENKERNELDIR}/xen-debug.gz
69 .
include "../../lang/python/application.mk"
70 .
include "../../mk/bsd.pkg.mk"