Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_CMakeLists.txt
34610 views
1
--- src/slic3r/CMakeLists.txt.orig 2026-03-05 08:59:10 UTC
2
+++ src/slic3r/CMakeLists.txt
3
@@ -665,6 +665,15 @@ elseif (APPLE)
4
)
5
elseif (APPLE)
6
target_link_libraries(libslic3r_gui ${DISKARBITRATION_LIBRARY} "-framework Security")
7
+elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
8
+ find_package(PkgConfig REQUIRED)
9
+ pkg_check_modules(DBUS REQUIRED dbus-1)
10
+ find_package(CURL REQUIRED)
11
+ target_include_directories(libslic3r_gui SYSTEM PRIVATE ${DBUS_INCLUDE_DIRS})
12
+ target_link_libraries(libslic3r_gui
13
+ ${DBUS_LIBRARIES}
14
+ ${CURL_LIBRARIES}
15
+ )
16
endif()
17
18
if (SLIC3R_STATIC)
19
@@ -674,7 +683,8 @@ if (SPNAV_LIB)
20
endif()
21
22
if (SPNAV_LIB)
23
- target_link_libraries(libslic3r_gui ${SPNAV_LIB})
24
+ find_package(X11 REQUIRED)
25
+ target_link_libraries(libslic3r_gui ${SPNAV_LIB} ${X11_LIBRARIES})
26
endif()
27
28
if (SLIC3R_STATIC AND NOT SLIC3R_STATIC_EXCLUDE_CURL AND UNIX AND NOT APPLE)
29
@@ -692,6 +702,8 @@ if (UNIX AND NOT APPLE)
30
find_package(PkgConfig REQUIRED)
31
find_package(GTK${SLIC3R_GTK} REQUIRED)
32
pkg_check_modules(LIBSECRET REQUIRED libsecret-1)
33
+ pkg_check_modules(webkit2gtk REQUIRED webkit2gtk-4.1)
34
+ target_link_libraries (libslic3r_gui ${X11_LIBRARIES} ${webkit2gtk_LIBRARIES})
35
if (FLATPAK)
36
# I don't know why this is needed, but for whatever reason slic3r isn't
37
# linking to X11 and webkit2gtk. force it.
38
39