aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2016-09-09 02:11:46 +0800
committerdanfe <danfe@FreeBSD.org>2016-09-09 02:11:46 +0800
commit8bd7c511fc9d96d1df38d8da7e276ce6d5de4908 (patch)
tree429cfa77e8f1f79da78bf8ee497e90d571baca68 /benchmarks
parent35bbda2bd8b3453d776fc76a3f9757382fc45da7 (diff)
downloadfreebsd-ports-gnome-8bd7c511fc9d96d1df38d8da7e276ce6d5de4908.tar.gz
freebsd-ports-gnome-8bd7c511fc9d96d1df38d8da7e276ce6d5de4908.tar.zst
freebsd-ports-gnome-8bd7c511fc9d96d1df38d8da7e276ce6d5de4908.zip
Add a port of glmark2, a benchmark for OpenGL (ES) 2.0.
TIMESTAMP (glmark2-2014.03.tar.gz) = 1394537514
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/Makefile1
-rw-r--r--benchmarks/glmark2/Makefile32
-rw-r--r--benchmarks/glmark2/distinfo3
-rw-r--r--benchmarks/glmark2/files/patch-wscript37
-rw-r--r--benchmarks/glmark2/pkg-descr4
-rw-r--r--benchmarks/glmark2/pkg-plist138
6 files changed, 215 insertions, 0 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index 68432c2f469e..12721ca5a330 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -20,6 +20,7 @@
SUBDIR += flops
SUBDIR += flowgrind
SUBDIR += forkbomb
+ SUBDIR += glmark2
SUBDIR += gtkperf
SUBDIR += himenobench
SUBDIR += hpl
diff --git a/benchmarks/glmark2/Makefile b/benchmarks/glmark2/Makefile
new file mode 100644
index 000000000000..f1604e27f1e8
--- /dev/null
+++ b/benchmarks/glmark2/Makefile
@@ -0,0 +1,32 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= glmark2
+PORTVERSION= 2014.03
+CATEGORIES= benchmarks
+MASTER_SITES= https://launchpadlibrarian.net/169075003/
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Benchmark for OpenGL (ES) 2.0
+
+LICENSE= GPLv3
+
+LIB_DEPENDS= libpng.so:graphics/png
+
+USES= jpeg localbase pkgconfig waf
+USE_GL= egl gl glesv2
+CONFIGURE_ARGS= --with-flavors=x11-gl,x11-glesv2 --no-opt --no-debug
+WAF_CMD= ./waf -v
+
+PORTDOCS= NEWS
+
+OPTIONS_DEFINE= DOCS
+
+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>
diff --git a/benchmarks/glmark2/distinfo b/benchmarks/glmark2/distinfo
new file mode 100644
index 000000000000..debca09e5480
--- /dev/null
+++ b/benchmarks/glmark2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1394537514
+SHA256 (glmark2-2014.03.tar.gz) = bded41aaf918ce062d9b81e42cc5be943e6a80bc4ff9d046983b96102c3df6b5
+SIZE (glmark2-2014.03.tar.gz) = 7801401
diff --git a/benchmarks/glmark2/files/patch-wscript b/benchmarks/glmark2/files/patch-wscript
new file mode 100644
index 000000000000..fa6a85c65e48
--- /dev/null
+++ b/benchmarks/glmark2/files/patch-wscript
@@ -0,0 +1,37 @@
+--- wscript.orig 2014-03-11 08:50:10 UTC
++++ wscript
+@@ -87,14 +87,8 @@ def configure(ctx):
+ for (lib, uselib) in req_libs:
+ ctx.check_cxx(lib = lib, uselib_store = uselib)
+
+- # Check required functions
+- req_funcs = [('memset', 'string.h', []) ,('sqrt', 'math.h', ['m'])]
+- for func, header, uselib in req_funcs:
+- ctx.check_cxx(function_name = func, header_name = header,
+- uselib = uselib, mandatory = True)
+-
+ # Check for a supported version of libpng
+- supp_png_pkgs = (('libpng12', '1.2'), ('libpng15', '1.5'),)
++ supp_png_pkgs = (('libpng12', '1.2'), ('libpng16', '1.6'),)
+ have_png = False
+ for (pkg, atleast) in supp_png_pkgs:
+ try:
+@@ -123,7 +117,7 @@ def configure(ctx):
+ ctx.check_cfg(package = pkg, uselib_store = uselib,
+ args = '--cflags --libs', mandatory = mandatory)
+
+- ctx.env.append_unique('CXXFLAGS', '-Werror -Wall -Wextra -Wnon-virtual-dtor'.split(' '))
++ ctx.env.append_unique('CXXFLAGS', '-Wall -Wextra -Wnon-virtual-dtor'.split(' '))
+
+ # Prepend -O# and -g flags so that they can be overriden by the
+ # CFLAGS environment variable
+@@ -132,6 +126,9 @@ def configure(ctx):
+ if Options.options.debug:
+ ctx.env.prepend_value('CXXFLAGS', '-g')
+
++ # Fix manpages path for FreeBSD
++ ctx.env.MANDIR = '%s/man' % ctx.env.PREFIX
++
+ ctx.env.HAVE_EXTRAS = False
+ if Options.options.extras_path is not None:
+ ctx.env.HAVE_EXTRAS = True
diff --git a/benchmarks/glmark2/pkg-descr b/benchmarks/glmark2/pkg-descr
new file mode 100644
index 000000000000..4823e8706265
--- /dev/null
+++ b/benchmarks/glmark2/pkg-descr
@@ -0,0 +1,4 @@
+glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of the
+OpenGL 2.0 API that is compatible with OpenGL ES 2.0.
+
+WWW: https://launchpad.net/glmark2
diff --git a/benchmarks/glmark2/pkg-plist b/benchmarks/glmark2/pkg-plist
new file mode 100644
index 000000000000..9e4f5edbc1ce
--- /dev/null
+++ b/benchmarks/glmark2/pkg-plist
@@ -0,0 +1,138 @@
+bin/glmark2
+bin/glmark2-es2
+man/man1/glmark2.1.gz
+man/man1/glmark2-es2.1.gz
+%%DATADIR%%/models/asteroid-high.3ds
+%%DATADIR%%/models/asteroid-low.3ds
+%%DATADIR%%/models/bunny.obj
+%%DATADIR%%/models/cat.3ds
+%%DATADIR%%/models/cube.3ds
+%%DATADIR%%/models/horse.3ds
+%%DATADIR%%/models/jellyfish.jobj
+%%DATADIR%%/shaders/buffer-wireframe.frag
+%%DATADIR%%/shaders/buffer-wireframe.vert
+%%DATADIR%%/shaders/bump-height.frag
+%%DATADIR%%/shaders/bump-height.vert
+%%DATADIR%%/shaders/bump-normals-tangent.frag
+%%DATADIR%%/shaders/bump-normals-tangent.vert
+%%DATADIR%%/shaders/bump-normals.frag
+%%DATADIR%%/shaders/bump-normals.vert
+%%DATADIR%%/shaders/bump-poly.frag
+%%DATADIR%%/shaders/bump-poly.vert
+%%DATADIR%%/shaders/conditionals-step-conditional.all
+%%DATADIR%%/shaders/conditionals-step-simple.all
+%%DATADIR%%/shaders/conditionals.frag
+%%DATADIR%%/shaders/conditionals.vert
+%%DATADIR%%/shaders/depth.frag
+%%DATADIR%%/shaders/depth.vert
+%%DATADIR%%/shaders/desktop-blur.frag
+%%DATADIR%%/shaders/desktop.frag
+%%DATADIR%%/shaders/desktop.vert
+%%DATADIR%%/shaders/effect-2d-convolution.frag
+%%DATADIR%%/shaders/effect-2d.vert
+%%DATADIR%%/shaders/function-call.all
+%%DATADIR%%/shaders/function-step-low.all
+%%DATADIR%%/shaders/function-step-medium.all
+%%DATADIR%%/shaders/function.frag
+%%DATADIR%%/shaders/function.vert
+%%DATADIR%%/shaders/gradient.frag
+%%DATADIR%%/shaders/gradient.vert
+%%DATADIR%%/shaders/ideas-lamp-lit.frag
+%%DATADIR%%/shaders/ideas-lamp-lit.vert
+%%DATADIR%%/shaders/ideas-lamp-unlit.frag
+%%DATADIR%%/shaders/ideas-lamp-unlit.vert
+%%DATADIR%%/shaders/ideas-logo-flat.frag
+%%DATADIR%%/shaders/ideas-logo-flat.vert
+%%DATADIR%%/shaders/ideas-logo-shadow.frag
+%%DATADIR%%/shaders/ideas-logo-shadow.vert
+%%DATADIR%%/shaders/ideas-logo.frag
+%%DATADIR%%/shaders/ideas-logo.vert
+%%DATADIR%%/shaders/ideas-paper.frag
+%%DATADIR%%/shaders/ideas-paper.vert
+%%DATADIR%%/shaders/ideas-table.frag
+%%DATADIR%%/shaders/ideas-table.vert
+%%DATADIR%%/shaders/ideas-text.frag
+%%DATADIR%%/shaders/ideas-text.vert
+%%DATADIR%%/shaders/ideas-under-table.frag
+%%DATADIR%%/shaders/ideas-under-table.vert
+%%DATADIR%%/shaders/jellyfish.frag
+%%DATADIR%%/shaders/jellyfish.vert
+%%DATADIR%%/shaders/light-advanced.frag
+%%DATADIR%%/shaders/light-advanced.vert
+%%DATADIR%%/shaders/light-basic-tex-bilinear.frag
+%%DATADIR%%/shaders/light-basic-tex.frag
+%%DATADIR%%/shaders/light-basic-texgen.vert
+%%DATADIR%%/shaders/light-basic.frag
+%%DATADIR%%/shaders/light-basic.vert
+%%DATADIR%%/shaders/light-cel.frag
+%%DATADIR%%/shaders/light-phong.frag
+%%DATADIR%%/shaders/light-phong.vert
+%%DATADIR%%/shaders/light-refract.frag
+%%DATADIR%%/shaders/light-refract.vert
+%%DATADIR%%/shaders/loop-step-loop.all
+%%DATADIR%%/shaders/loop-step-simple.all
+%%DATADIR%%/shaders/loop.frag
+%%DATADIR%%/shaders/loop.vert
+%%DATADIR%%/shaders/pulsar-light.vert
+%%DATADIR%%/shaders/pulsar.vert
+%%DATADIR%%/shaders/README.shaders
+%%DATADIR%%/shaders/shadow.frag
+%%DATADIR%%/shaders/shadow.vert
+%%DATADIR%%/shaders/terrain-blur.frag
+%%DATADIR%%/shaders/terrain-luminance.frag
+%%DATADIR%%/shaders/terrain-noise.frag
+%%DATADIR%%/shaders/terrain-normalmap.frag
+%%DATADIR%%/shaders/terrain-overlay.frag
+%%DATADIR%%/shaders/terrain-texture.vert
+%%DATADIR%%/shaders/terrain.frag
+%%DATADIR%%/shaders/terrain.vert
+%%DATADIR%%/shaders/text-renderer.frag
+%%DATADIR%%/shaders/text-renderer.vert
+%%DATADIR%%/textures/asteroid-height-map.png
+%%DATADIR%%/textures/asteroid-normal-map-tangent.png
+%%DATADIR%%/textures/asteroid-normal-map.png
+%%DATADIR%%/textures/crate-base.png
+%%DATADIR%%/textures/desktop-shadow-corner.png
+%%DATADIR%%/textures/desktop-shadow.png
+%%DATADIR%%/textures/desktop-window.png
+%%DATADIR%%/textures/effect-2d.png
+%%DATADIR%%/textures/glyph-atlas.png
+%%DATADIR%%/textures/jellyfish-caustics-01.png
+%%DATADIR%%/textures/jellyfish-caustics-02.png
+%%DATADIR%%/textures/jellyfish-caustics-03.png
+%%DATADIR%%/textures/jellyfish-caustics-04.png
+%%DATADIR%%/textures/jellyfish-caustics-05.png
+%%DATADIR%%/textures/jellyfish-caustics-06.png
+%%DATADIR%%/textures/jellyfish-caustics-07.png
+%%DATADIR%%/textures/jellyfish-caustics-08.png
+%%DATADIR%%/textures/jellyfish-caustics-09.png
+%%DATADIR%%/textures/jellyfish-caustics-10.png
+%%DATADIR%%/textures/jellyfish-caustics-11.png
+%%DATADIR%%/textures/jellyfish-caustics-12.png
+%%DATADIR%%/textures/jellyfish-caustics-13.png
+%%DATADIR%%/textures/jellyfish-caustics-14.png
+%%DATADIR%%/textures/jellyfish-caustics-15.png
+%%DATADIR%%/textures/jellyfish-caustics-16.png
+%%DATADIR%%/textures/jellyfish-caustics-17.png
+%%DATADIR%%/textures/jellyfish-caustics-18.png
+%%DATADIR%%/textures/jellyfish-caustics-19.png
+%%DATADIR%%/textures/jellyfish-caustics-20.png
+%%DATADIR%%/textures/jellyfish-caustics-21.png
+%%DATADIR%%/textures/jellyfish-caustics-22.png
+%%DATADIR%%/textures/jellyfish-caustics-23.png
+%%DATADIR%%/textures/jellyfish-caustics-24.png
+%%DATADIR%%/textures/jellyfish-caustics-25.png
+%%DATADIR%%/textures/jellyfish-caustics-26.png
+%%DATADIR%%/textures/jellyfish-caustics-27.png
+%%DATADIR%%/textures/jellyfish-caustics-28.png
+%%DATADIR%%/textures/jellyfish-caustics-29.png
+%%DATADIR%%/textures/jellyfish-caustics-30.png
+%%DATADIR%%/textures/jellyfish-caustics-31.png
+%%DATADIR%%/textures/jellyfish-caustics-32.png
+%%DATADIR%%/textures/jellyfish256.png
+%%DATADIR%%/textures/nasa1.png
+%%DATADIR%%/textures/nasa2.png
+%%DATADIR%%/textures/nasa3.png
+%%DATADIR%%/textures/terrain-backgrounddetailed6.jpg
+%%DATADIR%%/textures/terrain-grasslight-512-nm.jpg
+%%DATADIR%%/textures/terrain-grasslight-512.jpg