pantry/projects/github.com/anholt/libepoxy/package.yml
Andrew 566def7f7a
github.com/anholt/libepoxy (#2334)
* github.com/anholt/libepoxy

* +x.org/x11: '*'

* meson args

* args

* remove --enable_egl

* egl=false

* test.c

* modified:   projects/github.com/anholt/libepoxy/package.yml

* +dri.freedesktop.org

* modified:   projects/github.com/anholt/libepoxy/package.yml

* sed

* test

* i _assume_ we're finding libGL here.

* +mesa

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-09-10 17:49:38 -04:00

51 lines
1,002 B
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:
tea.xyz/gx/cc: c99
mesonbuild.com: '*'
ninja-build.org: '*'
freedesktop.org/pkg-config: '*'
python.org: ^3.1
working-directory: build
script:
- run: "sed -i'' -e 's|auto|no|g' $HOME/../meson_options.txt"
if: linux
- meson setup $ARGS ..
- ninja
- ninja install
env:
ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
test:
dependencies:
freedesktop.org/pkg-config: '*'
tea.xyz/gx/cc: c99
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