Commit 415c80de authored by Emmanuelle Sarrazin's avatar Emmanuelle Sarrazin

ENH: Add muparserx recipe

parent 75d4c9fd
#!/usr/bin/env bash
#!/usr/bin/env bash
set +x
set -e # Abort on error
[[ -d build ]] || mkdir build
cd build
echo "Current work directory: $(pwd)"
echo "BUILD_PREFIX: ${BUILD_PREFIX}"
echo "PREFIX: ${PREFIX}"
export CMAKE_LIBRARY_PATH=${BUILD_PREFIX}/lib:${CMAKE_LIBRARY_PATH}
export CMAKE_INCLUDE_PATH=${BUILD_PREFIX}/include:${CMAKE_INCLUDE_PATH}
export CMAKE_LIBRARY_PATH=${BUILD_PREFIX}/${HOST}/sysroot/usr/lib:${CMAKE_LIBRARY_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 -D CMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_SHARED_LIBS:BOOL=ON ..
ninja install
{% set version = "4.0.8" %}
package:
name: muparserx
version: {{ version }}
source:
#git_url: https://github.com/beltoforion/muparserx.git
#git_rev: v{{ version }}
fn: v{{ version }}.zip
url: https://github.com/beltoforion/muparserx/archive/v{{ version }}.zip
sha256: 9fe55c43c2298875fdda9da49c273bdfb42245cf2cb2ad77d5cb40eaf7a83f09
build:
number: 1000
requirements:
build:
- cmake
- ninja
- {{ compiler('c') }}
- {{ compiler('cxx') }}
test:
commands:
- test -f ${PREFIX}/include/muparserx/mpParser.h # [unix]
- if not exist %PREFIX%\\Library\\include\\mpParser.h exit 1 # [win]
- conda inspect linkages -p ${PREFIX} muparserx # [not win]
- conda inspect objects -p ${PREFIX} muparserx # [osx]
about:
home: http://muparserx.beltoforion.de/
license: "BSD - Clause 2 Simplified"
license_file: License.txt
summary: A fast math parser C++ library
extra:
recipe-maintainers:
- CNES
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