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:
parent
5b6ba959d9
commit
92f566f1d3
1 changed files with 14 additions and 4 deletions
|
@ -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 [[ "$APT_GET_UPDATE" = "y" ]]; then
|
||||
_aptUpdate
|
||||
|
@ -615,10 +629,6 @@ if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
|
|||
|
||||
# TerraGear
|
||||
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)
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue