summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <sarnex@gentoo.org>2023-11-10 13:23:47 -0500
committerNick Sarnie <sarnex@gentoo.org>2023-11-10 13:24:44 -0500
commit202e24f69e75a8910144ec7f3ee617b3598653dd (patch)
tree0239e6724d22466373c752321b037faf39e813c4 /dev-util/glslang
parentapp-admin/ttyplot: Fix mirror filename (diff)
downloadgentoo-202e24f69e75a8910144ec7f3ee617b3598653dd.tar.gz
gentoo-202e24f69e75a8910144ec7f3ee617b3598653dd.tar.bz2
gentoo-202e24f69e75a8910144ec7f3ee617b3598653dd.zip
dev-util/glslang: Fix cmake targets
Closes: https://bugs.gentoo.org/917110 Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'dev-util/glslang')
-rw-r--r--dev-util/glslang/files/glslang-1.3.238-Fix-cmake-targets.patch26
-rw-r--r--dev-util/glslang/glslang-1.3.268-r2.ebuild (renamed from dev-util/glslang/glslang-1.3.268-r1.ebuild)4
-rw-r--r--dev-util/glslang/glslang-9999.ebuild4
3 files changed, 32 insertions, 2 deletions
diff --git a/dev-util/glslang/files/glslang-1.3.238-Fix-cmake-targets.patch b/dev-util/glslang/files/glslang-1.3.238-Fix-cmake-targets.patch
new file mode 100644
index 000000000000..3afcec329f07
--- /dev/null
+++ b/dev-util/glslang/files/glslang-1.3.238-Fix-cmake-targets.patch
@@ -0,0 +1,26 @@
+diff --git a/SPIRV/CMakeLists.txt b/SPIRV/CMakeLists.txt
+index a80e74ed..8a15f00d 100644
+--- a/SPIRV/CMakeLists.txt
++++ b/SPIRV/CMakeLists.txt
+@@ -106,7 +106,7 @@ if(ENABLE_OPT)
+ target_link_libraries(SPIRV PRIVATE MachineIndependent SPIRV-Tools-opt)
+ target_include_directories(SPIRV PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../External>
+- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/External>)
++ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/>)
+ else()
+ target_link_libraries(SPIRV PRIVATE MachineIndependent)
+ endif()
+diff --git a/StandAlone/CMakeLists.txt b/StandAlone/CMakeLists.txt
+index ad88442c..db2ca5ff 100644
+--- a/StandAlone/CMakeLists.txt
++++ b/StandAlone/CMakeLists.txt
+@@ -69,7 +69,7 @@ endif()
+ target_link_libraries(glslang-standalone ${LIBRARIES})
+ target_include_directories(glslang-standalone PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../External>
+- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/External>)
++ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
+
+ if(ENABLE_OPT)
+ target_include_directories(glslang-standalone
diff --git a/dev-util/glslang/glslang-1.3.268-r1.ebuild b/dev-util/glslang/glslang-1.3.268-r2.ebuild
index 809e9b2f1e97..2ac7f3ffb59c 100644
--- a/dev-util/glslang/glslang-1.3.268-r1.ebuild
+++ b/dev-util/glslang/glslang-1.3.268-r2.ebuild
@@ -31,7 +31,9 @@ BDEPEND="${PYTHON_DEPS}
DEPEND="~dev-util/spirv-tools-${PV}:=[${MULTILIB_USEDEP}]"
-PATCHES=( "${FILESDIR}/${PN}-1.3.236-Install-static-libs.patch" )
+PATCHES=( "${FILESDIR}"/${PN}-1.3.236-Install-static-libs.patch
+ "${FILESDIR}"/${PN}-1.3.238-Fix-cmake-targets.patch
+)
multilib_src_configure() {
local mycmakeargs=(
diff --git a/dev-util/glslang/glslang-9999.ebuild b/dev-util/glslang/glslang-9999.ebuild
index 7ba69afd1dbe..dd1be10214bc 100644
--- a/dev-util/glslang/glslang-9999.ebuild
+++ b/dev-util/glslang/glslang-9999.ebuild
@@ -31,7 +31,9 @@ BDEPEND="${PYTHON_DEPS}
DEPEND="~dev-util/spirv-tools-99999999:=[${MULTILIB_USEDEP}]"
-PATCHES=( "${FILESDIR}/${PN}-1.3.236-Install-static-libs.patch" )
+PATCHES=( "${FILESDIR}"/${PN}-1.3.236-Install-static-libs.patch
+ "${FILESDIR}"/${PN}-1.3.238-Fix-cmake-targets.patch
+)
multilib_src_configure() {
local mycmakeargs=(