commit:     23c799f0abc279ba8fca2f2b4edbc7d9fdfbbd63
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 15 14:24:44 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Dec 15 14:24:55 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23c799f0

media-gfx/prusaslicer: updated live ebuild

Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 .../prusaslicer/files/prusaslicer-2.9.0-fpic.patch | 57 ++++++++++++++++++++++
 media-gfx/prusaslicer/prusaslicer-9999.ebuild      |  5 +-
 2 files changed, 58 insertions(+), 4 deletions(-)

diff --git a/media-gfx/prusaslicer/files/prusaslicer-2.9.0-fpic.patch 
b/media-gfx/prusaslicer/files/prusaslicer-2.9.0-fpic.patch
new file mode 100644
index 000000000000..ea6e297e96db
--- /dev/null
+++ b/media-gfx/prusaslicer/files/prusaslicer-2.9.0-fpic.patch
@@ -0,0 +1,57 @@
+--- a/bundled_deps/admesh/CMakeLists.txt
++++ b/bundled_deps/admesh/CMakeLists.txt
+@@ -14,3 +14,4 @@ add_library(admesh STATIC
+ target_include_directories(admesh PUBLIC .)
+ target_link_libraries(admesh PRIVATE boost_headeronly localesutils)
+ target_link_libraries(admesh PUBLIC Eigen3::Eigen)
++set_target_properties(admesh PROPERTIES POSITION_INDEPENDENT_CODE ON)
+--- a/bundled_deps/glu-libtess/CMakeLists.txt
++++ b/bundled_deps/glu-libtess/CMakeLists.txt
+@@ -34,3 +34,4 @@ if(UNIX)
+ endif(UNIX)
+ 
+ target_include_directories(glu-libtess PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} 
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
++set_target_properties(glu-libtess PROPERTIES POSITION_INDEPENDENT_CODE ON)
+--- a/bundled_deps/miniz/CMakeLists.txt
++++ b/bundled_deps/miniz/CMakeLists.txt
+@@ -7,6 +7,7 @@ add_library(miniz_static STATIC
+     miniz.c
+     miniz.h
+ )
++set_target_properties(miniz_static PROPERTIES POSITION_INDEPENDENT_CODE ON)
+ 
+ if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
+     target_compile_definitions(miniz_static PRIVATE _GNU_SOURCE)
+--- a/bundled_deps/CMakeLists.txt
++++ b/bundled_deps/CMakeLists.txt
+@@ -33,6 +33,7 @@ add_library(localesutils STATIC
+ )
+ target_include_directories(localesutils PUBLIC localesutils)
+ target_link_libraries(localesutils PRIVATE fastfloat)
++set_target_properties(localesutils PROPERTIES POSITION_INDEPENDENT_CODE ON)
+ 
+ add_library(ankerl INTERFACE)
+ target_include_directories(ankerl INTERFACE ankerl)
+--- a/src/libslic3r/CMakeLists.txt
++++ b/src/libslic3r/CMakeLists.txt
+@@ -532,6 +532,7 @@ add_library(libslic3r_cgal STATIC
+     TryCatchSignal.hpp TryCatchSignal.cpp
+     Triangulation.hpp Triangulation.cpp
+ )
++set_target_properties(libslic3r_cgal PROPERTIES POSITION_INDEPENDENT_CODE ON)
+ target_include_directories(libslic3r_cgal PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
+ target_include_directories(libslic3r_cgal PUBLIC 
${CMAKE_CURRENT_SOURCE_DIR}/..)
+ 
+@@ -622,3 +623,5 @@ endif ()
+ if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
+     add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE)
+ endif ()
++
++set_target_properties(libslic3r PROPERTIES POSITION_INDEPENDENT_CODE ON)
+--- a/src/clipper/CMakeLists.txt
++++ b/src/clipper/CMakeLists.txt
+@@ -12,3 +12,4 @@ add_library(clipper STATIC
+ target_link_libraries(clipper PRIVATE TBB::tbb TBB::tbbmalloc int128)
+ target_link_libraries(clipper PUBLIC Eigen3::Eigen)
+ target_include_directories(clipper PUBLIC .)
++set_target_properties(clipper PROPERTIES POSITION_INDEPENDENT_CODE ON)

diff --git a/media-gfx/prusaslicer/prusaslicer-9999.ebuild 
b/media-gfx/prusaslicer/prusaslicer-9999.ebuild
index 66c1089c97e8..1832088d5630 100644
--- a/media-gfx/prusaslicer/prusaslicer-9999.ebuild
+++ b/media-gfx/prusaslicer/prusaslicer-9999.ebuild
@@ -64,10 +64,10 @@ PATCHES=(
        "${FILESDIR}/${PN}-2.6.0-dont-force-link-to-wayland-and-x11.patch"
        "${FILESDIR}/${PN}-2.8.0-missing-includes.patch"
        "${FILESDIR}/${PN}-2.8.0-wxwidgets-3.2.4.patch"
-       "${FILESDIR}/${PN}-2.8.1-fixed-linking.patch"
        "${FILESDIR}/${PN}-2.8.1-cgal-6.0.patch"
        "${FILESDIR}/${PN}-2.8.1-fstream.patch"
        "${FILESDIR}/${PN}-2.8.1-fix-libsoup-double-linking.patch"
+       "${FILESDIR}/${PN}-2.9.0-fpic.patch"
 )
 
 src_prepare() {
@@ -80,9 +80,6 @@ src_prepare() {
        sed -i -e 's/find_package(OpenCASCADE 7.6.[0-9] 
REQUIRED)/find_package(OpenCASCADE REQUIRED)/g' \
                src/occt_wrapper/CMakeLists.txt || die
 
-       # remove broken cmake find file: 
https://github.com/prusa3d/PrusaSlicer/issues/13608
-       rm cmake/modules/FindEigen3.cmake || die
-
        cmake_src_prepare
 }
 

Reply via email to