star-build

Automation tool for project installation
git clone git://git.meso-star.fr/star-build.git
Log | Files | Refs | README | LICENSE

commit 65b70e378f64fbd8e28e1464021d42c300741b4d
parent c9357323c68862046be6f252821c9399b2866510
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 30 May 2025 12:04:03 +0200

Add the build script for Embree 4.4

Diffstat:
Asrc/sci-libs/embree_4.4.0.sh | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+), 0 deletions(-)

diff --git a/src/sci-libs/embree_4.4.0.sh b/src/sci-libs/embree_4.4.0.sh @@ -0,0 +1,52 @@ +#!/bin/sh + +# Copyright (C) 2023-2025 |Méso|Star> (contact@meso-star.com) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +set -e + +. "misc/build.sh" + +if [ -z "${EMBREE_BINDIST}" ]; then + EMBREE_BINDIST="$(MAKE="${MAKE}" showvar EMBREE_BINDIST)" +fi + + +embree_build_from_src=0 +if [ -z "${EMBREE_BINDIST}" ] || [ "${EMBREE_BINDIST}" -eq 0 ]; then + . "sys-libs/tbb_2022.2.0-rc1.sh" + embree_build_from_src=1 +fi + +name="embree4" +version="4.4.0" + +if [ -n "${EMBREE_SH}" ]; then + check_conflict "${name}" "${version}" "${EMBREE_SH}" +else + export EMBREE_SH="${version}" + + # Install from sources + if [ "${embree_build_from_src}" -eq 1 ]; then + sed -e "s/@TAG@/v${version}/" \ + -e "s/@VERSION/${version}/" \ + "sci-libs/embree4.mk.in" + + # Install from precompiled binaries + else + url="$\(REPO_BIN\)/embree_${version}_gnu_linux64.tgz" + bin_spkg + fi +fi