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 15fd789
Show file tree
Hide file tree
Showing 3 changed files with 62 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 ^
-DSFCGAL_WITH_PHP=OFF
cmake --build build --config Release -- /m
cmake --install build

11 changes: 11 additions & 0 deletions recipes/sfcgal/build.sh
Original file line number Diff line number Diff line change
@@ -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
42 changes: 42 additions & 0 deletions recipes/sfcgal/meta.yaml
Original file line number Diff line number Diff line change
@@ -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: <INSERT_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:
- <votre_nom_d'utilisateur_github>

0 comments on commit 15fd789

Please sign in to comment.