1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_UnpackedTarball_UnpackedTarball
,cairo
))
12 $(eval
$(call gb_UnpackedTarball_set_tarball
,cairo
,$(CAIRO_TARBALL
),,cairo
))
14 # cairo >= 1.17.6 was probably created in Fedora where
15 # https://salsa.debian.org/mckinstry/libtool/-/commit/26c23f951d049241128e5e04a7bbc263e5b145f1
16 # isn't applied, so add that in to avoid: /usr/bin/ld: unrecognized option '--gdb-index'
18 # ofz50805.patch https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/350
19 # ofz46165.patch upstreamed as https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/351
20 # san.patch upstreamed as https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/352
22 $(eval
$(call gb_UnpackedTarball_add_patches
,cairo
,\
23 external
/cairo
/cairo
/cairo.buildfix.patch \
24 external
/cairo
/cairo
/cairo.RGB24_888.patch \
25 external
/cairo
/cairo
/cairo-libtool-rpath.patch
.1 \
26 external
/cairo
/cairo
/cairo.oldfreetype.patch \
27 external
/cairo
/cairo
/san.patch
.0 \
28 external
/cairo
/cairo
/cairo.ofz46165.patch
.1 \
29 external
/cairo
/cairo
/cairo.ofz50805.patch
.1 \
30 external
/cairo
/cairo
/0025-libtool-pass-use-ld.patch \
31 external
/cairo
/cairo
/libcairo-bundled-soname.patch
.0 \
32 external
/cairo
/cairo
/cairo-fd-hack.patch
.0 \
33 external
/cairo
/cairo
/cairo.ofz57493-Timeout.patch
.1 \
37 $(eval
$(call gb_UnpackedTarball_add_patches
,cairo
,\
38 external
/cairo
/cairo
/cairo-1.10
.2.no-atsui.patch \
39 external
/cairo
/cairo
/cairo-1.10
.2.ios.patch \
43 # To be applied only when ENABLE_ANDROID_LOK is not defined
44 ifeq ($(OS
)$(ENABLE_ANDROID_LOK
),ANDROID
)
45 $(eval
$(call gb_UnpackedTarball_add_patches
,cairo
,\
46 external
/cairo
/cairo
/cairo.GL_RGBA.patch \
50 ifneq (,$(filter ANDROID iOS
,$(OS
)))
51 $(eval
$(call gb_UnpackedTarball_add_file
,cairo
,.
,external
/cairo
/cairo
/dummy_pkg_config
))
54 # vim: set noet sw=4 ts=4: