Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_CMakeLists.txt
46591 views
1
--- src/slic3r/CMakeLists.txt.orig 2026-03-22 17:56:38 UTC
2
+++ src/slic3r/CMakeLists.txt
3
@@ -760,6 +760,15 @@ elseif (APPLE)
4
else()
5
target_link_libraries(libslic3r_gui ${DISKARBITRATION_LIBRARY} "-framework Security")
6
endif()
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
@@ -770,6 +779,8 @@ if (SPNAV_LIB)
20
21
if (SPNAV_LIB)
22
target_link_libraries(libslic3r_gui ${SPNAV_LIB})
23
+ find_package(X11 REQUIRED)
24
+ target_link_libraries(libslic3r_gui ${SPNAV_LIB} ${X11_LIBRARIES})
25
endif()
26
27
if (SLIC3R_STATIC AND NOT SLIC3R_STATIC_EXCLUDE_CURL AND UNIX AND NOT APPLE)
28
@@ -787,6 +798,8 @@ if (UNIX AND NOT APPLE)
29
find_package(PkgConfig REQUIRED)
30
find_package(GTK${SLIC3R_GTK} REQUIRED)
31
pkg_check_modules(LIBSECRET REQUIRED libsecret-1)
32
+ pkg_check_modules(webkit2gtk REQUIRED webkit2gtk-4.1)
33
+ target_link_libraries (libslic3r_gui ${X11_LIBRARIES} ${webkit2gtk_LIBRARIES})
34
if (FLATPAK)
35
# I don't know why this is needed, but for whatever reason slic3r isn't
36
# linking to X11 and webkit2gtk. force it.
37
38