aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2026-03-08 08:10:21 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2026-03-08 08:12:59 +0000
commit59d6bafdeb44a898595e725f303508b30d259081 (patch)
tree72413f23bc6f3d63ae1f59a01c72281a1973cbdb
parent04c14fd436dc4bb179d3c9bfa5430ca92771f017 (diff)
cad/OrcaSlicer: newport
OrcaSlicer (also known as Orca Slicer) is a fast, free, open-source 3D printing slicer created by SoftFever
-rw-r--r--cad/Makefile1
-rw-r--r--cad/OrcaSlicer/Makefile59
2 files changed, 60 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index f9be96e73d93..743803b6f436 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -90,6 +90,7 @@
SUBDIR += netgen-lvs
SUBDIR += ngspice_rework
SUBDIR += nvc
+ SUBDIR += OrcaSlicer
SUBDIR += opencascade
SUBDIR += opencascade740
SUBDIR += openctm
diff --git a/cad/OrcaSlicer/Makefile b/cad/OrcaSlicer/Makefile
new file mode 100644
index 000000000000..8742c8616688
--- /dev/null
+++ b/cad/OrcaSlicer/Makefile
@@ -0,0 +1,59 @@
+PORTNAME= OrcaSlicer
+DISTVERSIONPREFIX=v
+DISTVERSION= 2.3.1
+CATEGORIES= cad
+
+MAINTAINER= bapt@FreeBSD.org
+COMMENT= Slicing Software for Precision 3D Prints
+WWW= https://www.orcaslicer.com
+
+LICENSE= AGPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= cereal>=0:devel/cereal \
+ cgal>=0:math/cgal
+
+LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
+ libcurl.so:ftp/curl \
+ libdbus-1.so:devel/dbus \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2 \
+ libglfw.so:graphics/glfw \
+ libnlopt.so:math/nlopt \
+ libnoise.so:audio/libnoise \
+ libopencv_core.so:graphics/opencv \
+ libopenvdb.so:misc/openvdb \
+ libpango-1.0.so:x11-toolkits/pango \
+ libpng16.so:graphics/png \
+ libsecret-1.so:security/libsecret \
+ libspnav.so:misc/libspnav \
+ libtbb.so:devel/onetbb \
+ libTKernel.so:cad/opencascade \
+ libwebkit2gtk-4.1.so:www/webkit2-gtk@41 \
+ libwx_baseu-3.2.so:x11-toolkits/wxgtk32
+
+USES= cmake desktop-file-utils gl gnome gstreamer jpeg \
+ localbase:ldflags pkgconfig ssl xorg
+
+USE_GITHUB= yes
+GH_ACCOUNT= OrcaSlicer
+
+USE_GL= gl glew
+USE_GNOME= gtk30
+USE_XORG= x11
+
+CMAKE_ARGS= -DSLIC3R_FHS=1 \
+ -DSLIC3R_GTK=3 \
+ -DORCA_TOOLS=1 \
+ -DBBL_RELEASE_TO_PUBLIC=1 \
+ -DBBL_INTERNAL_TESTING=0
+
+CXXFLAGS+= -DwxDEBUG_LEVEL=0
+
+post-patch:
+ ${CP} ${FILESDIR}/hid.c ${WRKSRC}/deps_src/hidapi/linux/hid.c
+ @${REINPLACE_CMD} -e '/Boost/s| system | |' \
+ ${WRKSRC}/CMakeLists.txt
+
+.include <bsd.port.mk>
+