diff options
author | Eugene Grosbein <eugen@FreeBSD.org> | 2020-01-24 18:26:04 +0000 |
---|---|---|
committer | Eugene Grosbein <eugen@FreeBSD.org> | 2020-01-24 18:26:04 +0000 |
commit | 06408f8faef4619e264acfe7dd088899074874f5 (patch) | |
tree | 32a5ee3f30e09af951e33947429088703ca59230 /cad/PrusaSlicer/files | |
parent | dcd43ef8e0fb93c723dae35272d6acaae047cee0 (diff) | |
download | ports-06408f8faef4619e264acfe7dd088899074874f5.tar.gz ports-06408f8faef4619e264acfe7dd088899074874f5.zip |
New port: cad/PrusaSlicer
PrusaSlicer takes 3D models (STL, OBJ, AMF) and converts them into G-code
instructions for FFF printers or PNG layers for mSLA 3D printers. It's
compatible with any modern printer based on the RepRap toolchain, including
all those based on the Marlin, Prusa, Sprinter and Repetier firmware.
It also works with Mach3, LinuxCNC and Machinekit controllers.
PR: 243528
Submitted by: Teodor Sigaev <teodor@sigaev.ru>
Notes
Notes:
svn path=/head/; revision=523977
Diffstat (limited to 'cad/PrusaSlicer/files')
4 files changed, 62 insertions, 0 deletions
diff --git a/cad/PrusaSlicer/files/patch-src-avrdude-libavrdude.h b/cad/PrusaSlicer/files/patch-src-avrdude-libavrdude.h new file mode 100644 index 000000000000..ae55c9d212c1 --- /dev/null +++ b/cad/PrusaSlicer/files/patch-src-avrdude-libavrdude.h @@ -0,0 +1,11 @@ +--- src/avrdude/libavrdude.h.orig 2019-12-10 15:09:10 UTC ++++ src/avrdude/libavrdude.h +@@ -950,6 +950,8 @@ int read_config_builtin(); + // Header file for alloca() + #if defined(WIN32NATIVE) + # include <malloc.h> ++#elif defined __FreeBSD__ ++#include <stdlib.h> + #else + # include <alloca.h> + #endif diff --git a/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_App.cpp b/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_App.cpp new file mode 100644 index 000000000000..c297d3299e8a --- /dev/null +++ b/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_App.cpp @@ -0,0 +1,11 @@ +--- src/slic3r/GUI/GUI_App.cpp.orig 2019-12-10 15:09:10 UTC ++++ src/slic3r/GUI/GUI_App.cpp +@@ -100,7 +100,7 @@ static void register_dpi_event() + const auto rect = reinterpret_cast<PRECT>(lParam); + const wxRect wxrect(wxPoint(rect->top, rect->left), wxPoint(rect->bottom, rect->right)); + +- DpiChangedEvent evt(EVT_DPI_CHANGED, dpi, wxrect); ++ DpiChangedEvent evt(psEVT_DPI_CHANGED, dpi, wxrect); + win->GetEventHandler()->AddPendingEvent(evt); + + return true; diff --git a/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_Utils.cpp b/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_Utils.cpp new file mode 100644 index 000000000000..287534442396 --- /dev/null +++ b/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_Utils.cpp @@ -0,0 +1,20 @@ +--- src/slic3r/GUI/GUI_Utils.cpp.orig 2019-12-10 15:09:10 UTC ++++ src/slic3r/GUI/GUI_Utils.cpp +@@ -55,7 +55,7 @@ void on_window_geometry(wxTopLevelWindow *tlw, std::fu + #endif + } + +-wxDEFINE_EVENT(EVT_DPI_CHANGED, DpiChangedEvent); ++wxDEFINE_EVENT(psEVT_DPI_CHANGED, DpiChangedEvent); + + #ifdef _WIN32 + template<class F> typename F::FN winapi_get_function(const wchar_t *dll, const char *fn_name) { +@@ -106,7 +106,7 @@ int get_dpi_for_window(wxWindow *window) + if (hdc == NULL) { return DPI_DEFAULT; } + return GetDeviceCaps(hdc, LOGPIXELSX); + } +-#elif defined __linux__ ++#elif defined(__linux__) || defined(__FreeBSD__) + // TODO + return DPI_DEFAULT; + #elif defined __APPLE__ diff --git a/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_Utils.hpp b/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_Utils.hpp new file mode 100644 index 000000000000..ee9dc1084b5d --- /dev/null +++ b/cad/PrusaSlicer/files/patch-src-slic3r-GUI-GUI_Utils.hpp @@ -0,0 +1,20 @@ +--- src/slic3r/GUI/GUI_Utils.hpp.orig 2019-12-10 15:09:10 UTC ++++ src/slic3r/GUI/GUI_Utils.hpp +@@ -50,7 +50,7 @@ struct DpiChangedEvent : public wxEvent { + } + }; + +-wxDECLARE_EVENT(EVT_DPI_CHANGED, DpiChangedEvent); ++wxDECLARE_EVENT(psEVT_DPI_CHANGED, DpiChangedEvent); + + template<class P> class DPIAware : public P + { +@@ -75,7 +75,7 @@ template<class P> class DPIAware : public P (public) + + // recalc_font(); + +- this->Bind(EVT_DPI_CHANGED, [this](const DpiChangedEvent &evt) { ++ this->Bind(psEVT_DPI_CHANGED, [this](const DpiChangedEvent &evt) { + m_scale_factor = (float)evt.dpi / (float)DPI_DEFAULT; + + m_new_font_point_size = get_default_font_for_dpi(evt.dpi).GetPointSize(); |