Bump version to 4.1-6
[LibreOffice.git] / clucene / UnpackedTarball_clucene.mk
blob709640f2bfb2d4a8032cad5b9c35bae4a765025b
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 $(eval $(call gb_UnpackedTarball_add_patches,clucene,\
26 clucene/patches/clucene-debug.patch \
27 clucene/patches/clucene-multimap-put.patch \
28 clucene/patches/clucene-narrowing-conversions.patch \
29 clucene/patches/clucene-nullptr.patch \
30 clucene/patches/clucene-warnings.patch \
31 clucene/patches/clucene-aix.patch \
34 ifneq ($(OS),WNT)
35 $(eval $(call gb_UnpackedTarball_add_patches,clucene,\
36 clucene/patches/clucene-libcpp.patch \
38 endif
40 ifeq ($(OS),WNT)
41 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,clucene/configs/_clucene-config-MSVC.h))
42 ifeq ($(COM),MSC)
43 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-MSVC.h))
44 else
45 ifeq ($(HAVE_GCC_BUILTIN_ATOMIC),TRUE)
46 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-MINGW-atomic.h))
47 else
48 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-MINGW.h))
49 endif
50 endif
51 else # ! $(OS),WNT
52 ifeq ($(HAVE_GCC_BUILTIN_ATOMIC),TRUE)
53 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-GCC-atomic.h))
54 else
55 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-generic.h))
56 endif
57 ifeq ($(OS),LINUX)
58 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,clucene/configs/_clucene-config-LINUX.h))
59 else
60 $(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,clucene/configs/_clucene-config-generic.h))
61 endif
62 endif # $(OS),WNT
64 # vim: set noet sw=4 ts=4: