2023-09-11 00:49:38 +03:00
|
|
|
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: '*'
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: '>=3.1<3.12'
|
2023-10-27 19:32:44 +03:00
|
|
|
linux:
|
|
|
|
freeglut.sourceforge.io: '*'
|
2023-09-11 00:49:38 +03:00
|
|
|
working-directory: build
|
|
|
|
script:
|
|
|
|
- meson setup $ARGS ..
|
|
|
|
- ninja
|
|
|
|
- ninja install
|
2023-10-27 23:45:46 +03:00
|
|
|
- run: |
|
|
|
|
mv epoxy/* .
|
|
|
|
rmdir epoxy
|
|
|
|
ln -s . epoxy
|
|
|
|
working-directory: ${{prefix}}/include
|
2023-10-28 00:02:11 +03:00
|
|
|
# this seems to mess up pkg-config detection on darwin.
|
|
|
|
- run: |
|
|
|
|
sed -i.bak "s|Requires.private: x11, |Requires.private: x11|g" epoxy.pc
|
|
|
|
rm -f epoxy.pc.bak
|
|
|
|
working-directory: "{{prefix}}/lib/pkgconfig"
|
|
|
|
if: darwin
|
2023-09-11 00:49:38 +03:00
|
|
|
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
|