tkurbad-overlay/media-gfx/orcaslicer/orcaslicer-2.0.0.ebuild

105 lines
2.0 KiB
Bash
Raw Normal View History

2024-02-22 10:06:25 +01:00
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
WX_GTK_VER="3.2-gtk3"
MY_PN="OrcaSlicer"
2024-02-22 10:06:25 +01:00
inherit cmake wxwidgets xdg flag-o-matic
DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
HOMEPAGE="https://github.com/SoftFever/OrcaSlicer/tree/main"
2024-02-22 10:06:25 +01:00
SRC_URI="
https://github.com/SoftFever/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
2024-02-22 10:06:25 +01:00
"
LICENSE="AGPL-3 Boost-1.0 GPL-2 LGPL-3 MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
2024-07-02 11:21:31 +02:00
IUSE="+doc test"
2024-02-22 10:06:25 +01:00
RESTRICT="test"
2024-07-02 11:21:31 +02:00
DOCS="README.md LICENSE.txt SECURITY.md"
2024-02-22 10:06:25 +01:00
# No dep on sci-libs/libigl, in-tree version cannot build
# static library currently. Using bundled one.
RDEPEND="
dev-cpp/eigen:3
dev-cpp/tbb:=
dev-libs/boost:=[nls]
dev-libs/cereal
dev-libs/expat
dev-libs/glib:2
dev-libs/gmp:=
dev-libs/mpfr:=
dev-libs/imath:=
>=media-gfx/openvdb-8.2:=
net-misc/curl[adns]
media-libs/glew:0=
>=media-libs/glfw-3
2024-02-22 10:06:25 +01:00
media-libs/libpng:0=
media-libs/qhull:=
sci-libs/nlopt
sci-libs/opencascade:=
>=sci-mathematics/cgal-5.0:=
sys-apps/dbus
sys-libs/zlib:=
virtual/glu
virtual/opengl
x11-libs/gtk+:3
x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
"
DEPEND="${RDEPEND}
media-libs/qhull[static-libs]
"
PATCHES=(
"${FILESDIR}/${P}-boost.patch"
"${FILESDIR}/${P}-additional-imports-fixes.patch"
2024-07-02 11:21:31 +02:00
"${FILESDIR}/${P}-opencascade-7.8.0.patch"
"${FILESDIR}/${P}-cmake.patch"
"${FILESDIR}/${P}-wxgtk3-wayland-fix.patch"
2024-02-22 10:06:25 +01:00
)
S="${WORKDIR}/${MY_PN}-${PV}"
src_configure() {
CMAKE_BUILD_TYPE="Release"
append-flags -fno-strict-aliasing
setup-wxwidgets
local mycmakeargs=(
-DOPENVDB_FIND_MODULE_PATH="/usr/$(get_libdir)/cmake/OpenVDB"
-DSLIC3R_BUILD_TESTS=$(usex test)
-DSLIC3R_FHS=ON
-DSLIC3R_GTK=3
-DSLIC3R_GUI=ON
-DSLIC3R_PCH=OFF
-DSLIC3R_STATIC=OFF
-DORCA_TOOLS=ON
2024-02-22 10:06:25 +01:00
-Wno-dev
)
# -DSLIC3R_WX_STABLE=ON
2024-02-22 10:06:25 +01:00
cmake_src_configure
}
2024-07-02 11:21:31 +02:00
src_compile() {
# Limit build to -j1
cmake_src_compile -j1
}
2024-02-22 10:06:25 +01:00
src_install() {
cmake_src_install
2024-07-02 11:21:31 +02:00
rm "${D}/usr/LICENSE.txt"
2024-02-22 10:06:25 +01:00
2024-07-02 11:21:31 +02:00
if use doc; then
docinto doc
dodoc -r "${S}/doc"
fi
2024-02-22 10:06:25 +01:00
}