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
,libetonyek
))
12 $(eval
$(call gb_ExternalProject_use_autoconf
,libetonyek
,build
))
14 $(eval
$(call gb_ExternalProject_register_targets
,libetonyek
,\
18 $(eval
$(call gb_ExternalProject_use_externals
,libetonyek
,\
28 $(call gb_ExternalProject_get_state_target
,libetonyek
,build
) :
29 $(call gb_ExternalProject_run
,build
,\
30 export PKG_CONFIG
="" \
31 && MAKE
=$(MAKE
) .
/configure \
33 $(if
$(DISABLE_DYNLOADING
), \
34 --enable-static
--disable-shared \
36 --enable-shared
--disable-static \
39 $(if
$(ENABLE_DEBUG
),--enable-debug
,--disable-debug
) \
45 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),MKDIR_P
="$(shell cygpath -m /usr/bin/mkdir) -p") \
46 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
47 $(if
$(filter LINUX
,$(OS
)), \
48 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
49 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
50 CPPFLAGS
="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
51 CXXFLAGS
="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
52 LANGTAG_CFLAGS
="$(LIBLANGTAG_CFLAGS)" \
53 LANGTAG_LIBS
="$(LIBLANGTAG_LIBS)" \
54 XML_CFLAGS
="$(LIBXML_CFLAGS)" \
55 XML_LIBS
="$(LIBXML_LIBS)" \
56 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
57 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
59 $(if
$(filter MACOSX
,$(OS
)),\
60 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
61 $(EXTERNAL_WORKDIR
)/src
/lib
/.libs
/libetonyek-0.1
.1.dylib \
65 # vim: set noet sw=4 ts=4: