pantry/projects/github.com/anholt/libepoxy/package.yml
Jacob Heider fc12d035ec
fix(epoxy)
flatten includes
2023-10-27 16:45:46 -04:00

54 lines
1 KiB
YAML

distributable:
url: https://github.com/anholt/libepoxy/archive/{{version}}.tar.gz
strip-components: 1
versions:
github: anholt/libepoxy
dependencies:
linux:
x.org/x11: '*'
mesa3d.org: '*'
build:
dependencies:
mesonbuild.com: '*'
ninja-build.org: '*'
freedesktop.org/pkg-config: '*'
python.org: '>=3.1<3.12'
linux:
freeglut.sourceforge.io: '*'
working-directory: build
script:
- meson setup $ARGS ..
- ninja
- ninja install
- run: |
mv epoxy/* .
rmdir epoxy
ln -s . epoxy
working-directory: ${{prefix}}/include
env:
ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
test:
dependencies:
freedesktop.org/pkg-config: '*'
env:
ARGS:
- -lepoxy
- -o test
darwin:
ARGS:
- -framework OpenGL
- -DOS_MAC
script:
- pkg-config --modversion epoxy | grep {{version}}
- cc test.c $ARGS
- ls -lh test
- ./test