git: 8bafae94745e - main - multimedia/kodi: Fix build with swig 4.3.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Mar 2025 04:03:49 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8bafae94745e2412c7434818c6fc90e50e3a6cb4
commit 8bafae94745e2412c7434818c6fc90e50e3a6cb4
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-03-19 03:47:04 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-03-19 03:47:04 +0000
multimedia/kodi: Fix build with swig 4.3.0+
Approved by: portmgr (blanket)
Obtained from: https://salsa.debian.org/multimedia-team/kodi-media-center/kodi/-/commit/19ae08599ea754261c8bd3ff1dbc75893d69e6cd
---
multimedia/kodi/files/patch-swig | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/multimedia/kodi/files/patch-swig b/multimedia/kodi/files/patch-swig
new file mode 100644
index 000000000000..702f0db601f6
--- /dev/null
+++ b/multimedia/kodi/files/patch-swig
@@ -0,0 +1,13 @@
+Obtained from: https://salsa.debian.org/multimedia-team/kodi-media-center/kodi/-/commit/19ae08599ea754261c8bd3ff1dbc75893d69e6cd
+
+--- xbmc/interfaces/swig/CMakeLists.txt.orig 2024-04-06 02:29:22 UTC
++++ xbmc/interfaces/swig/CMakeLists.txt
+@@ -22,7 +22,7 @@ function(generate_file file)
+
+ add_custom_command(OUTPUT ${CPP_FILE}
+ COMMAND ${SWIG_EXECUTABLE}
+- ARGS -w401 -c++ -o ${file}.xml -xml -I${CMAKE_SOURCE_DIR}/xbmc -xmllang python ${CMAKE_CURRENT_SOURCE_DIR}/../swig/${file}
++ ARGS -w401 -c++ -o ${file}.xml -xml -I${CMAKE_SOURCE_DIR}/xbmc ${CMAKE_CURRENT_SOURCE_DIR}/../swig/${file}
+ COMMAND ${Java_JAVA_EXECUTABLE}
+ ARGS ${JAVA_OPEN_OPTS} -cp "${classpath}" groovy.ui.GroovyMain ${CMAKE_SOURCE_DIR}/tools/codegenerator/Generator.groovy ${file}.xml ${CMAKE_CURRENT_SOURCE_DIR}/../python/PythonSwig.cpp.template ${file}.cpp > ${devnull}
+ ${CLANG_FORMAT_COMMAND}