Skip to content

Commit

Permalink
Add recipe for SFCGAL 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Jan 28, 2025
1 parent 9c3ab2a commit 5c486ff
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipes/sfcgal/bld.bat
Original file line number Diff line number Diff line change
@@ -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

12 changes: 12 additions & 0 deletions recipes/sfcgal/build.sh
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions recipes/sfcgal/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5c486ff

Please sign in to comment.