View | Details | Raw Unified | Return to bug 223002 | Differences between
and this patch

Collapse All | Expand All

(-)i/devel/apitrace/Makefile (+40 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=		apitrace
4
DISTVERSION=		7.1-455
5
DISTVERSIONSUFFIX=	-g7c76b90
6
CATEGORIES=		devel
7
8
MAINTAINER=	greg@unrelenting.technology
9
COMMENT=	Tools for tracing OpenGL and other graphics APIs
10
11
LICENSE=	MIT
12
13
LIB_DEPENDS=	libunwind.so:devel/libunwind \
14
		libpng16.so:graphics/png
15
16
USES=		cmake:outsource compiler:c++11-lang pkgconfig python:2.7 shebangfix
17
18
USE_GITHUB=	yes
19
USE_XORG=	x11
20
21
SHEBANG_REGEX=	./scripts/.*\.py
22
23
CMAKE_ARGS=	-DCMAKE_INSTALL_DOCDIR:STRING="${DOCSDIR}"
24
25
OPTIONS_DEFINE=	QT5
26
OPTIONS_DEFAULT=	QT5
27
OPTIONS_SUB=		yes
28
29
QT5_DESC=		Qt 5 frontend
30
31
QT5_CMAKE_BOOL=	ENABLE_GUI
32
QT5_USE=		qt5=qmake_build,buildtools_build,core,gui,widgets,network
33
QT5_USES=		desktop-file-utils
34
QT5_VARS=		installs_icons=yes
35
36
post-install-QT5-on:
37
	${INSTALL_DATA} ${FILESDIR}/qapitrace.desktop \
38
		${STAGEDIR}${PREFIX}/share/applications
39
40
.include <bsd.port.mk>
(-)i/devel/apitrace/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1507984453
2
SHA256 (apitrace-apitrace-7.1-455-g7c76b90_GH0.tar.gz) = 235c5f402c1095bc7596073aa65bc4223b5fef3cc2ea54c000e92f735df5b825
3
SIZE (apitrace-apitrace-7.1-455-g7c76b90_GH0.tar.gz) = 3578137
(-)i/devel/apitrace/files/patch-dispatch_glproc__egl.cpp (+29 lines)
Added Link Here
1
--- dispatch/glproc_egl.cpp.orig	2017-10-05 14:14:11 UTC
2
+++ dispatch/glproc_egl.cpp
3
@@ -89,7 +89,7 @@ _getPublicProcAddress(const char *procName)
4
     if (procName[0] == 'e' && procName[1] == 'g' && procName[2] == 'l') {
5
         static void *libEGL = NULL;
6
         if (!libEGL) {
7
-            libEGL = _dlopen("libEGL.so", RTLD_LOCAL | RTLD_LAZY | RTLD_DEEPBIND);
8
+            libEGL = _dlopen("libEGL.so", RTLD_LOCAL | RTLD_LAZY);
9
             if (!libEGL) {
10
                 return NULL;
11
             }
12
@@ -132,7 +132,7 @@ _getPublicProcAddress(const char *procName)
13
 
14
         static void *libGLESv2 = NULL;
15
         if (!libGLESv2) {
16
-            libGLESv2 = _dlopen("libGLESv2.so", RTLD_LOCAL | RTLD_LAZY | RTLD_DEEPBIND);
17
+            libGLESv2 = _dlopen("libGLESv2.so", RTLD_LOCAL | RTLD_LAZY);
18
         }
19
         if (libGLESv2) {
20
             proc = dlsym(libGLESv2, procName);
21
@@ -143,7 +143,7 @@ _getPublicProcAddress(const char *procName)
22
 
23
         static void *libGLESv1 = NULL;
24
         if (!libGLESv1) {
25
-            libGLESv1 = _dlopen("libGLESv1_CM.so", RTLD_LOCAL | RTLD_LAZY | RTLD_DEEPBIND);
26
+            libGLESv1 = _dlopen("libGLESv1_CM.so", RTLD_LOCAL | RTLD_LAZY);
27
         }
28
         if (libGLESv1) {
29
             proc = dlsym(libGLESv1, procName);
(-)i/devel/apitrace/files/patch-dispatch_glproc__gl.cpp (+11 lines)
Added Link Here
1
--- dispatch/glproc_gl.cpp.orig	2017-10-05 14:14:11 UTC
2
+++ dispatch/glproc_gl.cpp
3
@@ -200,7 +200,7 @@ void * _libgl_sym(const char *symbol)
4
          * exposes symbols to it.
5
          */
6
 
7
-        _libGlHandle = _dlopen(libgl_filename, RTLD_GLOBAL | RTLD_LAZY | RTLD_DEEPBIND);
8
+        _libGlHandle = _dlopen(libgl_filename, RTLD_GLOBAL | RTLD_LAZY);
9
         if (!_libGlHandle) {
10
             os::log("apitrace: error: couldn't find libGL.so\n");
11
             return NULL;
(-)i/devel/apitrace/files/patch-retrace_CMakeLists.txt (+18 lines)
Added Link Here
1
--- retrace/CMakeLists.txt.orig	2017-10-14 12:21:47 UTC
2
+++ retrace/CMakeLists.txt
3
@@ -123,6 +123,7 @@ if (WIN32 OR APPLE OR X11_FOUND)
4
         retrace_common
5
         glretrace_common
6
         glhelpers
7
+        glproc
8
         glproc_gl
9
     )
10
 
11
@@ -169,6 +170,7 @@ if (ENABLE_EGL AND X11_FOUND AND NOT WIN32 AND NOT APP
12
         retrace_common
13
         glretrace_common
14
         glhelpers
15
+        glproc
16
         glproc_egl
17
         ${X11_X11_LIB}
18
         ${CMAKE_THREAD_LIBS_INIT}
(-)i/devel/apitrace/files/patch-thirdparty_libbacktrace_dwarf.c (+13 lines)
Added Link Here
1
--- thirdparty/libbacktrace/dwarf.c.orig	2017-10-05 14:14:11 UTC
2
+++ thirdparty/libbacktrace/dwarf.c
3
@@ -1851,10 +1851,6 @@ read_line_program (struct backtrace_state *state, stru
4
 		  }
5
 	      }
6
 	      break;
7
-	    case DW_LNE_set_discriminator:
8
-	      /* We don't care about discriminators.  */
9
-	      read_uleb128 (line_buf);
10
-	      break;
11
 	    default:
12
 	      if (!advance (line_buf, len - 1))
13
 		return 0;
(-)i/devel/apitrace/files/patch-wrappers_trace.py (+11 lines)
Added Link Here
1
--- wrappers/trace.py.orig	2017-10-05 14:14:11 UTC
2
+++ wrappers/trace.py
3
@@ -521,7 +521,7 @@ class Tracer:
4
         print '#    define alloca _alloca'
5
         print '#  endif'
6
         print '#else'
7
-        print '#  include <alloca.h> // alloca'
8
+        print '#  include <stdlib.h> // alloca'
9
         print '#endif'
10
         print
11
         print
(-)i/devel/apitrace/files/qapitrace.desktop (+9 lines)
Added Link Here
1
[Desktop Entry]
2
Name=QApiTrace
3
GenericName=Graphics API tracing tool
4
Comment=A set of tools to trace OpenGL and other graphics APIs
5
Exec=qapitrace
6
Terminal=false
7
Type=Application
8
Categories=Development;
9
Keywords=opengl;graphics;debugging;
(-)i/devel/apitrace/pkg-descr (+7 lines)
Added Link Here
1
apitrace is a set of tools to:
2
- trace OpenGL, OpenGL ES, Direct3D, and DirectDraw APIs calls to a file;
3
- replay OpenGL and OpenGL ES calls from a file;
4
- inspect OpenGL state at any call while retracing;
5
- visualize and edit trace files.
6
7
WWW: https://apitrace.github.io
(-)i/devel/apitrace/pkg-plist (+26 lines)
Added Link Here
1
bin/apitrace
2
bin/eglretrace
3
bin/glretrace
4
%%QT5%%bin/qapitrace
5
%%QT5%%share/applications/qapitrace.desktop
6
lib/apitrace/scripts/apitrace.PIXExp
7
lib/apitrace/scripts/convert.py
8
lib/apitrace/scripts/highlight.py
9
lib/apitrace/scripts/jsondiff.py
10
lib/apitrace/scripts/jsonextractimages.py
11
lib/apitrace/scripts/leaks.py
12
lib/apitrace/scripts/profileshader.py
13
lib/apitrace/scripts/retracediff.py
14
lib/apitrace/scripts/snapdiff.py
15
lib/apitrace/scripts/tracecheck.py
16
lib/apitrace/scripts/tracediff.py
17
lib/apitrace/scripts/unpickle.py
18
lib/apitrace/wrappers/egltrace.so
19
lib/apitrace/wrappers/glxtrace.so
20
%%PORTDOCS%%%%DOCSDIR%%/BUGS.markdown
21
%%PORTDOCS%%%%DOCSDIR%%/LICENSE-brotli.txt
22
%%PORTDOCS%%%%DOCSDIR%%/LICENSE-snappy.txt
23
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
24
%%PORTDOCS%%%%DOCSDIR%%/NEWS.markdown
25
%%PORTDOCS%%%%DOCSDIR%%/README.markdown
26
%%PORTDOCS%%%%DOCSDIR%%/USAGE.markdown

Return to bug 223002