mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
+gts.sourceforge.net
This commit is contained in:
parent
ff249734f3
commit
03b05e28ce
2 changed files with 60 additions and 0 deletions
46
projects/gts.sourceforge.net/package.yml
Normal file
46
projects/gts.sourceforge.net/package.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
distributable:
|
||||
url: https://downloads.sourceforge.net/project/gts/gts/{{version}}/gts-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
- '0.7.6'
|
||||
|
||||
dependencies:
|
||||
gnome.org/glib: '>=2.4.0'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
gnu.org/automake: '*'
|
||||
gnu.org/autoconf: '*'
|
||||
gnu.org/libtool: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
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/happrox
|
||||
- bin/stl2gts
|
||||
- bin/transform
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script: |
|
||||
cc test.c $(pkg-config --cflags --libs gts) -lm
|
||||
./a.out
|
14
projects/gts.sourceforge.net/test.c
Normal file
14
projects/gts.sourceforge.net/test.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "gts.h"
|
||||
int main() {
|
||||
GtsRange r;
|
||||
gts_range_init(&r);
|
||||
|
||||
for (int i = 0; i < 10; ++i)
|
||||
gts_range_add_value(&r, i);
|
||||
|
||||
gts_range_update(&r);
|
||||
|
||||
if (r.n == 10) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in a new issue