Bump version to 5.0-14
[LibreOffice.git] / external / clucene / UnpackedTarball_clucene.mk
blob93defa2bd7975904d02f02dcbf01380e4b9a2048
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 $(eval $(call gb_UnpackedTarball_add_patches,clucene,\
30 external/clucene/patches/clucene-debug.patch \
31 external/clucene/patches/clucene-multimap-put.patch \
32 external/clucene/patches/clucene-narrowing-conversions.patch \
33 external/clucene/patches/clucene-nullptr.patch \
34 external/clucene/patches/clucene-warnings.patch \
35 external/clucene/patches/clucene-aix.patch \
36 external/clucene/patches/clucene-git1-win64.patch \
37 external/clucene/patches/clucene-ub.patch \
38 external/clucene/patches/clucene-mutex.patch \
39 external/clucene/patches/clucene-asan.patch \
42 ifneq ($(OS),WNT)
43 $(eval $(call gb_UnpackedTarball_add_patches,clucene,\
44 external/clucene/patches/clucene-libcpp.patch \
46 endif
48 ifeq ($(OS),WNT)
49 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,external/clucene/configs/_clucene-config-MSVC.h))
50 ifeq ($(COM),MSC)
51 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,external/clucene/configs/clucene-config-MSVC.h))
52 else
53 ifeq ($(HAVE_GCC_BUILTIN_ATOMIC),TRUE)
54 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,external/clucene/configs/clucene-config-MINGW-atomic.h))
55 else
56 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,external/clucene/configs/clucene-config-MINGW.h))
57 endif
58 endif
59 else # ! $(OS),WNT
60 ifeq ($(HAVE_GCC_BUILTIN_ATOMIC),TRUE)
61 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,external/clucene/configs/clucene-config-GCC-atomic.h))
62 else
63 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,external/clucene/configs/clucene-config-generic.h))
64 endif
65 ifeq ($(OS),LINUX)
66 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,external/clucene/configs/_clucene-config-LINUX.h))
67 else
68 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,external/clucene/configs/_clucene-config-generic.h))
69 endif
70 endif # $(OS),WNT
72 # vim: set noet sw=4 ts=4: