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_Trace_StartRange
,libetonyek
,EXTERNAL
)
30 $(call gb_ExternalProject_run
,build
,\
31 export PKG_CONFIG
="" \
32 && MAKE
=$(MAKE
) $(gb_RUN_CONFIGURE
) .
/configure \
34 $(if
$(DISABLE_DYNLOADING
), \
35 --enable-static
--disable-shared \
37 --enable-shared
--disable-static \
40 $(if
$(ENABLE_DEBUG
),--enable-debug
,--disable-debug
) \
46 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),MKDIR_P
="$(shell cygpath -m /usr/bin/mkdir) -p") \
47 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
48 $(if
$(filter LINUX
,$(OS
)), \
49 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
50 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
51 CPPFLAGS
="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
52 CXXFLAGS
="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libetonyek)" \
53 LANGTAG_CFLAGS
="$(LIBLANGTAG_CFLAGS)" \
54 LANGTAG_LIBS
="$(LIBLANGTAG_LIBS)" \
55 XML_CFLAGS
="$(LIBXML_CFLAGS)" \
56 XML_LIBS
="$(LIBXML_LIBS)" \
57 $(gb_CONFIGURE_PLATFORMS
) \
58 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
60 $(if
$(filter MACOSX
,$(OS
)),\
61 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
62 $(EXTERNAL_WORKDIR
)/src
/lib
/.libs
/libetonyek-0.1
.1.dylib \
65 $(call gb_Trace_EndRange
,libetonyek
,EXTERNAL
)
67 # vim: set noet sw=4 ts=4: