2022-08-19 20:31:09 +03:00
|
|
|
distributable:
|
|
|
|
url: https://cairographics.org/releases/cairo-{{ version }}.tar.xz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://cairographics.org/releases/
|
|
|
|
match: /cairo-\d+\.\d+(\.\d+)?\.tar\.xz/
|
|
|
|
strip:
|
|
|
|
- /cairo-/
|
|
|
|
- /.tar.xz/
|
2022-08-19 20:31:09 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
libpng.org: 1
|
|
|
|
pixman.org: ^0.40.0
|
|
|
|
freetype.org: 2
|
|
|
|
gnome.org/glib: 2
|
|
|
|
freedesktop.org/fontconfig: 2
|
|
|
|
sourceware.org/bzip2: 1
|
2023-10-02 19:24:29 +03:00
|
|
|
x.org/x11: '*'
|
|
|
|
x.org/xcb: '*'
|
|
|
|
x.org/exts: '*'
|
|
|
|
x.org/xrender: '*'
|
|
|
|
oberhumer.com/lzo: '*'
|
2022-08-19 20:31:09 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: ^0.29
|
2022-12-08 04:10:37 +03:00
|
|
|
#FIXME or fontconfig detection fails
|
|
|
|
#FIXME build looks for 2.4.9 even when it has 2.5.0
|
2022-12-21 02:05:23 +03:00
|
|
|
libexpat.github.io: =2.4.9
|
2022-08-19 20:31:09 +03:00
|
|
|
gnome.org/gobject-introspection: 1
|
2022-12-21 02:05:23 +03:00
|
|
|
gnu.org/libtool: ^2
|
2023-09-23 17:41:39 +03:00
|
|
|
mesonbuild.com: ^1
|
|
|
|
ninja-build.org: ^1
|
2023-09-23 17:05:41 +03:00
|
|
|
script:
|
|
|
|
- run: |
|
|
|
|
./configure --prefix={{ prefix }} --disable-dependency-tracking
|
|
|
|
make --jobs {{ hw.concurrency }}
|
|
|
|
make install
|
|
|
|
if: <1.18.0
|
2022-08-19 20:31:09 +03:00
|
|
|
|
2023-09-23 17:05:41 +03:00
|
|
|
- run: |
|
2023-10-02 19:24:29 +03:00
|
|
|
meson setup build --prefix={{ prefix }} --buildtype=release $ARGS
|
2023-09-23 17:05:41 +03:00
|
|
|
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
|
|
|
|
|
2023-10-02 19:24:29 +03:00
|
|
|
- run: |
|
|
|
|
tmp_dir=$(ls)
|
|
|
|
mv $tmp_dir/* .
|
|
|
|
rmdir $tmp_dir
|
|
|
|
working-directory: ${{ prefix }}/lib
|
|
|
|
if: linux
|
|
|
|
|
2023-09-23 17:05:41 +03:00
|
|
|
- run: |
|
|
|
|
mv cairo/* .
|
|
|
|
rmdir cairo
|
|
|
|
ln -s . cairo
|
|
|
|
working-directory: ${{ prefix }}/lib
|
2023-10-02 19:24:29 +03:00
|
|
|
if: darwin
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -Dfreetype=enabled
|
|
|
|
- -Dpng=enabled
|
|
|
|
- -Dglib=enabled
|
|
|
|
- -Dxcb=enabled
|
|
|
|
- -Dxlib=enabled
|
|
|
|
- -Dzlib=enabled
|
|
|
|
- -Dglib=enabled
|
2022-09-02 17:57:48 +03:00
|
|
|
|
|
|
|
test:
|
2023-09-23 17:05:41 +03:00
|
|
|
script:
|
|
|
|
- cc test.c -lcairo
|
|
|
|
- ./a.out
|
2022-12-05 22:10:34 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/cairo-trace
|