update credits
[LibreOffice.git] / external / hunspell / ExternalProject_hunspell.mk
blob43da1c254e34ed7fd36bea251ac514db2a5838fe
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_ExternalProject_ExternalProject,hunspell))
12 $(eval $(call gb_ExternalProject_register_targets,hunspell,\
13 build \
16 hunspell_CPPCLAGS=$(CPPFLAGS)
18 ifneq (,$(filter ANDROID DRAGONFLY FREEBSD iOS LINUX NETBSD OPENBSD,$(OS)))
19 ifneq (,$(gb_ENABLE_DBGUTIL))
20 hunspell_CPPFLAGS+=-D_GLIBCXX_DEBUG
21 endif
22 endif
24 $(call gb_ExternalProject_get_state_target,hunspell,build):
25 $(call gb_Trace_StartRange,hunspell,EXTERNAL)
26 $(call gb_ExternalProject_run,build,\
27 ./configure --disable-shared --disable-nls --with-pic \
28 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM))\
29 $(if $(filter AIX,$(OS)),CFLAGS="-D_LINUX_SOURCE_COMPAT") \
30 $(if $(hunspell_CPPFLAGS),CPPFLAGS='$(hunspell_CPPFLAGS)') \
31 CXXFLAGS="$(CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) $(if $(debug),$(gb_DEBUGINFO_FLAGS))" \
32 && cd src/hunspell && $(MAKE) \
34 $(call gb_Trace_EndRange,hunspell,EXTERNAL)
36 # vim: set noet sw=4 ts=4: