Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / xenkernel33 / Makefile
blobb35de2b4a93ed891cd12773141914fde3734fa6d
1 # $NetBSD: Makefile,v 1.21 2013/04/11 19:57:51 joerg Exp $
4 VERSION= 3.3.2
5 DISTNAME= xen-${VERSION}
6 PKGNAME= xenkernel33-${VERSION}
7 PKGREVISION= 6
8 CATEGORIES= sysutils
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
15 LICENSE= gnu-gpl-v2
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}
26 NO_CONFIGURE= yes
27 USE_TOOLS+= gmake
29 PYTHON_FOR_BUILD_ONLY= yes
30 PY_PATCHPLIST= NO
32 SUBST_CLASSES+= py
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
38 SUBST_CLASSES+= py2
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
54 .endif
56 do-build:
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
63 do-install:
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"