Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/PrusaSlicer/files/patch-src_slic3r_CMakeLists.txt
16461 views
1
--- src/slic3r/CMakeLists.txt.orig 2025-04-10 11:26:51 UTC
2
+++ src/slic3r/CMakeLists.txt
3
@@ -396,11 +396,12 @@ set(SLIC3R_GUI_SOURCES
4
Utils/ServiceConfig.cpp
5
)
6
7
-find_package(NanoSVG REQUIRED)
8
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
9
+ find_package(NanoSVG REQUIRED)
10
+endif()
11
+if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
12
find_package(OpenSSL REQUIRED)
13
endif()
14
-
15
if (APPLE)
16
list(APPEND SLIC3R_GUI_SOURCES
17
Utils/RetinaHelperImpl.mm
18
@@ -437,14 +438,13 @@ encoding_check(libslic3r_gui)
19
endforeach()
20
21
encoding_check(libslic3r_gui)
22
-
23
+if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
24
target_link_libraries(
25
libslic3r_gui
26
PUBLIC
27
libslic3r
28
slic3r-arrange-wrapper
29
avrdude
30
- libcereal
31
imgui
32
libvgcode
33
GLEW::GLEW
34
@@ -458,10 +458,29 @@ target_link_libraries(
35
fastfloat
36
boost_headeronly
37
)
38
+elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
39
+target_link_libraries(
40
+ libslic3r_gui
41
+ PUBLIC
42
+ libslic3r
43
+ slic3r-arrange-wrapper
44
+ avrdude
45
+ imgui
46
+ libvgcode
47
+ GLEW::GLEW
48
+ OpenGL::GL
49
+ hidapi
50
+ libcurl
51
+ ${wxWidgets_LIBRARIES}
52
+ stb_dxt
53
+ fastfloat
54
+ boost_headeronly
55
+)
56
+endif()
57
58
if (MSVC)
59
target_link_libraries(libslic3r_gui PUBLIC Setupapi.lib)
60
-elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
61
+elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
62
target_link_libraries(libslic3r_gui PUBLIC
63
${DBus1_LIBRARIES}
64
OpenSSL::SSL
65
@@ -488,7 +507,7 @@ if (UNIX AND NOT APPLE)
66
find_package(GTK${SLIC3R_GTK} REQUIRED)
67
find_package(PkgConfig REQUIRED)
68
69
- pkg_search_module(WEBKIT2GTK REQUIRED IMPORTED_TARGET webkit2gtk-4.0 webkit2gtk-4.1)
70
+ pkg_search_module(WEBKIT2GTK REQUIRED IMPORTED_TARGET webkit2gtk-4.1)
71
target_link_libraries(libslic3r_gui PUBLIC ${GTK${SLIC3R_GTK}_LIBRARIES} fontconfig PkgConfig::WEBKIT2GTK)
72
endif ()
73
74
75