htrdr_0.12.sh (2069B)
1 #!/bin/sh 2 3 # Copyright (C) 2023-2026 |Méso|Star> (contact@meso-star.com) 4 # 5 # This file is part of Star-Build. 6 # 7 # Star-Build is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 3 of the License, or 10 # (at your option) any later version. 11 # 12 # Star-Build is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with Star-Build. If not, see <http://www.gnu.org/licenses/>. 19 20 set -e 21 22 . "misc/build.sh" 23 24 . "cad-libs/aw_2.1.sh" 25 . "rad-libs/mrumtl_0.2.sh" 26 . "rad-libs/star-sf_0.10.sh" 27 . "sci-apps/htpp_0.5.sh" 28 . "sci-libs/netcdf-patch.sh" 29 . "sci-libs/star-3d_0.10.1.sh" 30 . "sci-libs/star-camera_0.2.sh" 31 . "sci-libs/star-sp_0.15.sh" 32 . "sci-libs/star-vx_0.3.1.sh" 33 . "sys-libs/rsys_0.15.sh" 34 35 [ -z "${ATMOSPHERE}" ] && ATMOSPHERE=ENABLE 36 [ -z "${COMBUSTION}" ] && COMBUSTION=ENABLE 37 [ -z "${PLANETS}" ] && PLANETS=ENABLE 38 39 if [ "${ATMOSPHERE}" = "ENABLE" ]; then 40 . "rad-libs/htsky_0.3.1-r1.sh" 41 fi 42 43 if [ "${COMBUSTION}" = "ENABLE" ]; then 44 . "rad-libs/atrstm_0.1.1.sh" 45 fi 46 47 if [ "${PLANETS}" = "ENABLE" ]; then 48 . "rad-libs/rnatm_0.2.sh" 49 . "rad-libs/rngrd_0.2.sh" 50 . "dev-libs/star-buffer_0.1.sh" 51 fi 52 53 name="htrdr" 54 tag="0.12" 55 56 if [ -n "${HTRDR_SH}" ]; then 57 check_conflict "${name}" "${tag}" "${HTRDR_SH}" 58 else 59 export HTRDR_SH="${tag}" 60 61 [ "${ATMOSPHERE}" = "ENABLE" ] && dep="${dep} htsky netcdf-patch" 62 [ "${COMBUSTION}" = "ENABLE" ] && dep="${dep} atrstm" 63 [ "${PLANETS}" = "ENABLE" ] && dep="${dep} rnatm rngrd star-buffer" 64 65 url="$\(REPO\)/htrdr.git" 66 dep="${dep} aw mrumtl rsys star-3d star-camera star-sf star-sp star-vx" 67 opt="ATMOSPHERE=${ATMOSPHERE} COMBUSTION=${COMBUSTION} PLANETS=${PLANETS}" 68 opt="${opt} BUILD_TYPE=$\(BUILD_TYPE\) LIB_TYPE=$\(LIB_TYPE\)" 69 git_repo 70 71 profile profile 72 fi