new file: projects/sfcgal.org/package.yml

This commit is contained in:
Andrii Riabchenko 2023-10-21 02:30:12 +03:00 committed by Jacob Heider
parent 4d0999fe07
commit c319cddbf2

View file

@ -0,0 +1,39 @@
distributable:
url: https://gitlab.com/Oslandia/SFCGAL/-/archive/v{{version}}/SFCGAL-v{{version}}.tar.gz
strip-components: 1
versions:
gitlab: Oslandia/SFCGAL
dependencies:
boost.org: '*'
cgal.org: '*'
gnu.org/gmp: '*'
gnu.org/mpfr: '*'
build:
dependencies:
cmake.org: '*'
linux:
gnu.org/gcc: '*'
gnu.org/make: '*'
script:
- cmake -S . -B build $CMAKE_ARGS
- cmake --build build
- cmake --install build
- run: |
sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" sfcgal-config
rm sfcgal-config.bak
working-directory: "{{prefix}}/bin"
env:
CMAKE_ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
provides:
- bin/sfcgal-config
test:
script:
- sfcgal-config --version | grep {{version}}
- sfcgal-config --prefix | grep {{prefix}}