Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / external / liblangtag / ExternalProject_langtag.mk
blob33a7bf26bdcf422dd1794c4eaf42c7d49f0e7f13
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,langtag))
12 $(eval $(call gb_ExternalProject_use_external,langtag,libxml2))
14 $(eval $(call gb_ExternalProject_use_autoconf,langtag,build))
16 $(eval $(call gb_ExternalProject_register_targets,langtag,\
17 build \
20 # disable ccache on windows, as it doesn't cope with the quoted defines
21 # liblangtag uses (-DBUILDDIR="\"$(abs_top_builddir)\"" and similar).
22 # Results in "cl : Command line error D8003 : missing source filename"
23 $(call gb_ExternalProject_get_state_target,langtag,build):
24 $(call gb_ExternalProject_run,build,\
25 ./configure --disable-modules --disable-test --disable-introspection --disable-shared --enable-static --with-pic \
26 $(if $(filter TRUE,$(HAVE_GCC_BUILTIN_ATOMIC)),"lt_cv_has_atomic=yes","lt_cv_has_atomic=no") \
27 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) "ac_cv_va_copy=no") \
28 $(if $(SYSTEM_LIBXML),\
29 $(if $(filter MACOSX,$(OS)),LIBXML2_CFLAGS="$(LIBXML_CFLAGS)" LIBXML2_LIBS="$(LIBXML_LIBS)"), \
30 LIBXML2_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,xml2)/include" \
31 LIBXML2_LIBS=$(if $(filter WNTMSC,$(OS)$(COM)),"-L$(call gb_UnpackedTarball_get_dir,xml2)/win32/bin.msvc -llibxml2","-L$(call gb_UnpackedTarball_get_dir,xml2)/.libs -lxml2")) \
32 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
33 $(if $(filter-out LINUX FREEBSD,$(OS)),,LDFLAGS="-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath,\\"\$$\$$ORIGIN:'\'\$$\$$ORIGIN/../ure-link/lib) \
34 $(if $(filter-out SOLARIS,$(OS)),,LDFLAGS="-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-R$(COMMA)\\"\$$\$$ORIGIN:'\'\$$\$$ORIGIN/../ure-link/lib) \
35 $(if $(filter-out WNTGCC,$(OS)$(COM)),,LDFLAGS="-Wl$(COMMA)--enable-runtime-pseudo-reloc-v2") \
36 && $(if $(filter WNTMSC,$(OS)$(COM)),REAL_CC="$(shell cygpath -w $(lastword $(CC)))") \
37 $(if $(VERBOSE)$(verbose),V=1) \
38 $(gb_Helper_set_ld_path) \
39 $(MAKE) \
41 # vim: set noet sw=4 ts=4: