summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Waibel <waebbl-gentoo@posteo.net>2021-05-06 23:37:40 +0200
committerSam James <sam@gentoo.org>2021-05-06 21:42:42 +0000
commitd8e72a84aebb1ac6094257935e5c5a589da1870c (patch)
tree4279c49220c3a3a3228a386e1e0c811a152c58e8 /media-gfx/freecad
parentmedia-gfx/blender: Stabilize 2.83.12 amd64, #783252 (diff)
downloadgentoo-d8e72a84aebb1ac6094257935e5c5a589da1870c.tar.gz
gentoo-d8e72a84aebb1ac6094257935e5c5a589da1870c.tar.bz2
gentoo-d8e72a84aebb1ac6094257935e5c5a589da1870c.zip
media-gfx/freecad: find opencascade-7.5
Correctly find sci-libs/opencascade-7.5.1 header and library locations. Closes: https://bugs.gentoo.org/788274 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/20708 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/freecad')
-rw-r--r--media-gfx/freecad/freecad-0.19.2.ebuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/media-gfx/freecad/freecad-0.19.2.ebuild b/media-gfx/freecad/freecad-0.19.2.ebuild
index f2d55fb7b13a..f7125e38c85b 100644
--- a/media-gfx/freecad/freecad-0.19.2.ebuild
+++ b/media-gfx/freecad/freecad-0.19.2.ebuild
@@ -222,11 +222,22 @@ src_configure() {
# sub-packages will still be installed inside /usr/lib64/freecad
-DINSTALL_TO_SITEPACKAGES=ON
- -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade
- -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)
-DOCCT_CMAKE_FALLBACK=ON # don't use occt-config which isn't included in opencascade for Gentoo
)
+ if has_version ">=sci-libs/opencascade-7.5"; then
+ mycmakeargs+=(
+ -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade-7.5.1
+ -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade-7.5.1
+ )
+ else
+ # <occ-7.5 uses different layout
+ mycmakeargs+=(
+ -DOCC_INCLUDEDIR="${CASROOT}"/include/opencascade
+ -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)
+ )
+ fi
+
if use debug; then
mycmakeargs+=(
-DBUILD_SANDBOX=ON