Skip to content

Commit

Permalink
Fix Symengine recipe to use boost-cpp (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 authored Jan 24, 2025
1 parent 6b4b550 commit 8525f31
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
24 changes: 24 additions & 0 deletions recipes/recipes_emscripten/symengine/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
emcmake cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=OFF \
-DBUILD_BENCHMARKS=OFF \
-DINTEGER_CLASS=boostmp \
-DWITH_BOOST=ON \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_FOR_DISTRIBUTION=yes \
-DBUILD_SHARED_LIBS=no \
-DBoost_INCLUDE_DIR=$BUILD_PREFIX/include \
-DWITH_SYMENGINE_THREAD_SAFE=ON \
-DWITH_SYMENGINE_RCP=ON \
-DWITH_FLINT=OFF \
-DWITH_PIRANHA=OFF \
-DWITH_GMP=OFF \
-DWITH_MPFR=OFF \
-DWITH_MPC=OFF \
-DWITH_OPENMP=OFF \
-S . \
-B build

emmake cmake --build build --target install
22 changes: 7 additions & 15 deletions recipes/recipes_emscripten/symengine/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,18 @@ source:
version }}.tar.gz

build:
number: 0
script: |
emcmake cmake \
-DBUILD_TESTS=OFF \
-DBUILD_BENCHMARKS=OFF \
-DINTEGER_CLASS=boostmp \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_FOR_DISTRIBUTION=yes \
-DBUILD_SHARED_LIBS=no \
-DBoost_INCLUDE_DIR=$BUILD_PREFIX/include \
.
emmake make install
number: 1

requirements:
build:
- ${{ compiler("cxx") }}
- cmake
- make
- boost-cpp
- boost-cpp >=1.84.0
host:
- boost-cpp >=1.84.0
run:
- boost-cpp >=1.84.0

about:
homepage: https://symengine.org/
Expand All @@ -48,3 +39,4 @@ about:
extra:
recipe-maintainers:
- richardotis
- anutosh491

0 comments on commit 8525f31

Please sign in to comment.