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
,\
27 $(call gb_ExternalProject_get_state_target
,libetonyek
,build
) :
28 $(call gb_ExternalProject_run
,build
,\
29 export PKG_CONFIG
="" \
30 && MAKE
=$(MAKE
) .
/configure \
35 $(if
$(ENABLE_DEBUG
),--enable-debug
,--disable-debug
) \
39 $(if
$(filter WNT
,$(OS_FOR_BUILD
)),MKDIR_P
="$(shell cygpath -m /usr/bin/mkdir) -p") \
40 $(if
$(VERBOSE
)$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
41 $(if
$(filter LINUX
,$(OS
)), \
42 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
43 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
44 CPPFLAGS
="$(CPPFLAGS) $(if $(SYSTEM_BOOST),$(BOOST_CPPFLAGS),-I$(call gb_UnpackedTarball_get_dir,boost))" \
45 XML_CFLAGS
="$(LIBXML_CFLAGS)" \
46 XML_LIBS
="$(LIBXML_LIBS)" \
47 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
48 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
50 $(if
$(filter MACOSX
,$(OS
)),\
51 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
52 $(EXTERNAL_WORKDIR
)/src
/lib
/.libs
/libetonyek-0.1
.1.dylib \
56 # vim: set noet sw=4 ts=4: