/
meta.yaml
103 lines (92 loc) · 2.75 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{% set version = "1.16.0" %}
package:
name: cairo
version: {{ version }}
source:
url: http://cairographics.org/releases/cairo-{{ version }}.tar.xz
sha256: 5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
patches:
- windows_enable_cairo_gobject.patch # [win]
- windows_pc_files.patch # [win]
- windows_enable_freetype.patch # [win]
build:
number: 1007
run_exports:
- {{ pin_subpackage('cairo') }}
requirements:
build:
- posix # [win]
- m2w64-xz # [win]
- pkg-config # [not win]
- libtool # [not win]
- automake # [not win]
- make # [not win]
- xz # [not win]
- libtool # [unix]
- {{ compiler('c') }}
- pthread-stubs # [linux]
- xcb-proto # [linux]
- xorg-renderproto # [linux]
- xorg-xproto # [linux]
host:
- freetype
- fontconfig # [not win]
- glib
- icu
- libpng
- libxcb # [linux]
- pixman
- xorg-libice # [linux]
- xorg-libsm # [linux]
- xorg-libx11 # [linux]
- xorg-libxext # [linux]
- xorg-libxrender # [linux]
- zlib
run:
- freetype
- fontconfig # [not win]
- icu
- libpng
- libxcb # [linux]
- pixman
- xorg-libice # [linux]
- xorg-libsm # [linux]
- xorg-libx11 # [linux]
- xorg-libxext # [linux]
- xorg-libxrender # [linux]
- zlib
test:
commands:
# Check commands.
- cairo-trace --help # [not win]
# Verify libraries.
{% set cairo_libs = [
"libcairo",
"libcairo-gobject",
"libcairo-script-interpreter",
] %}
{% for each_cairo_lib in cairo_libs %}
- test -f $PREFIX/lib/{{ each_cairo_lib }}.a # [not win]
- test -f $PREFIX/lib/{{ each_cairo_lib }}.dylib # [osx]
- test -f $PREFIX/lib/{{ each_cairo_lib }}.so # [linux]
{% endfor %}
# Check pkg-config files.
- test -f $PREFIX/lib/pkgconfig/cairo-quartz.pc # [osx]
- test -f $PREFIX/lib/pkgconfig/cairo-xlib.pc # [linux]
# check include files
- test -f $PREFIX/include/cairo/cairo.h # [unix]
# check that cairo was built with fontconfig support
- grep -q "CAIRO_HAS_FC_FONT 1" $PREFIX/include/cairo/cairo-features.h # [unix]
about:
home: http://cairographics.org/
dev_url: https://gitlab.freedesktop.org/cairo/cairo
doc_url: https://www.cairographics.org/documentation/
license: LGPL 2.1 or MPL 1.1
license_file: COPYING
summary: 'Cairo is a 2D graphics library with support for multiple output devices.'
extra:
recipe-maintainers:
- ccordoba12
- jakirkham
- ocefpaf
- pkgw