Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2016 18:11:46 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421574 - in head/benchmarks: . glmark2 glmark2/files
Message-ID:  <201609081811.u88IBkvf056938@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Sep  8 18:11:46 2016
New Revision: 421574
URL: https://svnweb.freebsd.org/changeset/ports/421574

Log:
  Add a port of glmark2, a benchmark for OpenGL (ES) 2.0.
  
  TIMESTAMP (glmark2-2014.03.tar.gz) = 1394537514

Added:
  head/benchmarks/glmark2/
  head/benchmarks/glmark2/Makefile   (contents, props changed)
  head/benchmarks/glmark2/distinfo   (contents, props changed)
  head/benchmarks/glmark2/files/
  head/benchmarks/glmark2/files/patch-wscript   (contents, props changed)
  head/benchmarks/glmark2/pkg-descr   (contents, props changed)
  head/benchmarks/glmark2/pkg-plist   (contents, props changed)
Modified:
  head/benchmarks/Makefile

Modified: head/benchmarks/Makefile
==============================================================================
--- head/benchmarks/Makefile	Thu Sep  8 18:10:59 2016	(r421573)
+++ head/benchmarks/Makefile	Thu Sep  8 18:11:46 2016	(r421574)
@@ -20,6 +20,7 @@
     SUBDIR += flops
     SUBDIR += flowgrind
     SUBDIR += forkbomb
+    SUBDIR += glmark2
     SUBDIR += gtkperf
     SUBDIR += himenobench
     SUBDIR += hpl

Added: head/benchmarks/glmark2/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/glmark2/Makefile	Thu Sep  8 18:11:46 2016	(r421574)
@@ -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>

Added: head/benchmarks/glmark2/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/glmark2/distinfo	Thu Sep  8 18:11:46 2016	(r421574)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1394537514
+SHA256 (glmark2-2014.03.tar.gz) = bded41aaf918ce062d9b81e42cc5be943e6a80bc4ff9d046983b96102c3df6b5
+SIZE (glmark2-2014.03.tar.gz) = 7801401

Added: head/benchmarks/glmark2/files/patch-wscript
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/glmark2/files/patch-wscript	Thu Sep  8 18:11:46 2016	(r421574)
@@ -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

Added: head/benchmarks/glmark2/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/glmark2/pkg-descr	Thu Sep  8 18:11:46 2016	(r421574)
@@ -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

Added: head/benchmarks/glmark2/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/glmark2/pkg-plist	Thu Sep  8 18:11:46 2016	(r421574)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609081811.u88IBkvf056938>