Skip to content

Commit

Permalink
should be better
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesDuvert committed Sep 7, 2023
1 parent 83a05d4 commit 9b2f173
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/build_gdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function prep_packages {
pushd ${ROOT_DIR}/PLplot
mkdir build
pushd ${ROOT_DIR}/PLplot/build
cmake .. -DCMAKE_INSTALL_PREFIX=${HOME}/plplot-local -DENABLE_octave=OFF -DENABLE_qt=OFF -DENABLE_lua=OFF \
cmake .. -DENABLE_octave=OFF -DENABLE_qt=OFF -DENABLE_lua=OFF \
-DENABLE_tk=OFF -DENABLE_python=OFF -DENABLE_tcl=OFF -DPLD_xcairo=OFF -DPLD_wxwidgets=ON -DENABLE_wxwidgets=ON \
-DENABLE_DYNDRIVERS=ON -DENABLE_java=OFF -DPLD_xwin=ON -DENABLE_fortran=OFF
make
Expand Down Expand Up @@ -442,14 +442,12 @@ function configure_gdl {
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/llvm/lib
CMAKE_ADDITIONAL_ARGS=( "-DREADLINEDIR=/opt/homebrew/opt/readline"
"-DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++"
"-DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang"
"-DCMAKE_PREFIX_PATH=${HOME}/plplot-local" )
"-DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang" )
else
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/llvm/lib
CMAKE_ADDITIONAL_ARGS=( "-DREADLINEDIR=/usr/local/opt/readline"
"-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++"
"-DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang"
"-DCMAKE_PREFIX_PATH=${HOME}/plplot-local" )
"-DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang" )
fi
fi

Expand Down Expand Up @@ -590,8 +588,9 @@ function pack_gdl {

mkdir MacOS
echo "#!/bin/sh" > MacOS/gdl
echo 'export ARCHPREFERENCE="arm64,x86_64" ' > MacOS/gdl
echo 'SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"' >> MacOS/gdl
echo 'open -a Terminal "file://${SCRIPTPATH}/../Resources/bin/gdl"' >> MacOS/gdl
echo 'open -a Terminal "${SCRIPTPATH}/../Resources/bin/gdl"' >> MacOS/gdl
chmod +x MacOS/gdl

mkdir Resources
Expand Down Expand Up @@ -675,7 +674,7 @@ else
if [ ${BUILD_OS} == "Windows" ]; then
find_architecture
else
export arch="x86_64"
export arch=$(uname -m)
fi
cmd=AVAILABLE_OPTIONS_$optkey
eval ${!cmd}
Expand Down

0 comments on commit 9b2f173

Please sign in to comment.