# $NetBSD: Makefile,v 1.4 2018/04/20 15:34:36 maya Exp $ GITHUB_PROJECT= edk2 PKGNAME= OVMF-0.0.2017624 DISTNAME= vUDK2017 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_GITHUB:=tianocore/} DIST_SUBDIR= ${GITHUB_PROJECT} GITHUB_TAG= ${DISTNAME} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://github.com/tianocore/edk2/ COMMENT= Sample UEFI firmware for virtual machines LICENSE= modified-bsd WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG} USE_TOOLS+= gmake bash USE_LANGUAGES= c c++ SSP_SUPPORTED= no PYTHON_VERSIONS_ACCEPTED= 27 SUBST_CLASSES+= python SUBST_STAGE.python= pre-configure SUBST_MESSAGE.python= Fix python binary SUBST_FILES.python= BaseTools/Tests/GNUmakefile SUBST_FILES.python+= BaseTools/BinWrappers/PosixLike/* SUBST_SED.python= -e 's,python2,${PYTHONBIN},g' do-build: cd ${WRKSRC}/OvmfPkg && \ ${SETENV} ${MAKE_ENV} ./build.sh INSTALLATION_DIRS+= share do-install: ${INSTALL_DATA} ${WRKSRC}/Build/Ovmf*/*/FV/OVMF.fd ${DESTDIR}${PREFIX}/share/OVMF.fd BUILD_DEPENDS+= acpica-utils-[0-9]*:../../sysutils/acpica-utils BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm BUILD_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 .include "../../lang/python/application.mk" .include "../../devel/libuuid/buildlink3.mk" .include "../../mk/bsd.pkg.mk"