diff --git a/cad/PrusaSlicer/Makefile b/cad/PrusaSlicer/Makefile index d3e015812ddf..14c5daef8b89 100644 --- a/cad/PrusaSlicer/Makefile +++ b/cad/PrusaSlicer/Makefile @@ -1,41 +1,39 @@ PORTNAME= PrusaSlicer DISTVERSIONPREFIX=version_ DISTVERSION= 2.3.3 PORTREVISION= 4 CATEGORIES= cad MAINTAINER= teodorsigaev@gmail.com COMMENT= Slicing application for 3D printers LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libtbb.so:devel/onetbb \ libboost_log.so:devel/boost-libs \ libImath.so:math/Imath \ libnlopt.so:math/nlopt \ libcurl.so:ftp/curl \ libexpat.so:textproc/expat2 \ libopenvdb.so:misc/openvdb \ libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libdbus-1.so:devel/dbus \ libpng.so:graphics/png BUILD_DEPENDS= cereal>=1.3.0.10:devel/cereal \ cgal>=5.0.2:math/cgal -BROKEN= Fails to compile: implicit instantiation of undefined template 'std::basic_ifstream' - USES= cmake cpe desktop-file-utils eigen:3 gettext gl iconv pkgconfig CPE_VENDOR= prusa3d CMAKE_ARGS+= -DwxWidgets_CONFIG_EXECUTABLE="${WX_CONFIG}" \ -DSLIC3R_GTK=3 \ -DSLIC3R_FHS=1 USE_GITHUB= yes GH_ACCOUNT= prusa3d USE_WX= 3.1 USE_GL= gl glu glew PORTDATA= * .include diff --git a/cad/PrusaSlicer/files/patch-tests_fff_print_test_data.cpp b/cad/PrusaSlicer/files/patch-tests_fff_print_test_data.cpp new file mode 100644 index 000000000000..ee3f0c0fccd4 --- /dev/null +++ b/cad/PrusaSlicer/files/patch-tests_fff_print_test_data.cpp @@ -0,0 +1,28 @@ +commit 926ae0471800abd1e5335e251a5934570eb8f6ff +Author: Vojtech Bubnik +Date: 2022-04-25 11:32:03 +0200 + + Follow-up to 408e56f0390f20aaf793e0aa0c70c4d9544401d4 + Fixing compilation of tests on latest GCC/boost + +diff --git tests/fff_print/test_data.cpp tests/fff_print/test_data.cpp +index 32e31c264..f7077007d 100644 +--- tests/fff_print/test_data.cpp ++++ tests/fff_print/test_data.cpp +@@ -11,6 +11,7 @@ + #include + + #include ++#include + #include + #include + +@@ -286,7 +287,7 @@ std::string gcode(Print & print) + print.set_status_silent(); + print.process(); + print.export_gcode(temp.string(), nullptr, nullptr); +- std::ifstream t(temp.string()); ++ boost::nowide::ifstream t(temp.string()); + std::string str((std::istreambuf_iterator(t)), std::istreambuf_iterator()); + boost::nowide::remove(temp.string().c_str()); + return str;