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
,\
16 hunspell_CPPCLAGS
=$(CPPFLAGS
)
18 hunspell_CPPFLAGS
+=$(gb_COMPILERDEFS_STDLIB_DEBUG
)
20 hunspell_CXXFLAGS
:=$(CXXFLAGS
) $(gb_LTOFLAGS
) \
21 $(gb_EMSCRIPTEN_CPPFLAGS
) \
22 $(call gb_ExternalProject_get_build_flags
,hunspell
)
24 hunspell_LDFLAGS
:=$(gb_LTOFLAGS
) $(call gb_ExternalProject_get_link_flags
,hunspell
)
26 $(call gb_ExternalProject_get_state_target
,hunspell
,build
):
27 $(call gb_Trace_StartRange
,hunspell
,EXTERNAL
)
28 $(call gb_ExternalProject_run
,build
,\
29 $(gb_RUN_CONFIGURE
) .
/configure
--disable-shared
--disable-nls
--with-pic \
30 $(gb_CONFIGURE_PLATFORMS
) \
31 $(if
$(hunspell_CPPFLAGS
),CPPFLAGS
='$(hunspell_CPPFLAGS)') \
32 $(if
$(hunspell_CXXFLAGS
),CXXFLAGS
='$(hunspell_CXXFLAGS)') \
33 $(if
$(hunspell_LDFLAGS
),LDFLAGS
='$(hunspell_LDFLAGS)') \
34 && cd src
/hunspell
&& $(MAKE
) \
36 $(call gb_Trace_EndRange
,hunspell
,EXTERNAL
)
38 # vim: set noet sw=4 ts=4: