Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin to hdf5 1.8.17* #3

Merged
merged 4 commits into from
Jun 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.*
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we pin netcdf-cxx4 we don't need to add the hdf5 pin here b/c the right libnetcdf/hdf5 will be downloaded.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we pin netcdf-cxx4 we don't need to add the hdf5 pin here b/c the right libnetcdf/hdf5 will be downloaded.

That had historic reasons b/c that time this fixed some wrongly pulled hdf5. Now it won't be needed any more.

- 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