Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / external / libetonyek / ExternalProject_libetonyek.mk
blob4eaa90bd99c35a1c99b0a29f5dd50146bab489ef
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,\
15 build \
18 $(eval $(call gb_ExternalProject_use_externals,libetonyek,\
19 boost_headers \
20 glm_headers \
21 liblangtag \
22 libxml2 \
23 mdds_headers \
24 revenge \
25 zlib \
28 $(call gb_ExternalProject_get_state_target,libetonyek,build) :
29 $(call gb_ExternalProject_run,build,\
30 export PKG_CONFIG="" \
31 && MAKE=$(MAKE) ./configure \
32 --with-pic \
33 $(if $(DISABLE_DYNLOADING), \
34 --enable-static --disable-shared \
35 , \
36 --enable-shared --disable-static \
37 ) \
38 --without-docs \
39 $(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
40 --disable-tests \
41 --disable-werror \
42 --disable-weffc \
43 --without-tools \
44 --with-mdds=1.0 \
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) \
58 && $(MAKE) \
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 \
62 ) \
65 # vim: set noet sw=4 ts=4: