From 15fd789bec67f89dcc92b0d8f578c6c11e66fa8d 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 | 11 +++++++++++ recipes/sfcgal/meta.yaml | 42 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 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..9ac888b2f41de --- /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 ^ + -DSFCGAL_WITH_PHP=OFF +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..732a367cd9018 --- /dev/null +++ b/recipes/sfcgal/build.sh @@ -0,0 +1,11 @@ +#/usr/bin/env bash +set -e + +cmake -S . -B build \ + -GNinja + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_BUILD_TYPE=Release \ + -DSFCGAL_BUILD_TESTS=OFF \ + +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..6df72d4e43b62 --- /dev/null +++ b/recipes/sfcgal/meta.yaml @@ -0,0 +1,42 @@ +{% 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: + +build: + number: 0 + +requirements: + host: + - cgal + - cmake + - boost-cpp + - gmp + - mpfr + - ninja + run: + - boost-cpp + - gmp + - mpfr + +test: + commands: + - sfcgal-config --version + +about: + home: https://gitlab.com/sfcgal/SFCGAL + license: LGPL-2.1-only + license_family: LGPL + license_file: COPYING + summary: "Library for 2D/3D geometry operations." + dev_url: https://gitlab.com/sfcgal/SFCGAL + +extra: + recipe-maintainers: + - +