1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/benchmarks/glmark2/Makefile
2021-04-06 16:31:07 +02:00

56 lines
1.4 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= glmark2
PORTVERSION= 2021.02
PORTREVISION= 1
CATEGORIES= benchmarks
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= bd2c4ca8360a.patch:-p1 # https://github.com/glmark2/glmark2/issues/147
MAINTAINER= danfe@FreeBSD.org
COMMENT= Benchmark for OpenGL (ES) 2.0
LICENSE= GPLv3
LIB_DEPENDS= libpng.so:graphics/png
USES= compiler:c++14-lang gl jpeg localbase:ldflags pkgconfig waf
USE_GL= egl gl glesv2
USE_GITHUB= yes
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= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \
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 "/lib/s/, 'dl'//" ${WRKSRC}/src/wscript_build
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>