Commit aebb7d95 authored by Emmanuelle Sarrazin's avatar Emmanuelle Sarrazin

ENH: Add Shark recipe

parent 4d508fe2
#!/usr/bin/env bash
set +x
set -e # Abort on error
[[ -d build ]] || mkdir build
cd build
export CMAKE_LIBRARY_PATH=${BUILD_PREFIX}/lib:${CMAKE_LIBRARY_PATH}
export CMAKE_INCLUDE_PATH=${BUILD_PREFIX}/include:${CMAKE_INCLUDE_PATH}
if [[ $target_platform =~ linux.* ]]; then
export LDFLAGS="$LDFLAGS -Wl,-rpath-link,${PREFIX}/lib"
fi
CC=${BUILD_PREFIX}/bin/${HOST}-gcc CXX=$BUILD_PREFIX/bin/${HOST}-g++ \
cmake -G "Ninja" \
-D CMAKE_INSTALL_PREFIX=$PREFIX \
-D BUILD_SHARED_LIBS:BOOL=ON \
-D BUILD_DOCS:BOOL=OFF \
-D BUILD_EXAMPLES:BOOL=OFF \
-D BUILD_TESTING:BOOL=OFF \
-D ENABLE_HDF5:BOOL=OFF \
-D ENABLE_CBLAS:BOOL=OFF \
-D ENABLE_OPENMP:BOOL=OFF \
..
ninja install
{% set version = "4.0.1" %}
package:
name: shark
version: {{ version }}
source:
url: https://github.com/Shark-ML/Shark/archive/v{{ version }}.zip
sha256: b442d641d84cc5c7051fe9d79e116af33288b8816d1a97b96f774da3a704da6e
patches:
- patches/shark-1-disable-hdf5-all.diff
- patches/shark-2-ext-num-literals-all.diff
build:
number: 1000
requirements:
build:
- cmake
- ninja
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- boost
test:
commands:
- test -f ${PREFIX}/include/shark/Core/Shark.h # [unix]
- if not exist %PREFIX%\\Library\\include\\shark\\Core\\Shark.h exit 1 # [win]
- conda inspect linkages -p ${PREFIX} shark # [not win]
- conda inspect objects -p ${PREFIX} shark # [osx]
about:
home: http://www.shark-ml.org/
license: LGPL-3.0
license_file: COPYING
summary: A C++ machine learning library
extra:
recipe-maintainers:
- CNES
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment