2012-08-20 07:06:44 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
#
|
|
|
|
# This file is part of the LibreOffice project.
|
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call gb_UnpackedTarball_UnpackedTarball,clucene))
|
|
|
|
|
2012-08-24 09:56:49 -05:00
|
|
|
$(eval $(call gb_UnpackedTarball_set_tarball,clucene,$(CLUCENE_TARBALL)))
|
2012-08-20 07:06:44 -05:00
|
|
|
|
|
|
|
ifneq ($(OS),WNT)
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_post_action,clucene,\
|
|
|
|
mkdir -p inc/internal/CLucene/util && \
|
|
|
|
mv src/shared/CLucene/util/dirent.h inc/internal/CLucene/util \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_patchlevel,clucene,0))
|
|
|
|
|
|
|
|
# clucene-multimap-put.patch was proposed upstream, see
|
|
|
|
# http://sourceforge.net/mailarchive/message.php?msg_id=29143260
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_patches,clucene,\
|
|
|
|
clucene/patches/clucene-debug.patch \
|
|
|
|
clucene/patches/clucene-internal-zlib.patch \
|
|
|
|
clucene/patches/clucene-multimap-put.patch \
|
|
|
|
clucene/patches/clucene-narrowing-conversions.patch \
|
|
|
|
clucene/patches/clucene-nullptr.patch \
|
|
|
|
clucene/patches/clucene-warnings.patch \
|
|
|
|
))
|
|
|
|
|
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,clucene/configs/_clucene-config-MSVC.h))
|
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-MSVC.h))
|
|
|
|
else
|
2012-08-27 04:49:36 -05:00
|
|
|
ifeq ($(HAVE_GCC_BUILTIN_ATOMIC),TRUE)
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-MINGW-atomic.h))
|
|
|
|
else
|
2012-08-20 07:06:44 -05:00
|
|
|
$(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-MINGW.h))
|
|
|
|
endif
|
2012-08-27 04:49:36 -05:00
|
|
|
endif
|
2012-08-20 07:06:44 -05:00
|
|
|
else # ! $(OS),WNT
|
2012-08-27 04:49:36 -05:00
|
|
|
ifeq ($(HAVE_GCC_BUILTIN_ATOMIC),TRUE)
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-GCC-atomic.h))
|
|
|
|
else
|
2012-08-20 07:06:44 -05:00
|
|
|
$(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/clucene-config.h,clucene/configs/clucene-config-generic.h))
|
2012-08-27 04:49:36 -05:00
|
|
|
endif
|
2012-08-20 07:06:44 -05:00
|
|
|
ifeq ($(OS),LINUX)
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,clucene/configs/_clucene-config-LINUX.h))
|
|
|
|
else
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_file,clucene,src/shared/CLucene/_clucene-config.h,clucene/configs/_clucene-config-generic.h))
|
|
|
|
endif
|
|
|
|
endif # $(OS),WNT
|
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|