diff --git a/recipes/sfcgal/bld.bat b/recipes/sfcgal/bld.bat new file mode 100644 index 0000000000000..0a9f950d83aee --- /dev/null +++ b/recipes/sfcgal/bld.bat @@ -0,0 +1,10 @@ +cmake -S . -B build ^ + -G Ninja ^ + -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE ^ + -DCMAKE_INSTALL_PREFIX=%PREFIX% ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DSFCGAL_BUILD_TESTS=OFF ^ + -Wno-dev +cmake --build build --config Release +cmake --install build + diff --git a/recipes/sfcgal/build.sh b/recipes/sfcgal/build.sh new file mode 100644 index 0000000000000..94612a7f45361 --- /dev/null +++ b/recipes/sfcgal/build.sh @@ -0,0 +1,19 @@ +#/usr/bin/env bash +set -e + +if [ $(uname) == Linux ]; then + export LDFLAGS="$LDFLAGS -L$(PREFIX)/lib64 -L$(PREFIX)/lib -lpthread -lm -lstdc++" + PLATFORM_OPTS="" +fi + +cmake -S . -B build \ + ${CMAKE_ARGS} \ + -G Ninja \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_INSTALL_PREFIX="${PREFIX}" \ + -D CMAKE_PREFIX_PATH="${PREFIX}" \ + -D SFCGAL_BUILD_TESTS=OFF \ + -Wno-dev + +cmake --build build --config Release -j${CPU_COUNT} +cmake --install build diff --git a/recipes/sfcgal/meta.yaml b/recipes/sfcgal/meta.yaml new file mode 100644 index 0000000000000..e0358664b6534 --- /dev/null +++ b/recipes/sfcgal/meta.yaml @@ -0,0 +1,52 @@ +{% set version = "2.0.0" %} + +package: + name: sfcgal + version: {{ version }} + +source: + url: https://gitlab.com/sfcgal/SFCGAL/-/archive/v{{ version }}/SFCGAL-v{{ version }}.tar.gz + sha256: 11843953f49e7e4432c42fd27d54e1ff7ca55d0cc72507725c2a5d840c2c6535 + +build: + number: 0 + missing_dso_whitelist: # [linux] + - /lib64/libpthread.so.0 # [linux] + - /lib64/libm.so.6 # [linux] + - /lib64/libc.so.6 # [linux] + - /lib64/ld-linux-x86-64.so.2 # [linux] + - /lib/libgcc_s.so.1 # [linux] + + +requirements: + host: + - {{ compiler('c') }} + - {{ stdlib("c") }} + - {{ compiler('cxx') }} + - cgal-cpp + - cmake + - libboost-devel + - gmp + - mpfr + - ninja + run: + - gmp + - mpfr + - cgal-cpp + - libboost-devel + +test: + commands: + - sfcgal-config --version # [not win] + +about: + home: https://gitlab.com/sfcgal/SFCGAL + summary: "A wrapper around CGAL that intents to implement 2D and 3D operations on OGC standards models." + license: LGPL-2.1-or-later + license_family: LGPL + license_file: LICENSE + dev_url: https://gitlab.com/sfcgal/SFCGAL + +extra: + recipe-maintainers: + - lbartoletti