1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-09-19 21:25:36 +01:00

build system update

This commit is contained in:
Antonin Portelli 2019-11-28 12:30:17 +00:00
parent 8cfbaeb9ce
commit ec5e6c6920
4 changed files with 8 additions and 7 deletions

View File

@ -42,7 +42,7 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export PATH="${LATDIR}/ci-scripts/clang/bin:${PATH}"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export LD_LIBRARY_PATH="${LATDIR}/ci-scripts/clang/lib:${LD_LIBRARY_PATH}"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install bison flex; export PATH="/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install bison flex cmake; export PATH="/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$CC" == "gcc" ]]; then brew install gcc@${VERSION#-}; fi
install:

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
NAME='gsl-2.5'
NAME='gsl-2.6'
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix>" 1>&2

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
NAME='hdf5-1.10.1'
NAME='hdf5-1.10.5'
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix>" 1>&2

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
NAME='nlopt-2.4.2'
NAME='2.6.1'
if (( $# != 1 )); then
echo "usage: `basename $0` <prefix>" 1>&2
@ -11,11 +11,12 @@ PREFIX=$1
set -ex
INITDIR=`pwd`
cd local/build
wget http://ab-initio.mit.edu/nlopt/${NAME}.tar.gz
tar -xzvf ${NAME}.tar.gz
wget https://github.com/stevengj/nlopt/archive/v${NAME}.tar.gz
tar -xzvf v${NAME}.tar.gz
NAME=nlopt-${NAME}
mkdir -p ${NAME}/build
cd ${NAME}/build
../configure --prefix=${PREFIX} --with-cxx --without-guile --without-python --without-octave --without-matlab --with-pic
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
make -j4
make install
cd ${INITDIR}/local