Bump version to 5.0-14
[LibreOffice.git] / external / libetonyek / ExternalProject_libetonyek.mk
blobfbb754e0118e0c088b293efcb925934139b935a5
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 libxml2 \
22 mdds_headers \
23 revenge \
24 zlib \
27 $(call gb_ExternalProject_get_state_target,libetonyek,build) :
28 $(call gb_ExternalProject_run,build,\
29 export PKG_CONFIG="" \
30 && MAKE=$(MAKE) ./configure \
31 --with-pic \
32 --enable-shared \
33 --disable-static \
34 --without-docs \
35 $(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
36 --disable-werror \
37 --disable-weffc \
38 --without-tools \
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) \
49 && $(MAKE) \
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 \
53 ) \
56 # vim: set noet sw=4 ts=4: