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
,libnumbertext
))
12 $(eval
$(call gb_ExternalProject_use_externals
,libnumbertext
, \
15 $(eval
$(call gb_ExternalProject_register_targets
,libnumbertext
,\
19 libnumbertext_CXXFLAGS
=$(CXXFLAGS
) $(CXXFLAGS_CXX11
)
21 ifneq (,$(filter ANDROID DRAGONFLY FREEBSD iOS LINUX NETBSD OPENBSD
,$(OS
)))
22 ifneq (,$(gb_ENABLE_DBGUTIL
))
23 libnumbertext_CPPFLAGS
+=-D_GLIBCXX_DEBUG
27 $(call gb_ExternalProject_get_state_target
,libnumbertext
,build
):
28 $(call gb_ExternalProject_run
,build
,\
29 LIBS
="$(gb_STDLIBS) $(LIBS)" \
30 $(SHELL
) .
/configure
--disable-shared
--with-pic \
31 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
32 $(if
$(ENABLE_WERROR
),--enable-werror
,--disable-werror
) \
33 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
))\
34 $(if
$(filter AIX
,$(OS
)),CFLAGS
="-D_LINUX_SOURCE_COMPAT") \
35 $(if
$(libnumbertext_CPPFLAGS
),CPPFLAGS
='$(libnumbertext_CPPFLAGS)') \
36 CXXFLAGS
="$(libnumbertext_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) $(if $(debug),$(gb_DEBUGINFO_FLAGS)) $(gb_VISIBILITY_FLAGS) $(gb_VISIBILITY_FLAGS_CXX)" \
37 && cd src
&& $(MAKE
) \
40 # vim: set noet sw=4 ts=4: