bump product version to 7.6.3.2-android
[LibreOffice.git] / external / libxslt / ExternalProject_libxslt.mk
blob842f60db2e89504861e8aaa94f134470301be834
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_Trace_StartRange,libxslt,EXTERNAL)
22 $(call gb_ExternalProject_run,build,\
23 cscript /e:javascript configure.js \
24 $(if $(MSVC_USE_DEBUG_RUNTIME),cruntime=/MDd) \
25 $(if $(filter TRUE,$(ENABLE_DBGUTIL)),debug=yes) \
26 vcmanifest=yes \
27 lib=$(call gb_UnpackedTarball_get_dir,libxml2)/win32/bin.msvc \
28 && nmake \
29 ,win32)
30 $(call gb_Trace_EndRange,libxslt,EXTERNAL)
31 else # OS!=WNT
32 $(call gb_ExternalProject_get_state_target,libxslt,build):
33 $(call gb_Trace_StartRange,libxslt,EXTERNAL)
34 $(call gb_ExternalProject_run,build,\
35 $(gb_RUN_CONFIGURE) ./configure --without-crypto --without-python \
36 $(gb_CONFIGURE_PLATFORMS) \
37 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
38 LDFLAGS="$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN" -Wl$(COMMA)-noinhibit-exec) \
39 $(if $(SYSBASE),$(if $(filter SOLARIS LINUX,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
40 $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \
41 $(if $(filter TRUE,$(DISABLE_DYNLOADING)), \
42 $(if $(filter iOS,$(OS)),LIBS="-liconv") \
43 --disable-shared,--disable-static) \
44 $(if $(SYSTEM_LIBXML),,--with-libxml-src=$(call gb_UnpackedTarball_get_dir,libxml2)) \
45 && chmod 777 xslt-config \
46 && $(MAKE) \
47 $(if $(filter MACOSX,$(OS)),\
48 && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
49 $(EXTERNAL_WORKDIR)/libxslt/.libs/libxslt.1.dylib \
50 ) \
52 $(call gb_Trace_EndRange,libxslt,EXTERNAL)
53 endif
55 # vim: set noet sw=4 ts=4: