devel/apitrace: update to 13.0
Changelog: https://github.com/apitrace/apitrace/releases/tag/13.0 PR: 287853 Reported by: Martin Filla <freebsd@sysctl.cz> (maintainer)
This commit is contained in:
committed by
Hiroki Tagato
parent
e0a68771e6
commit
b9f80248e2
+9
-13
@@ -1,5 +1,5 @@
|
||||
PORTNAME= apitrace
|
||||
DISTVERSION= 12.0
|
||||
DISTVERSION= 13.0
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= freebsd@sysctl.cz
|
||||
@@ -13,6 +13,7 @@ BUILD_DEPENDS= brotli>0:archivers/brotli \
|
||||
googletest>0:devel/googletest \
|
||||
libbacktrace>0:devel/libbacktrace \
|
||||
png>0:graphics/png \
|
||||
vulkan-headers>0:graphics/vulkan-headers \
|
||||
snappy>0:archivers/snappy
|
||||
|
||||
LIB_DEPENDS= libbrotlidec.so:archivers/brotli \
|
||||
@@ -20,37 +21,32 @@ LIB_DEPENDS= libbrotlidec.so:archivers/brotli \
|
||||
libpng.so:graphics/png \
|
||||
libsnappy.so:archivers/snappy
|
||||
|
||||
USES= cmake compiler:c++11-lang desktop-file-utils pkgconfig python shebangfix xorg
|
||||
USES= cmake compiler:c++17-lang desktop-file-utils localbase:ldflags pkgconfig python qt:6 shebangfix xorg
|
||||
USE_XORG= x11
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= apitrace
|
||||
GH_PROJECT= apitrace
|
||||
GH_TUPLE= microsoft:DirectXMath:e95d848:DirectXMath/thirdparty/directxmath
|
||||
|
||||
SHEBANG_FILES= scripts/*.py
|
||||
|
||||
OPTIONS_DEFINE= DOCS QT5 WAFFLE
|
||||
OPTIONS_DEFAULT= QT5 WAFFLE
|
||||
OPTIONS_DEFINE= DOCS WAFFLE
|
||||
OPTIONS_DEFAULT= WAFFLE
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
QT5_USES= qt:5
|
||||
QT5_USE= QT=core,gui,network,widgets,buildtools:build,qmake:build
|
||||
QT5_CMAKE_BOOL= ENABLE_GUI
|
||||
USE_QT= base
|
||||
USE_GL= gl opengl
|
||||
CMAKE_ON= ENABLE_QT6
|
||||
|
||||
WAFFLE_DESC= Use Waffle library to allow retrace on Wayland, headless etc.
|
||||
WAFFLE_BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols
|
||||
WAFFLE_LIB_DEPENDS= libwaffle-1.so:graphics/waffle
|
||||
WAFFLE_CMAKE_BOOL= ENABLE_WAFFLE
|
||||
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|__linux__|__unix__|' ${WRKSRC}/retrace/glstate_images.cpp
|
||||
|
||||
post-install:
|
||||
${RM} ${STAGEDIR}${DOCSDIR}/LICENSE.txt
|
||||
|
||||
post-install-QT5-on:
|
||||
${INSTALL_DATA} ${FILESDIR}/qapitrace.desktop ${STAGEDIR}${PREFIX}/share/applications
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
TIMESTAMP = 1741604876
|
||||
SHA256 (apitrace-apitrace-12.0_GH0.tar.gz) = d6d3c8eb582f2953dd2ca780ce2750e44208d1b4e73d973e3f72c5326307faf3
|
||||
SIZE (apitrace-apitrace-12.0_GH0.tar.gz) = 2273615
|
||||
TIMESTAMP = 1751019549
|
||||
SHA256 (apitrace-apitrace-13.0_GH0.tar.gz) = 843f34ad3859519644c82628ac6e6405e1a497fc5f227d06591c5dc4a643c00a
|
||||
SIZE (apitrace-apitrace-13.0_GH0.tar.gz) = 2274587
|
||||
SHA256 (microsoft-DirectXMath-e95d848_GH0.tar.gz) = efc8fe6c7cebe8e90d5d29020e2f09e7af41570959ec7ab501b55a7d36aad318
|
||||
SIZE (microsoft-DirectXMath-e95d848_GH0.tar.gz) = 219785
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- CMakeLists.txt.orig 2024-05-30 18:10:10 UTC
|
||||
--- CMakeLists.txt.orig 2025-06-26 12:43:44 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -411,6 +411,10 @@ endif ()
|
||||
@@ -421,6 +421,10 @@ endif ()
|
||||
elseif (ENABLE_STATIC_EXE)
|
||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
||||
endif ()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- lib/trace/CMakeLists.txt.orig 2024-05-30 18:10:10 UTC
|
||||
--- lib/trace/CMakeLists.txt.orig 2025-06-26 12:43:44 UTC
|
||||
+++ lib/trace/CMakeLists.txt
|
||||
@@ -27,6 +27,8 @@ add_convenience_library (common
|
||||
@@ -27,13 +27,15 @@ add_convenience_library (common
|
||||
trace_ostream_zlib.cpp
|
||||
)
|
||||
|
||||
@@ -9,3 +9,11 @@
|
||||
target_link_libraries (common
|
||||
guids
|
||||
highlight
|
||||
os
|
||||
- Snappy::snappy
|
||||
ZLIB::ZLIB
|
||||
PkgConfig::BROTLIDEC
|
||||
+ ${Snappy_LIBRARIES}
|
||||
)
|
||||
|
||||
if (BUILD_TESTING)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- thirdparty/CMakeLists.txt.orig 2024-05-30 18:10:10 UTC
|
||||
--- thirdparty/CMakeLists.txt.orig 2025-06-26 12:43:44 UTC
|
||||
+++ thirdparty/CMakeLists.txt
|
||||
@@ -16,54 +16,69 @@ endfunction ()
|
||||
@@ -16,56 +16,70 @@ endfunction ()
|
||||
include (${ARGV})
|
||||
endfunction ()
|
||||
|
||||
@@ -84,15 +84,21 @@
|
||||
+# include_with_scope (libbacktrace.cmake)
|
||||
+#endif ()
|
||||
|
||||
# We use non-standard C++ flags, so we can't just use GTest's CMakeLists.txt
|
||||
-if (NOT GTEST_FOUND)
|
||||
- message (STATUS "Using bundled GTest")
|
||||
- include_with_scope (gtest.cmake)
|
||||
-if (BUILD_TESTING)
|
||||
- # We use non-standard C++ flags, so we can't just use GTest's CMakeLists.txt
|
||||
- if (NOT GTEST_FOUND)
|
||||
- message (STATUS "Using bundled GTest")
|
||||
- include_with_scope (gtest.cmake)
|
||||
- endif ()
|
||||
-endif ()
|
||||
+#if (NOT GTEST_FOUND)
|
||||
+# message (STATUS "Using bundled GTest")
|
||||
+# include_with_scope (gtest.cmake)
|
||||
+#if (BUILD_TESTING)
|
||||
+# # We use non-standard C++ flags, so we can't just use GTest's CMakeLists.txt
|
||||
+# if (NOT GTEST_FOUND)
|
||||
+# message (STATUS "Using bundled GTest")
|
||||
+# include_with_scope (gtest.cmake)
|
||||
+# endif ()
|
||||
+#endif ()
|
||||
+
|
||||
+find_path(Snappy_INCLUDE_DIR NAMES snappy.h
|
||||
+ PATHS ${Snappy_ROOT_DIR} ${Snappy_ROOT_DIR}/include /usr/local/include)
|
||||
+
|
||||
@@ -105,8 +111,6 @@
|
||||
+if(SNAPPY_FOUND)
|
||||
+ message(STATUS "Found Snappy (include: ${Snappy_INCLUDE_DIR}, library: ${Snappy_LIBRARIES})")
|
||||
+ mark_as_advanced(Snappy_INCLUDE_DIR Snappy_LIBRARIES)
|
||||
+ find_package(Snappy REQUIRED)
|
||||
+ target_link_libraries(Snappy::snappy)
|
||||
+endif()
|
||||
|
||||
if (MSVC)
|
||||
|
||||
@@ -2,8 +2,8 @@ bin/apitrace
|
||||
bin/eglretrace
|
||||
bin/glretrace
|
||||
bin/gltrim
|
||||
%%QT5%%bin/qapitrace
|
||||
%%QT5%%lib/apitrace/scripts/apitrace.PIXExp
|
||||
bin/qapitrace
|
||||
lib/apitrace/scripts/apitrace.PIXExp
|
||||
lib/apitrace/scripts/convert.py
|
||||
lib/apitrace/scripts/highlight.py
|
||||
lib/apitrace/scripts/jsondiff.py
|
||||
@@ -22,4 +22,3 @@ share/applications/qapitrace.desktop
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS.markdown
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.markdown
|
||||
%%PORTDOCS%%%%DOCSDIR%%/USAGE.markdown
|
||||
|
||||
|
||||
Reference in New Issue
Block a user