File: use_system_libs.patch

package info (click to toggle)
supertuxkart 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 845,948 kB
  • sloc: cpp: 416,684; ansic: 320,075; xml: 109,671; sh: 2,786; asm: 1,631; python: 1,162; java: 783; objc: 452; makefile: 386; javascript: 23; awk: 20
file content (38 lines) | stat: -rw-r--r-- 1,237 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Build and link against system libraries
Forwarded: not-needed
Author: Vincent Cheng <vcheng@debian.org>
Last-Update: 2025-10-25

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -274,7 +274,10 @@
             message(FATAL_ERROR "Please install shaderc from your distribution or disable vulkan support with -DNO_SHADERC=on")
         endif()
     else()
-        include_directories("${SHADERC_INCLUDEDIR}")
+        pkg_check_modules(SPIRV SPIRV-Tools spirv)
+        include_directories("${SHADERC_INCLUDEDIR} ${SPIRV_INCLUDE_DIRS}")
+        pkg_check_modules(GLSLANG glslang)
+        include_directories("${GLSLANG_INCLUDE_DIRS}")
         MESSAGE(STATUS "Use system shaderc: ${SHADERC_LIBRARY}")
     endif()
     if (NO_SHADERC)
@@ -791,12 +794,18 @@
         ${SQUISH_LIBRARY}
         ${JPEG_LIBRARIES}
         ${OGGVORBIS_LIBRARIES}
+        X11
+        z
+        png
+        jpeg
         ${FREETYPE_LIBRARIES}
         ${HARFBUZZ_LIBRARY}
         ${SHEENBIDI_LIBRARY}
         graphics_utils
         graphics_engine
         ${SDL2_LIBRARY}
+        ${GLSLANG_LIBRARIES}
+        ${SPIRV_LIBRARIES}
         tinygettext)
     if (NOT NO_SHADERC)
         target_link_libraries(supertuxkart ${SHADERC_LIBRARY})