Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / external / hunspell / ExternalProject_hunspell.mk
blob984485fc2a2c5a8aa58fcee8bea6e0161c16839c
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_ExternalProject_run,build,\
26 $(if $(filter IOS MACOSX,$(OS)),ACLOCAL="aclocal -I $(SRCDIR)/m4/mac") \
27 LIBS="$(gb_STDLIBS) $(LIBS)" \
28 autoreconf && \
29 $(SHELL) ./configure --disable-shared --disable-nls --with-pic \
30 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM))\
31 $(if $(filter AIX,$(OS)),CFLAGS="-D_LINUX_SOURCE_COMPAT") \
32 $(if $(hunspell_CPPFLAGS),CPPFLAGS='$(hunspell_CPPFLAGS)') \
33 CXXFLAGS="$(CXXFLAGS) $(if $(debug),$(gb_COMPILERNOOPTFLAGS) $(gb_DEBUGINFO_FLAGS) $(gb_DEBUG_CXXFLAGS),$(gb_COMPILEROPTFLAGS))" \
34 && cd src/hunspell && $(MAKE) \
37 # vim: set noet sw=4 ts=4: