# $NetBSD: Makefile,v 1.48 2016/01/07 17:55:55 bouyer Exp $ VERSION= 4.1.6.1 DISTNAME= xen-${VERSION} PKGNAME= xenkernel41-${VERSION} PKGREVISION= 18 CATEGORIES= sysutils MASTER_SITES= http://bits.xensource.com/oss-xen/release/${VERSION}/ MAINTAINER= cegger@NetBSD.org HOMEPAGE= http://xen.org/ COMMENT= Xen 4.1.x Kernel LICENSE= gnu-gpl-v2 ONLY_FOR_PLATFORM= Linux-2.6*-i386 Linux-2.6*-x86_64 ONLY_FOR_PLATFORM+= NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386 NO_CONFIGURE= yes USE_TOOLS+= gmake PYTHON_FOR_BUILD_ONLY= yes PY_PATCHPLIST= NO PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 4.1.6.1 # XXX Why does this not work? # See work/xen-4.1.2/Config.mk:41 why PYTHON must be set and what for MAKE_ENV+= PYTHON=${PYTHONBIN:Q} MAKE_ENV+= OCAML_TOOLS=no INSTALLATION_DIRS= xen41-kernel XENKERNELDIR= ${PREFIX}/${INSTALLATION_DIRS} MESSAGE_SUBST+= XENKERNELDIR=${XENKERNELDIR:Q} .include "../../mk/compiler.mk" .if !empty(PKGSRC_COMPILER:Mclang) EXTRA_CFLAGS+= -Qunused-arguments -no-integrated-as -Wno-error=format \ -Wno-error=parentheses-equality -Wno-error=enum-conversion \ -Wno-error=unused-function \ -Wno-error=tautological-pointer-compare \ -Wno-error=pointer-bool-conversion .endif MAKE_ENV+= EXTRA_CFLAGS=${EXTRA_CFLAGS:Q} do-build: cd ${WRKSRC}/xen && ${BUILD_MAKE_CMD} debug=n build ${CP} ${WRKSRC}/xen/xen.gz ${WRKDIR}/xen.gz cd ${WRKSRC}/xen && ${MAKE_PROGRAM} clean cd ${WRKSRC}/xen && ${BUILD_MAKE_CMD} debug=y build ${CP} ${WRKSRC}/xen/xen.gz ${WRKDIR}/xen-debug.gz do-install: ${INSTALL_DATA} ${WRKDIR}/xen.gz \ ${DESTDIR}${XENKERNELDIR}/xen.gz ${INSTALL_DATA} ${WRKDIR}/xen-debug.gz \ ${DESTDIR}${XENKERNELDIR}/xen-debug.gz .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk"