blob: 2dcbb12f1e6970bb35529ba68b098254c95ebb7c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
PORTNAME= fwupd-efi
DISTVERSION= 1.8
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= decke@FreeBSD.org
COMMENT= EFI Application used by uefi-capsule plugin in fwupd
WWW= https://fwupd.org/
LICENSE= LGPL21
BUILD_DEPENDS= ${LOCALBASE}/lib/libgnuefi.a:devel/gnu-efi \
${PYTHON_PKGNAMEPREFIX}pefile>0:devel/py-pefile@${PY_FLAVOR}
USES= meson pkgconfig python shebangfix
USE_GITHUB= yes
GH_ACCOUNT= fwupd
USE_GCC= yes
SHEBANG_GLOB= *.py
MESON_ARGS= -Defi-includedir=${LOCALBASE}/include/efi \
-Defi-ldsdir=${LOCALBASE}/lib \
-Dgenpeimg=disabled \
-Dpython=${PYTHON_CMD}
.include <bsd.port.pre.mk>
.if ${ARCH} == amd64
FW_ARCH="x64"
.elif ${ARCH} == i386
FW_ARCH="ia32"
.else
FW_ARCH=${ARCH}
.endif
PLIST_FILES= libdata/pkgconfig/fwupd-efi.pc \
libexec/fwupd/efi/fwupd${FW_ARCH}.efi
post-patch:
# use objcopy from binutils because GNU specific flags are used
@${REINPLACE_CMD} "s|find_program('objcopy')|find_program('${LOCALBASE}/bin/objcopy')|g" \
${WRKSRC}/meson.build
.include <bsd.port.post.mk>
|