2023-02-28 00:12:08 +03:00
|
|
|
distributable:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://downloads.sourceforge.net/project/gts/gts/{{version.raw}}/gts-{{version.raw}}.tar.gz
|
2023-02-28 00:12:08 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://sourceforge.net/projects/gts/files/gts/
|
|
|
|
match: /gts-(\d+\.\d+(\.\d+)?)\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /gts-/
|
|
|
|
- /.tar.gz/
|
2023-02-28 00:12:08 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
gnome.org/glib: '>=2.4.0'
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/automake: '*'
|
|
|
|
gnu.org/autoconf: '*'
|
|
|
|
gnu.org/libtool: '*'
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
script: |
|
|
|
|
autoreconf -fvi
|
|
|
|
./configure $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
# FIXME: gts-config prevents relocatability with absolute paths
|
|
|
|
rm {{ prefix }}/bin/gts-config
|
|
|
|
env:
|
|
|
|
ARGS: "--prefix={{prefix}}"
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/delaunay
|
|
|
|
- bin/gts2dxf
|
|
|
|
- bin/gts2oogl
|
|
|
|
- bin/gts2stl
|
|
|
|
- bin/gtscheck
|
|
|
|
- bin/gtscompare
|
|
|
|
- bin/gtstemplate
|
|
|
|
- bin/stl2gts
|
|
|
|
- bin/transform
|
|
|
|
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
script: |
|
|
|
|
cc test.c $(pkg-config --cflags --libs gts) -lm
|
|
|
|
./a.out
|