fix(cairo)

closes #3398
This commit is contained in:
Jacob Heider 2023-09-23 10:05:41 -04:00
parent b6ba7c0970
commit 77d7388773
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB

View file

@ -18,6 +18,8 @@ dependencies:
gnome.org/glib: 2
freedesktop.org/fontconfig: 2
sourceware.org/bzip2: 1
mesonbuild.com: ^1
ninja-build.org: ^1
build:
dependencies:
@ -27,20 +29,39 @@ build:
libexpat.github.io: =2.4.9
gnome.org/gobject-introspection: 1
gnu.org/libtool: ^2
script: |
script:
- run: |
./configure --prefix={{ prefix }} --disable-dependency-tracking
make --jobs {{ hw.concurrency }}
make install
if: <1.18.0
rm -rf {{prefix}}/share # docs are online
- run: |
meson setup build --prefix={{ prefix }} --buildtype=release
ninja -C build
ninja -C build install
if: '>=1.18.0'
- rm -rf {{prefix}}/share # docs are online
- run: |
mv cairo/* .
rmdir cairo
ln -s . cairo
working-directory: ${{ prefix }}/include
- run: |
mv cairo/* .
rmdir cairo
ln -s . cairo
working-directory: ${{ prefix }}/lib
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc test.c -I{{prefix}}/include/cairo -lcairo
./a.out
#FIXME env should add that include path via pkg-config look up
script:
- cc test.c -lcairo
- ./a.out
provides:
- bin/cairo-trace