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 31, 2025
1 parent 9c3ab2a commit 7d9e3bd
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipes/sfcgal/bld.bat
Original file line number Diff line number Diff line change
@@ -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

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

0 comments on commit 7d9e3bd

Please sign in to comment.