build fix
[LibreOffice.git] / external / libstaroffice / UnpackedTarball_libstaroffice.mk
blob41e7c63983e84509dce564f33295d53f2e89f5e5
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,libstaroffice))
12 $(eval $(call gb_UnpackedTarball_set_tarball,libstaroffice,$(STAROFFICE_TARBALL)))
14 $(eval $(call gb_UnpackedTarball_set_patchlevel,libstaroffice,0))
16 ifeq ($(COM_IS_CLANG),TRUE)
17 ifneq ($(filter -fsanitize=%,$(CC)),)
18 $(eval $(call gb_UnpackedTarball_add_patches,libstaroffice, \
19 external/libstaroffice/ubsan-visibility.patch \
21 endif
22 endif
24 ifneq ($(OS),MACOSX)
25 ifneq ($(OS),WNT)
26 $(eval $(call gb_UnpackedTarball_add_patches,libstaroffice, \
27 external/libstaroffice/libstaroffice-bundled-soname.patch.0 \
29 endif
30 endif
32 ifeq ($(SYSTEM_REVENGE),)
33 $(eval $(call gb_UnpackedTarball_add_patches,libstaroffice, \
34 external/libstaroffice/rpath.patch \
36 endif
38 $(eval $(call gb_UnpackedTarball_add_patches,libstaroffice, \
39 external/libstaroffice/0001-error-C2512-StarObject-no-appropriate-default-constr.patch.1 \
40 external/libstaroffice/0001-ofz-1029-use-correct-loop-index.patch.1 \
43 # vim: set noet sw=4 ts=4: