mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-10 23:30:03 +02:00
mpir:
mpir is an ancient fork of gmp from 2017. It claims to be focused on
speed. It doesn't build with modern compilers due to Modern C issues,
and it fails to build with LTO as well. Unlike gmp, this will never be
fixed.
meshlab can look for either mpir or gmp, but we depended on BOTH and
only gmp got used. mpir was completely extraneous.
levmar:
It would be great if we could use the system levmar, as meshlab
genuinely depends on it. But it hardcodes a vendored copy:
bd88167db9/src/external/levmar.cmake
qhull:
Currently, the build logs this:
-- Could NOT find Qhull: missing: libqhull (found /usr/lib64/cmake/Qhull/QhullConfig.cmake (found version "8.0.2"))
This happens because cmake is broken, probably. But meshlab 2021
ports to libqhull_r, which "should" work fine. Pity we are stuck in
2020 instead.
We really could and should use the system copy but the build system
cannot and does not detect it, which means we shouldn't be depending
on something we cannot use.
Bug: https://bugs.gentoo.org/905859
Bug: https://bugs.gentoo.org/812950
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
57 lines
1.3 KiB
Bash
57 lines
1.3 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
VCG_VERSION="2020.12"
|
|
inherit cmake xdg
|
|
|
|
DESCRIPTION="System for processing and editing unstructured 3D triangular meshes"
|
|
HOMEPAGE="https://www.meshlab.net/"
|
|
SRC_URI="https://github.com/cnr-isti-vclab/meshlab/archive/Meshlab-${PV}.tar.gz -> ${P}.tar.gz
|
|
https://github.com/cnr-isti-vclab/vcglib/archive/${VCG_VERSION}.tar.gz -> vcglib-${VCG_VERSION}.tar.gz"
|
|
S="${WORKDIR}/meshlab-Meshlab-${PV}/src"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="double-precision minimal"
|
|
|
|
# qhull: newer meshlab supports system re-entrant version
|
|
# levmar: build system hardcodes vendored copy
|
|
DEPEND="
|
|
dev-cpp/eigen:3
|
|
dev-cpp/muParser
|
|
dev-libs/gmp:=
|
|
dev-qt/qtcore:5
|
|
dev-qt/qtgui:5
|
|
dev-qt/qtdeclarative:5
|
|
dev-qt/qtnetwork:5
|
|
dev-qt/qtopengl:5
|
|
dev-qt/qtwidgets:5
|
|
dev-qt/qtxml:5
|
|
media-libs/glew:0=
|
|
=media-libs/lib3ds-1*
|
|
media-libs/openctm:=
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-disable-updates.patch"
|
|
"${FILESDIR}/${P}-find-plugins.patch"
|
|
)
|
|
|
|
src_unpack() {
|
|
unpack ${P}.tar.gz
|
|
cd "${S}" || die
|
|
unpack vcglib-2020.12.tar.gz
|
|
mv vcglib-2020.12/* vcglib || die
|
|
}
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DBUILD_MINI=$(usex minimal)
|
|
-DBUILD_WITH_DOUBLE_SCALAR=$(usex double-precision)
|
|
)
|
|
cmake_src_configure
|
|
}
|