2016-09-08 20:11:46 +02:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= glmark2
|
2020-05-29 12:00:12 +02:00
|
|
|
PORTVERSION= 2020.04
|
2016-09-08 20:11:46 +02:00
|
|
|
CATEGORIES= benchmarks
|
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Benchmark for OpenGL (ES) 2.0
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
|
2020-05-29 12:00:12 +02:00
|
|
|
USES= compiler:c++11-lang gl jpeg localbase:ldflags pkgconfig \
|
|
|
|
waf xorg
|
|
|
|
USE_XORG= x11
|
2016-09-08 20:11:46 +02:00
|
|
|
USE_GL= egl gl glesv2
|
2020-05-29 12:00:12 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_TAGNAME= 06e4728
|
2016-09-08 20:11:46 +02:00
|
|
|
CONFIGURE_ARGS= --with-flavors=x11-gl,x11-glesv2 --no-opt --no-debug
|
|
|
|
|
|
|
|
PORTDOCS= NEWS
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
post-patch:
|
2020-05-29 12:00:12 +02:00
|
|
|
@${REINPLACE_CMD} -e '/-std=c++/s,14,11,' ${WRKSRC}/wscript
|
2016-09-08 20:11:46 +02:00
|
|
|
@${REINPLACE_CMD} -e "/lib/s/, 'dl'//" ${WRKSRC}/src/wscript_build
|
2018-01-15 12:38:03 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/GLMARK_VERSION/ &/' \
|
|
|
|
${WRKSRC}/src/native-state-x11.cpp
|
2016-09-08 20:11:46 +02:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|