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
,freetype
))
12 $(eval
$(call gb_UnpackedTarball_set_tarball
,freetype
,$(FREETYPE_TARBALL
),,freetype
))
14 $(eval
$(call gb_UnpackedTarball_add_patches
,freetype
,\
15 external
/freetype
/freetype-2.6
.5.patch
.1 \
16 external
/freetype
/ubsan.patch \
17 external
/freetype
/freetype-fd-hack.patch
.0 \
20 # Enable FreeType's FT_DEBUG_LOGGING at least in --enable-dbgutil DISABLE_DYNLOADING builds (in
21 # non-DISABLE_DYNLOADING builds, this would not work, as libfreetype.a contains a global variable
22 # ft_trace_levels that is initialized in ft_debug_init, but various of our shared libraries each
23 # include libfreetype.a, so each have their own ft_trace_levels instance, but only one ft_debug_init
24 # is called, so only one of those instances is initailized while the others remain nullptrs; and see
25 # workdir/UnpackedTarball/freetype/docs/DEBUG for how to actually make use of that by setting an
26 # FT2_DEBUG environment variable at runtime):
27 ifeq ($(ENABLE_DBGUTIL
)-$(DISABLE_DYNLOADING
),TRUE-TRUE
)
28 $(eval
$(call gb_UnpackedTarball_add_patches
,freetype
, \
29 external
/freetype
/logging.patch
.0 \
33 $(eval
$(call gb_UnpackedTarball_set_patchlevel
,freetype
,0))
35 # vim: set noet sw=4 ts=4: