Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe for SFCGAL 2.0.0 #28964

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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