commit 7acd69506403c1df993c53218fb94913059cbe82 parent 7026f47440c54611c172ef2910f8b4df94cbbb81 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Thu, 2 Oct 2025 15:59:39 +0200 Add build script for htrdr 0.12 Diffstat:
| A | src/rad-apps/htrdr_0.12.sh | | | 69 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 69 insertions(+), 0 deletions(-)
diff --git a/src/rad-apps/htrdr_0.12.sh b/src/rad-apps/htrdr_0.12.sh @@ -0,0 +1,69 @@ +#!/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" + +. "cad-libs/aw_2.1.sh" +. "rad-libs/mrumtl_0.2.sh" +. "rad-libs/star-sf_0.10.sh" +. "sci-apps/htpp_0.5.sh" +. "sci-libs/star-3d_0.10.sh" +. "sci-libs/star-camera_0.2.sh" +. "sci-libs/star-sp_0.15.sh" +. "sci-libs/star-vx_0.3.1.sh" +. "sys-libs/rsys_0.15.sh" + +[ -z "${ATMOSPHERE}" ] && ATMOSPHERE=ENABLE +[ -z "${COMBUSTION}" ] && COMBUSTION=ENABLE +[ -z "${PLANETS}" ] && PLANETS=ENABLE + +if [ "${ATMOSPHERE}" = "ENABLE" ]; then + . "rad-libs/htsky_0.3.1.sh" +fi + +if [ "${COMBUSTION}" = "ENABLE" ]; then + . "rad-libs/atrstm_0.1.1.sh" +fi + +if [ "${PLANETS}" = "ENABLE" ]; then + . "rad-libs/rnatm_0.2.sh" + . "rad-libs/rngrd_0.1.1.sh" + . "dev-libs/star-buffer_0.1.sh" +fi + +name="htrdr" +tag="0.12" + +if [ -n "${HTRDR_SH}" ]; then + check_conflict "${name}" "${tag}" "${HTRDR_SH}" +else + export HTRDR_SH="${tag}" + + [ "${ATMOSPHERE}" = "ENABLE" ] && dep="${dep} htsky" + [ "${COMBUSTION}" = "ENABLE" ] && dep="${dep} atrstm" + [ "${PLANETS}" = "ENABLE" ] && dep="${dep} rnatm rngrd star-buffer" + + url="$\(REPO\)/htrdr.git" + dep="${dep} aw mrumtl rsys star-3d star-camera star-sf star-sp star-vx" + opt="ATMOSPHERE=${ATMOSPHERE} COMBUSTION=${COMBUSTION} PLANETS=${PLANETS}" + opt="${opt} BUILD_TYPE=$\(BUILD_TYPE\) LIB_TYPE=$\(LIB_TYPE\)" + git_repo + + profile profile +fi