2018-04-20 17:34:36 +02:00
|
|
|
# $NetBSD: Makefile,v 1.4 2018/04/20 15:34:36 maya Exp $
|
2017-10-23 16:21:57 +02:00
|
|
|
|
|
|
|
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}
|
|
|
|
|
2017-10-23 16:42:45 +02:00
|
|
|
USE_TOOLS+= gmake bash
|
2017-10-23 16:21:57 +02:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
2018-01-15 10:49:03 +01:00
|
|
|
SSP_SUPPORTED= no
|
|
|
|
|
2017-10-23 16:21:57 +02:00
|
|
|
PYTHON_VERSIONS_ACCEPTED= 27
|
2017-10-23 16:42:45 +02:00
|
|
|
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'
|
2017-10-23 16:21:57 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/OvmfPkg && \
|
2017-10-23 16:42:45 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ./build.sh
|
2017-10-23 16:21:57 +02:00
|
|
|
|
2017-10-23 16:42:45 +02:00
|
|
|
INSTALLATION_DIRS+= share
|
2017-10-23 16:21:57 +02:00
|
|
|
do-install:
|
2018-04-20 17:34:36 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Build/Ovmf*/*/FV/OVMF.fd ${DESTDIR}${PREFIX}/share/OVMF.fd
|
2017-10-23 16:21:57 +02:00
|
|
|
|
2018-04-20 17:34:36 +02:00
|
|
|
BUILD_DEPENDS+= acpica-utils-[0-9]*:../../sysutils/acpica-utils
|
2017-10-23 16:21:57 +02:00
|
|
|
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
|
2018-04-20 17:34:36 +02:00
|
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
|
2017-10-23 16:21:57 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../devel/libuuid/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|