update credits
[LibreOffice.git] / external / clucene / UnpackedTarball_clucene.mk
blob3acdb35b57574b51d73c77e3d0f5250e2afa9c2a
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,clucene))
12 $(eval $(call gb_UnpackedTarball_set_tarball,clucene,$(CLUCENE_TARBALL)))
14 ifneq ($(OS),WNT)
15 $(eval $(call gb_UnpackedTarball_set_post_action,clucene,\
16 mkdir -p inc/internal/CLucene/util && \
17 mv src/shared/CLucene/util/dirent.h inc/internal/CLucene/util \
19 endif
21 $(eval $(call gb_UnpackedTarball_set_patchlevel,clucene,0))
23 # clucene-multimap-put.patch was proposed upstream, see
24 # http://sourceforge.net/mailarchive/message.php?msg_id=29143260
25 # clucene-mutex.patch was proposed upstream, see
26 # http://sourceforge.net/mailarchive/message.php?msg_id=32314782
27 # clucene-asan.patch was proposed upstream, see
28 # http://sourceforge.net/mailarchive/message.php?msg_id=32367781
29 # see msvc14.0 error report on:
30 # https://connect.microsoft.com/VisualStudio/feedback/details/1424082/vs2015-rc-c-compiler-mixes-up-template-parameter-with-identical-named-inherited-typedef
31 # ostream-wchar_t.patch was proposed upstream, see
32 # <https://sourceforge.net/p/clucene/mailman/message/36989348/>
33 # heap-buffer-overflow.patch was proposed upstream, see
34 # <https://sourceforge.net/p/clucene/mailman/message/36991067/>
35 # c++20.patch was proposed upstream, see
36 # <https://sourceforge.net/p/clucene/mailman/message/37040362/>
37 # nullstring.patch was proposed upstream, see
38 # <https://sourceforge.net/p/clucene/mailman/message/37338234/>
39 $(eval $(call gb_UnpackedTarball_add_patches,clucene,\
40 external/clucene/patches/clucene-debug.patch \
41 external/clucene/patches/clucene-multimap-put.patch \
42 external/clucene/patches/clucene-narrowing-conversions.patch \
43 external/clucene/patches/clucene-nullptr.patch \
44 external/clucene/patches/clucene-warnings.patch \
45 external/clucene/patches/clucene-git1-win64.patch \
46 external/clucene/patches/clucene-ub.patch \
47 external/clucene/patches/clucene-mutex.patch \
48 external/clucene/patches/clucene-asan.patch \
49 external/clucene/patches/clucene-mixes-uptemplate-parameter-msvc-14.patch \
50 external/clucene/patches/ostream-wchar_t.patch \
51 external/clucene/patches/heap-buffer-overflow.patch \
52 external/clucene/patches/c++20.patch \
53 external/clucene/patches/write-strings.patch \
54 external/clucene/patches/nullstring.patch \
55 external/clucene/patches/binary_function.patch \
56 external/clucene/patches/clucene-pure-virtual.patch \
57 external/clucene/patches/enumarith.patch \
58 external/clucene/patches/clucene-reprobuild.patch.1 \
61 ifneq ($(OS),WNT)
62 $(eval $(call gb_UnpackedTarball_add_patches,clucene,\
63 external/clucene/patches/clucene-libcpp.patch \
65 endif
67 ifeq ($(OS),WNT)
68 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,external/clucene/configs/_clucene-config-MSVC.h))
69 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,external/clucene/configs/clucene-config-MSVC.h))
70 else # ! $(OS),WNT
71 ifeq ($(HAVE_GCC_BUILTIN_ATOMIC),TRUE)
72 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,external/clucene/configs/clucene-config-GCC-atomic.h))
73 else
74 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,external/clucene/configs/clucene-config-generic.h))
75 endif
76 ifeq ($(OS),LINUX)
77 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,external/clucene/configs/_clucene-config-LINUX.h))
78 else
79 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,external/clucene/configs/_clucene-config-generic.h))
80 endif
81 endif # $(OS),WNT
83 # vim: set noet sw=4 ts=4: