Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / libxslt / ExternalProject_libxslt.mk
blob16cc2a8b0d65e69700929d9bde18cc8fd1709f2e
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,libxslt))
12 $(eval $(call gb_ExternalProject_use_external,libxslt,libxml2))
14 $(eval $(call gb_ExternalProject_register_targets,libxslt,\
15 build \
17 ifeq ($(OS),WNT)
18 $(eval $(call gb_ExternalProject_use_nmake,libxslt,build))
20 $(call gb_ExternalProject_get_state_target,libxslt,build):
21 $(call gb_ExternalProject_run,build,\
22 cscript /e:javascript configure.js \
23 $(if $(MSVC_USE_DEBUG_RUNTIME),cruntime=/MDd) \
24 $(if $(filter TRUE,$(ENABLE_DBGUTIL)),debug=yes) \
25 vcmanifest=yes \
26 lib=$(call gb_UnpackedTarball_get_dir,libxml2)/win32/bin.msvc \
27 && nmake \
28 ,win32)
29 else # OS!=WNT
30 $(call gb_ExternalProject_get_state_target,libxslt,build):
31 $(call gb_ExternalProject_run,build,\
32 ./configure --without-crypto --without-python \
33 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
34 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
35 LDFLAGS="$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN" -Wl$(COMMA)-noinhibit-exec) \
36 $(if $(SYSBASE),$(if $(filter SOLARIS LINUX,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
37 $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \
38 $(if $(filter TRUE,$(DISABLE_DYNLOADING)), \
39 $(if $(filter iOS,$(OS)),LIBS="-liconv") \
40 --disable-shared,--disable-static) \
41 $(if $(SYSTEM_LIBXML),,--with-libxml-src=$(call gb_UnpackedTarball_get_dir,libxml2)) \
42 && chmod 777 xslt-config \
43 && $(MAKE) \
44 $(if $(filter MACOSX,$(OS)),\
45 && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
46 $(EXTERNAL_WORKDIR)/libxslt/.libs/libxslt.1.dylib \
47 ) \
49 endif
51 # vim: set noet sw=4 ts=4: