download_and_compile.sh: fix "TERRAGEAR depends on SIMGEAR" implementation
The previous commit enforced this dependency only under the [[ "$DOWNLOAD_PACKAGES" = "y" ]] condition, which was too restrictive.
This commit is contained in:
+14
-4
@@ -590,6 +590,20 @@ _logSep
|
|||||||
#######################################################
|
#######################################################
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
|
# ****************************************************************************
|
||||||
|
# * Inter-component Dependencies *
|
||||||
|
# ****************************************************************************
|
||||||
|
|
||||||
|
# TerraGear requires SimGear
|
||||||
|
if _elementIn "TERRAGEAR" "${WHATTOBUILD[@]}" && \
|
||||||
|
! _elementIn "SIMGEAR" "${WHATTOBUILD[@]}"; then
|
||||||
|
WHATTOBUILD+=(SIMGEAR)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ****************************************************************************
|
||||||
|
# * Component dependencies on distribution packages *
|
||||||
|
# ****************************************************************************
|
||||||
|
|
||||||
if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
|
if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
|
||||||
if [[ "$APT_GET_UPDATE" = "y" ]]; then
|
if [[ "$APT_GET_UPDATE" = "y" ]]; then
|
||||||
_aptUpdate
|
_aptUpdate
|
||||||
@@ -615,10 +629,6 @@ if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
|
|||||||
|
|
||||||
# TerraGear
|
# TerraGear
|
||||||
if _elementIn "TERRAGEAR" "${WHATTOBUILD[@]}"; then
|
if _elementIn "TERRAGEAR" "${WHATTOBUILD[@]}"; then
|
||||||
# Require SimGear
|
|
||||||
if ! _elementIn "SIMGEAR" "${WHATTOBUILD[@]}"; then
|
|
||||||
WHATTOBUILD+=(SIMGEAR)
|
|
||||||
fi
|
|
||||||
PKG+=(libboost-dev libcgal-dev libgdal-dev libtiff5-dev zlib1g-dev)
|
PKG+=(libboost-dev libcgal-dev libgdal-dev libtiff5-dev zlib1g-dev)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user