From 5c486ff795a09e08f35a8033d51c8c2b2ee472d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Tue, 28 Jan 2025 13:46:45 +0100 Subject: [PATCH] Add recipe for SFCGAL 2.0.0 --- recipes/sfcgal/bld.bat | 9 ++++++++ recipes/sfcgal/build.sh | 12 +++++++++++ recipes/sfcgal/meta.yaml | 44 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 recipes/sfcgal/bld.bat create mode 100644 recipes/sfcgal/build.sh create mode 100644 recipes/sfcgal/meta.yaml diff --git a/recipes/sfcgal/bld.bat b/recipes/sfcgal/bld.bat new file mode 100644 index 0000000000000..42db2dd822d32 --- /dev/null +++ b/recipes/sfcgal/bld.bat @@ -0,0 +1,9 @@ +cmake -S . -B build ^ + -G Ninja ^ + -DCMAKE_INSTALL_PREFIX=%PREFIX% ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DSFCGAL_BUILD_TESTS=OFF ^ + -Wno-dev +cmake --build build --config Release -- /m +cmake --install build + diff --git a/recipes/sfcgal/build.sh b/recipes/sfcgal/build.sh new file mode 100644 index 0000000000000..98ff64212c696 --- /dev/null +++ b/recipes/sfcgal/build.sh @@ -0,0 +1,12 @@ +#/usr/bin/env bash +set -e + +cmake -S . -B build \ + -GNinja + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_BUILD_TYPE=Release \ + -DSFCGAL_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..65feff9b98fa2 --- /dev/null +++ b/recipes/sfcgal/meta.yaml @@ -0,0 +1,44 @@ +{% 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 + +requirements: + host: + - {{ compiler('c') }} + - {{ stdlib("c") }} + - {{ compiler('cxx') }} + - cgal + - cmake + - libboost-devel + - gmp + - mpfr + - ninja + run: + - libboost + - gmp + - mpfr + +test: + commands: + - sfcgal-config --version + +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