summaryrefslogtreecommitdiff
path: root/benchmarks/vkmark/Makefile
blob: 94d39287815e921c97f0646d90a1efe4e80fc9e5 (plain)
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
46
47
48
49
50
51

PORTNAME=	vkmark
DISTVERSION=	2017.08-24
DISTVERSIONSUFFIX=	-g53abc4f
CATEGORIES=	benchmarks

PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+=	27fa846e34ed.patch:-p1 # https://github.com/vkmark/vkmark/pull/29

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Vulkan benchmark

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING-LGPL2.1

BUILD_DEPENDS=	vulkan-headers>0:graphics/vulkan-headers \
		glm>0:math/glm
LIB_DEPENDS=	libvulkan.so:graphics/vulkan-loader \
		libassimp.so:multimedia/assimp

USES=		compiler:c++14-lang localbase meson pkgconfig
USE_GITHUB=	yes

OPTIONS_DEFINE=	DRM WAYLAND X11
OPTIONS_DEFAULT=DRM WAYLAND X11
OPTIONS_SUB=	yes

DRM_DESC=		KMS console support
DRM_BUILD_DEPENDS=	${LOCALBASE}/include/vulkan/vulkan_intel.h:graphics/mesa-dri
DRM_LIB_DEPENDS=	libdrm.so:graphics/libdrm
DRM_USES=		gl
DRM_USE=		GL=gbm
DRM_MESON_TRUE=		kms

WAYLAND_BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto \
			wayland-protocols>=1.12:graphics/wayland-protocols
WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland
WAYLAND_MESON_TRUE=	wayland

X11_LIB_DEPENDS=	libxcb-icccm.so:x11/xcb-util-wm
X11_USES=		xorg
X11_USE=		XORG=xcb
X11_MESON_TRUE=		xcb

post-patch:
# Extract (snapshot) version from the port instead of meson.build
	@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
		-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
		${WRKSRC}/meson.build

.include <bsd.port.mk>