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 gnome.org/glib: 2
freedesktop.org/fontconfig: 2 freedesktop.org/fontconfig: 2
sourceware.org/bzip2: 1 sourceware.org/bzip2: 1
mesonbuild.com: ^1
ninja-build.org: ^1
build: build:
dependencies: dependencies:
@ -27,20 +29,39 @@ build:
libexpat.github.io: =2.4.9 libexpat.github.io: =2.4.9
gnome.org/gobject-introspection: 1 gnome.org/gobject-introspection: 1
gnu.org/libtool: ^2 gnu.org/libtool: ^2
script: | script:
./configure --prefix={{ prefix }} --disable-dependency-tracking - run: |
make --jobs {{ hw.concurrency }} ./configure --prefix={{ prefix }} --disable-dependency-tracking
make install 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: test:
dependencies: dependencies:
tea.xyz/gx/cc: c99 tea.xyz/gx/cc: c99
script: | script:
cc test.c -I{{prefix}}/include/cairo -lcairo - cc test.c -lcairo
./a.out - ./a.out
#FIXME env should add that include path via pkg-config look up
provides: provides:
- bin/cairo-trace - bin/cairo-trace