pantry/projects/freedesktop.org/mesa-glu/package.yml
andrejrabcenko 0b7ac384ca new file: projects/freedesktop.org/mesa-glu/package.yml
new file:   projects/freedesktop.org/mesa-glu/test.cpp
2023-09-10 16:38:38 -04:00

37 lines
913 B
YAML

distributable:
url: https://gitlab.freedesktop.org/mesa/glu/-/archive/glu-{{version}}/glu-glu-{{version}}.tar.gz
strip-components: 1
versions:
url: https://gitlab.freedesktop.org/mesa/glu/-/tags
match: /glu-\d+\.\d+\.\d+/
strip:
- /^glu-/
dependencies:
mesa3d.org: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
gnu.org/make: '*'
freedesktop.org/pkg-config: '*'
mesonbuild.com: '*'
ninja-build.org: '*'
script:
- meson setup $MESON_ARGS build
- meson compile -C build --verbose
- meson install -C build
env:
MESON_ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
- -Dgl_provider=gl
test:
dependencies:
tea.xyz/gx/cc: c99
freedesktop.org/pkg-config: '*'
script:
- pkg-config --modversion glu | grep {{version}}
- c++ test.cpp -lGLU -o test
- ./test