diff --git a/srcpkgs/PrusaSlicer/patches/cmake-is-very-good.patch b/srcpkgs/PrusaSlicer/patches/cmake-is-very-good.patch new file mode 100644 index 00000000000..f2ca8e0c1f7 --- /dev/null +++ b/srcpkgs/PrusaSlicer/patches/cmake-is-very-good.patch @@ -0,0 +1,25 @@ +get_prerequisites will go straight to run ldd on the libraries. + +get_prerequisites supports objdump, but only on Windows +--- a/cmake/modules/FindOpenVDB.cmake ++++ b/cmake/modules/FindOpenVDB.cmake +@@ -381,19 +381,6 @@ set(_EXCLUDE_SYSTEM_PREREQUISITES 1) + set(_RECURSE_PREREQUISITES 0) + set(_OPENVDB_PREREQUISITE_LIST) + +-if(NOT OPENVDB_USE_STATIC_LIBS) +-get_prerequisites(${OpenVDB_openvdb_LIBRARY} +- _OPENVDB_PREREQUISITE_LIST +- ${_EXCLUDE_SYSTEM_PREREQUISITES} +- ${_RECURSE_PREREQUISITES} +- "" +- "${SYSTEM_LIBRARY_PATHS}" +-) +-endif() +- +-unset(_EXCLUDE_SYSTEM_PREREQUISITES) +-unset(_RECURSE_PREREQUISITES) +- + # As the way we resolve optional libraries relies on library file names, use + # the configuration options from the main CMakeLists.txt to allow users + # to manually identify the requirements of OpenVDB builds if they know them. diff --git a/srcpkgs/PrusaSlicer/template b/srcpkgs/PrusaSlicer/template index 29f1f641a48..b8dba603326 100644 --- a/srcpkgs/PrusaSlicer/template +++ b/srcpkgs/PrusaSlicer/template @@ -4,20 +4,20 @@ version=2.4.2 revision=2 wrksrc="PrusaSlicer-version_${version}" build_style=cmake -build_helper="qemu" -configure_args="-DSLIC3R_WX_STABLE=1 -DSLIC3R_FHS=1 -DSLIC3R_GTK=3" +build_helper="qemu cmake-wxWidgets-gtk3" +configure_args="-DSLIC3R_WX_STABLE=1 -DSLIC3R_FHS=1 -DSLIC3R_GTK=3 + -DSLIC3R_ENC_CHECK=0 -DUSE_BLOSC=ON -DUSE_EXR=ON" hostmakedepends="pkg-config" makedepends=" boost-devel cereal cgal-devel dbus-devel eigen glew-devel glu-devel gmpxx-devel gtest-devel gtk+3-devel libcurl-devel libglib-devel libpng-devel nlopt-devel openvdb-devel tbb-devel wxWidgets-devel - wxWidgets-gtk3-devel" + c-blosc-devel ilmbase-devel libopenexr-devel wxWidgets-gtk3-devel" short_desc="G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)" maintainer="Jasper Chan " license="GPL-3.0-or-later" homepage="https://www.prusa3d.com/prusaslicer/" distfiles="https://github.com/prusa3d/Prusaslicer/archive/version_${version}.tar.gz" checksum=ac3a77212260e8d0baf9df027c29e0ae965bc77f371e59fd27b8fe103ebb1f23 -nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/25230/steps/shell_3/logs/stdio" post_extract() { # Mark tests that fail on certain targets