blob: 178555838a92ac449f8df2b59ca314162dd7dfad (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= glmark2
PORTVERSION= 2020.04
PORTREVISION= 1
CATEGORIES= benchmarks
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= c50755b5a193.patch:-p1 # https://github.com/glmark2/glmark2/issues/125
PATCHFILES+= ca6e78769306.patch:-p1 # https://github.com/glmark2/glmark2/issues/125
MAINTAINER= danfe@FreeBSD.org
COMMENT= Benchmark for OpenGL (ES) 2.0
LICENSE= GPLv3
LIB_DEPENDS= libpng.so:graphics/png
USES= compiler:c++11-lang gl jpeg localbase:ldflags pkgconfig \
waf
USE_GL= egl gl glesv2
USE_GITHUB= yes
GH_TAGNAME= 06e4728
CONFIGURE_ARGS= --with-flavors=${PLATFORMS:ts,} --no-opt --no-debug
PORTDOCS= NEWS
OPTIONS_DEFINE= DOCS
OPTIONS_MULTI= PLATFORM
OPTIONS_MULTI_PLATFORM= DRM WAYLAND X11
OPTIONS_DEFAULT=DRM WAYLAND X11
OPTIONS_SUB= yes
PLATFORM_DESC= Window systems
DRM_DESC= KMS console support
DRM_LIB_DEPENDS= libudev.so:devel/libudev-devd \
libdrm.so:graphics/libdrm
DRM_USE= GL=gbm
DRM_VARS= PLATFORMS+="drm-gl drm-glesv2"
WAYLAND_BUILD_DEPENDS= wayland-protocols>=1.12:graphics/wayland-protocols
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland
WAYLAND_VARS= PLATFORMS+="wayland-gl wayland-glesv2"
X11_USES= xorg
X11_USE= XORG=x11
X11_VARS= PLATFORMS+="x11-gl x11-glesv2"
post-patch:
@${REINPLACE_CMD} -e '/-std=c++/s,14,11,' ${WRKSRC}/wscript
@${REINPLACE_CMD} -e "/lib/s/, 'dl'//" ${WRKSRC}/src/wscript_build
@${REINPLACE_CMD} -e 's/GLMARK_VERSION/ &/' \
${WRKSRC}/src/native-state-x11.cpp
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|