mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/sfcgal.org/package.yml
This commit is contained in:
parent
4d0999fe07
commit
c319cddbf2
1 changed files with 39 additions and 0 deletions
39
projects/sfcgal.org/package.yml
Normal file
39
projects/sfcgal.org/package.yml
Normal 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}}
|
Loading…
Reference in a new issue