Skip to content

Commit

Permalink
Merge pull request #3 from ocefpaf/pinhdf5
Browse files Browse the repository at this point in the history
Pin to hdf5 1.8.17*
  • Loading branch information
kmuehlbauer authored Jun 23, 2016
2 parents 2e80cbf + 304b974 commit 21197a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ install:
conda config --set show_channel_urls true
conda update --yes conda
conda install --yes conda-build=1.20.0 jinja2 anaconda-client
conda install --yes conda-build jinja2 anaconda-client
conda config --add channels conda-forge
Expand Down
36 changes: 6 additions & 30 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,38 +1,14 @@
#!/usr/bin/env bash

if [ "$(uname)" == "Darwin" ]
then
# for Mac OSX
export CC=clang
export CXX=clang++
export MACOSX_VERSION_MIN="10.7"
export MACOSX_DEPLOYMENT_TARGET="${MACOSX_VERSION_MIN}"
export CXXFLAGS="${CXXFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}"
export CXXFLAGS="${CXXFLAGS} -stdlib=libc++ -std=c++11"
export LDFLAGS="${LDFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}"
export LDFLAGS="${LDFLAGS} -stdlib=libc++ -lc++"
export LINKFLAGS="${LDFLAGS}"
elif [ "$(uname)" == "Linux" ]
then
# for Linux
export CC=gcc
export CXX=g++
export CXXFLAGS="${CXXFLAGS} -DBOOST_MATH_DISABLE_FLOAT128"
export LDFLAGS="${LDFLAGS}"
export LINKFLAGS="${LDFLAGS}"
else
echo "This system is unsupported by the toolchain."
exit 1
if [ $(uname) == Darwin ]; then
export CXX="${CXX} -stdlib=libc++"
fi

export CFLAGS="${CFLAGS} -m${ARCH}"
export CXXFLAGS="${CXXFLAGS} -m${ARCH}"

mkdir build_libradolan && cd build_libradolan
cmake -D CMAKE_INSTALL_PREFIX=$PREFIX \
-D WITH_TESTS=YES \
$SRC_DIR

mkdir ../build
cd ../build
cmake $SRC_DIR \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DWITH_TESTS=YES
make VERBOSE=1
make install
12 changes: 6 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ source:
sha256: d435f21b6f74ba42669e390d43a3b6ab401ec3a9420e7fb13d7971a7a71c3c0e

build:
number: 1
number: 2
skip: true # [win]

requirements:
build:
- boost 1.60.*
- netcdf-cxx4
- cmake
- boost 1.60.*
- netcdf-cxx4 4.3.*
- toolchain
run:
- boost 1.60.*
- hdf5 1.8.15*
- netcdf-cxx4
- netcdf-cxx4 4.3.*

test:
commands:
Expand All @@ -35,7 +35,7 @@ test:
about:
home: http://meteo-ubonn.github.io/radolan/
license: MIT
summary: C++ library for reading and working with the RADOLAN data format of the German Weather Service (DWD)
summary: C++ library for reading and working with the RADOLAN data format of the German Weather Service (DWD)

extra:
recipe-maintainers:
Expand Down

0 comments on commit 21197a6

Please sign in to comment.