Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/apitrace/files: apitrace-2.0-system-libs.patch apitrace-2.0-glxtrace-only.patch
Date: Sat, 01 Oct 2011 23:44:14
Message-Id: 20111001234402.666EF2004C@flycatcher.gentoo.org
1 radhermit 11/10/01 23:44:02
2
3 Added: apitrace-2.0-system-libs.patch
4 apitrace-2.0-glxtrace-only.patch
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha60/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 dev-util/apitrace/files/apitrace-2.0-system-libs.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/apitrace/files/apitrace-2.0-system-libs.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/apitrace/files/apitrace-2.0-system-libs.patch?rev=1.1&content-type=text/plain
15
16 Index: apitrace-2.0-system-libs.patch
17 ===================================================================
18 --- apitrace-apitrace-e2c4320.orig/cmake/FindSNAPPY.cmake
19 +++ apitrace-apitrace-e2c4320/cmake/FindSNAPPY.cmake
20 @@ -0,0 +1,31 @@
21 +# Find SNAPPY - A fast compressor/decompressor
22 +#
23 +# This module defines
24 +# SNAPPY_FOUND - whether the qsjon library was found
25 +# SNAPPY_LIBRARIES - the snappy library
26 +# SNAPPY_INCLUDE_DIR - the include path of the snappy library
27 +#
28 +
29 +if (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES)
30 +
31 + # Already in cache
32 + set (SNAPPY_FOUND TRUE)
33 +
34 +else (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES)
35 +
36 + find_library (SNAPPY_LIBRARIES
37 + NAMES
38 + snappy
39 + PATHS
40 + )
41 +
42 + find_path (SNAPPY_INCLUDE_DIR
43 + NAMES
44 + snappy.h
45 + PATHS
46 + )
47 +
48 + include(FindPackageHandleStandardArgs)
49 + find_package_handle_standard_args(SNAPPY DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
50 +
51 +endif (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES)
52 --- apitrace-apitrace-e2c4320.orig/CMakeLists.txt
53 +++ apitrace-apitrace-e2c4320/CMakeLists.txt
54 @@ -137,27 +137,16 @@
55 # - on unices to prevent symbol collisions when tracing applications that link
56 # against other versions of these libraries
57
58 -set (ZLIB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/zlib)
59 -set (ZLIB_LIBRARIES z_bundled)
60 -add_subdirectory (thirdparty/zlib EXCLUDE_FROM_ALL)
61 -
62 +find_package (ZLIB REQUIRED)
63 include_directories (${ZLIB_INCLUDE_DIRS})
64 link_libraries (${ZLIB_LIBRARIES})
65
66 -set (SNAPPY_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/snappy)
67 -set (SNAPPY_LIBRARIES snappy_bundled)
68 -add_subdirectory (thirdparty/snappy EXCLUDE_FROM_ALL)
69 -
70 +find_package (SNAPPY REQUIRED)
71 include_directories (${SNAPPY_INCLUDE_DIRS})
72 link_libraries (${SNAPPY_LIBRARIES})
73
74 -set (PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libpng)
75 -set (PNG_DEFINITIONS "")
76 -set (PNG_LIBRARIES png_bundled)
77 -
78 -add_subdirectory (thirdparty/libpng EXCLUDE_FROM_ALL)
79 +find_package (PNG REQUIRED)
80 include_directories (${PNG_INCLUDE_DIR})
81 -add_definitions (${PNG_DEFINITIONS})
82 link_libraries (${PNG_LIBRARIES})
83
84 # The Qt website provides binaries for Windows and MacOSX, and they are
85
86
87
88 1.1 dev-util/apitrace/files/apitrace-2.0-glxtrace-only.patch
89
90 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/apitrace/files/apitrace-2.0-glxtrace-only.patch?rev=1.1&view=markup
91 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/apitrace/files/apitrace-2.0-glxtrace-only.patch?rev=1.1&content-type=text/plain
92
93 Index: apitrace-2.0-glxtrace-only.patch
94 ===================================================================
95 --- apitrace-apitrace-e2c4320/CMakeLists.txt.orig
96 +++ apitrace-apitrace-e2c4320/CMakeLists.txt
97 @@ -17,6 +17,7 @@
98 # prescribed in http://www.gentoo.org/proj/en/qa/automagic.xml
99 set (ENABLE_GUI "AUTO" CACHE STRING "Enable Qt GUI.")
100
101 +option (BUILD_LIB_ONLY "Build the glxtrace library only" OFF)
102
103 ##############################################################################
104 # Find dependencies
105 @@ -137,6 +138,8 @@
106 # - on unices to prevent symbol collisions when tracing applications that link
107 # against other versions of these libraries
108
109 +if (NOT BUILD_LIB_ONLY)
110 +
111 find_package (ZLIB REQUIRED)
112 include_directories (${ZLIB_INCLUDE_DIRS})
113 link_libraries (${ZLIB_LIBRARIES})
114 @@ -166,6 +169,8 @@
115 set (QJSON_FOUND TRUE)
116 endif ()
117
118 +endif (NOT BUILD_LIB_ONLY)
119 +
120 # For glext headers
121 include_directories (${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
122
123 @@ -184,6 +189,8 @@
124 DEPENDS glproc.py dispatch.py specs/wglapi.py specs/glxapi.py specs/cglapi.py specs/glapi.py specs/gltypes.py specs/stdapi.py
125 )
126
127 +if (NOT BUILD_LIB_ONLY)
128 +
129 if (WIN32)
130 set (os os_win32.cpp)
131 set (glws glws_wgl.cpp)
132 @@ -218,6 +225,7 @@
133 add_executable (tracedump tracedump.cpp)
134 install (TARGETS tracedump RUNTIME DESTINATION bin)
135
136 +endif (NOT BUILD_LIB_ONLY)
137
138 ##############################################################################
139 # API tracers
140 @@ -374,6 +382,8 @@
141 ##############################################################################
142 # API retracers
143
144 +if (NOT BUILD_LIB_ONLY)
145 +
146 add_custom_command (
147 OUTPUT glretrace_gl.cpp
148 COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glretrace.py > ${CMAKE_CURRENT_BINARY_DIR}/glretrace_gl.cpp
149 @@ -386,11 +396,15 @@
150 DEPENDS glstate.py specs/glparams.py specs/gltypes.py specs/stdapi.py
151 )
152
153 +endif (NOT BUILD_LIB_ONLY)
154 +
155 include_directories (
156 ${CMAKE_CURRENT_BINARY_DIR}
157 ${OPENGL_INCLUDE_PATH}
158 )
159
160 +if (NOT BUILD_LIB_ONLY)
161 +
162 add_executable (glretrace
163 glretrace_gl.cpp
164 glretrace_cgl.cpp
165 @@ -438,6 +452,7 @@
166 add_subdirectory(gui)
167 endif ()
168
169 +endif (NOT BUILD_LIB_ONLY)
170
171 ##############################################################################
172 # Packaging