Slightly optimize truncateToLength and padToLength
[LibreOffice.git] / external / cairo / UnpackedTarball_cairo.mk
blob49a4a726bbe20432eb296775ae835189a910b666
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 $(eval $(call gb_UnpackedTarball_add_patches,cairo,\
15 external/cairo/cairo/cairo.buildfix.patch \
16 external/cairo/cairo/cairo.RGB24_888.patch \
17 external/cairo/cairo/cairo-libtool-rpath.patch.1 \
18 external/cairo/cairo/cairo.oldfreetype.patch \
19 external/cairo/cairo/san.patch.0 \
20 external/cairo/cairo/0001-Fix-mask-usage-in-image-compositor.patch.1 \
21 external/cairo/cairo/cairo-fix_function_signature.patch.1 \
24 ifeq ($(OS),iOS)
25 $(eval $(call gb_UnpackedTarball_add_patches,cairo,\
26 external/cairo/cairo/cairo-1.10.2.no-atsui.patch \
27 external/cairo/cairo/cairo-1.10.2.ios.patch \
29 endif
31 # To be applied only when ENABLE_ANDROID_LOK is not defined
32 ifeq ($(OS)$(ENABLE_ANDROID_LOK),ANDROID)
33 $(eval $(call gb_UnpackedTarball_add_patches,cairo,\
34 external/cairo/cairo/cairo.GL_RGBA.patch \
36 endif
38 ifneq (,$(filter ANDROID iOS,$(OS)))
39 $(eval $(call gb_UnpackedTarball_add_file,cairo,.,external/cairo/cairo/dummy_pkg_config))
40 endif
42 # vim: set noet sw=4 ts=4: