star-build

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

commit 46ef7e7f56577e4839710afc90e335a006a18dd6
parent 4800a0e20d6e193a33c7a410256c078c6cae3ba3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  7 May 2025 14:59:28 +0200

Add build script for Star-ScatteringFunctions 0.10

Diffstat:
Asrc/rad-libs/star-sf_0.10.sh | 47+++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+), 0 deletions(-)

diff --git a/src/rad-libs/star-sf_0.10.sh b/src/rad-libs/star-sf_0.10.sh @@ -0,0 +1,47 @@ +#!/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" +. "sci-libs/star-sp_0.15.sh" +. "sys-libs/rsys_0.15.sh" + +# shellcheck disable=SC2310 +if use_simd; then + "sci-libs/rsimd_0.5.sh" +fi + +name="star-sf" +tag="0.10" + +if [ -n "${STAR_SF_SH}" ]; then + check_conflict "${name}" "${tag}" "${STAR_SF_SH}" +else + export STAR_SF_SH="${tag}" + + url="$\(REPO\)/star-sf.git" + dep="rsys star-sp" + opt="BUILD_TYPE=$\(BUILD_TYPE\) LIB_TYPE=$\(LIB_TYPE\) SIMD_WIDTH=${SIMD_WIDTH}" + + # shellcheck disable=SC2310 + if use_simd; then + dep="${dep} rsimd" + fi + + git_repo +fi