From 15b973ed64cb0c655b387c5022fc2ff0894520dd Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 14 Sep 2017 15:26:10 +0200 Subject: consistent naming of externals: xslt -> libxslt Change-Id: Ie66848187cef395d8b0af4727a4d9c0919e3c9dc Reviewed-on: https://gerrit.libreoffice.org/42299 Tested-by: Jenkins Reviewed-by: Michael Stahl --- external/libxslt/ExternalPackage_libxslt.mk | 32 +++++++++++++++++++ external/libxslt/ExternalPackage_xslt.mk | 32 ------------------- external/libxslt/ExternalProject_libxslt.mk | 49 +++++++++++++++++++++++++++++ external/libxslt/ExternalProject_xslt.mk | 49 ----------------------------- external/libxslt/Module_libxslt.mk | 6 ++-- external/libxslt/UnpackedTarball_libxslt.mk | 23 ++++++++++++++ external/libxslt/UnpackedTarball_xslt.mk | 23 -------------- external/libxslt/libxslt-config.patch.1 | 8 ++--- 8 files changed, 111 insertions(+), 111 deletions(-) create mode 100644 external/libxslt/ExternalPackage_libxslt.mk delete mode 100644 external/libxslt/ExternalPackage_xslt.mk create mode 100644 external/libxslt/ExternalProject_libxslt.mk delete mode 100644 external/libxslt/ExternalProject_xslt.mk create mode 100644 external/libxslt/UnpackedTarball_libxslt.mk delete mode 100644 external/libxslt/UnpackedTarball_xslt.mk (limited to 'external/libxslt') diff --git a/external/libxslt/ExternalPackage_libxslt.mk b/external/libxslt/ExternalPackage_libxslt.mk new file mode 100644 index 000000000000..01c88e6f562f --- /dev/null +++ b/external/libxslt/ExternalPackage_libxslt.mk @@ -0,0 +1,32 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalPackage_ExternalPackage,libxslt,libxslt)) + +$(eval $(call gb_ExternalPackage_use_external_project,libxslt,libxslt)) + +ifneq ($(DISABLE_DYNLOADING),TRUE) +ifeq ($(OS),MACOSX) +$(eval $(call gb_ExternalPackage_add_file,libxslt,$(LIBO_LIB_FOLDER)/libxslt.1.dylib,libxslt/.libs/libxslt.1.dylib)) +$(eval $(call gb_ExternalPackage_add_file,libxslt,$(LIBO_LIB_FOLDER)/libexslt.0.dylib,libexslt/.libs/libexslt.0.dylib)) +else ifeq ($(OS),WNT) +ifeq ($(COM),GCC) +$(eval $(call gb_ExternalPackage_add_file,libxslt,$(LIBO_LIB_FOLDER)/libxslt.dll,libxslt/.libs/libxslt.dll)) +$(eval $(call gb_ExternalPackage_add_file,libxslt,$(LIBO_LIB_FOLDER)/libexslt.dll,libexslt/.libs/libexslt.dll)) +else # COM=MSC +$(eval $(call gb_ExternalPackage_add_file,libxslt,$(LIBO_LIB_FOLDER)/libxslt.dll,win32/bin.msvc/libxslt.dll)) +$(eval $(call gb_ExternalPackage_add_file,libxslt,$(LIBO_LIB_FOLDER)/libexslt.dll,win32/bin.msvc/libexslt.dll)) +endif +else # OS!=WNT +$(eval $(call gb_ExternalPackage_add_file,libxslt,$(LIBO_LIB_FOLDER)/libxslt.so.1,libxslt/.libs/libxslt.so.1.1.30)) +$(eval $(call gb_ExternalPackage_add_file,libxslt,$(LIBO_LIB_FOLDER)/libexslt.so.0,libexslt/.libs/libexslt.so.0.8.18)) +endif +endif # DISABLE_DYNLOADING + +# vim: set noet sw=4 ts=4: diff --git a/external/libxslt/ExternalPackage_xslt.mk b/external/libxslt/ExternalPackage_xslt.mk deleted file mode 100644 index 4354bd4b6191..000000000000 --- a/external/libxslt/ExternalPackage_xslt.mk +++ /dev/null @@ -1,32 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -$(eval $(call gb_ExternalPackage_ExternalPackage,xslt,xslt)) - -$(eval $(call gb_ExternalPackage_use_external_project,xslt,xslt)) - -ifneq ($(DISABLE_DYNLOADING),TRUE) -ifeq ($(OS),MACOSX) -$(eval $(call gb_ExternalPackage_add_file,xslt,$(LIBO_LIB_FOLDER)/libxslt.1.dylib,libxslt/.libs/libxslt.1.dylib)) -$(eval $(call gb_ExternalPackage_add_file,xslt,$(LIBO_LIB_FOLDER)/libexslt.0.dylib,libexslt/.libs/libexslt.0.dylib)) -else ifeq ($(OS),WNT) -ifeq ($(COM),GCC) -$(eval $(call gb_ExternalPackage_add_file,xslt,$(LIBO_LIB_FOLDER)/libxslt.dll,libxslt/.libs/libxslt.dll)) -$(eval $(call gb_ExternalPackage_add_file,xslt,$(LIBO_LIB_FOLDER)/libexslt.dll,libexslt/.libs/libexslt.dll)) -else # COM=MSC -$(eval $(call gb_ExternalPackage_add_file,xslt,$(LIBO_LIB_FOLDER)/libxslt.dll,win32/bin.msvc/libxslt.dll)) -$(eval $(call gb_ExternalPackage_add_file,xslt,$(LIBO_LIB_FOLDER)/libexslt.dll,win32/bin.msvc/libexslt.dll)) -endif -else # OS!=WNT -$(eval $(call gb_ExternalPackage_add_file,xslt,$(LIBO_LIB_FOLDER)/libxslt.so.1,libxslt/.libs/libxslt.so.1.1.30)) -$(eval $(call gb_ExternalPackage_add_file,xslt,$(LIBO_LIB_FOLDER)/libexslt.so.0,libexslt/.libs/libexslt.so.0.8.18)) -endif -endif # DISABLE_DYNLOADING - -# vim: set noet sw=4 ts=4: diff --git a/external/libxslt/ExternalProject_libxslt.mk b/external/libxslt/ExternalProject_libxslt.mk new file mode 100644 index 000000000000..9dab4766e268 --- /dev/null +++ b/external/libxslt/ExternalProject_libxslt.mk @@ -0,0 +1,49 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalProject_ExternalProject,libxslt)) + +$(eval $(call gb_ExternalProject_use_external,libxslt,libxml2)) + +$(eval $(call gb_ExternalProject_register_targets,libxslt,\ + build \ +)) +ifeq ($(OS),WNT) +$(call gb_ExternalProject_get_state_target,libxslt,build): + $(call gb_ExternalProject_run,build,\ + cscript /e:javascript configure.js \ + $(if $(MSVC_USE_DEBUG_RUNTIME),cruntime=/MDd) \ + vcmanifest=yes \ + lib=$(call gb_UnpackedTarball_get_dir,libxml2)/win32/bin.msvc \ + && unset MAKEFLAGS \ + && LIB="$(ILIB)" nmake \ + ,win32) +else # OS!=WNT +$(call gb_ExternalProject_get_state_target,libxslt,build): + $(call gb_ExternalProject_run,build,\ + ./configure --without-crypto --without-python \ + $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ + $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \ + LDFLAGS="$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN" -Wl$(COMMA)-noinhibit-exec) \ + $(if $(SYSBASE),$(if $(filter SOLARIS LINUX,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \ + $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \ + $(if $(filter TRUE,$(DISABLE_DYNLOADING)), \ + $(if $(filter IOS,$(OS)),LIBS="-liconv") \ + --disable-shared,--disable-static) \ + $(if $(SYSTEM_LIBXML),,--with-libxml-src=$(call gb_UnpackedTarball_get_dir,libxml2)) \ + && chmod 777 xslt-config \ + && $(MAKE) \ + $(if $(filter MACOSX,$(OS)),\ + && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \ + $(gb_Package_SOURCEDIR_libxslt)/libxslt/.libs/libxslt.1.dylib \ + ) \ + ) +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/libxslt/ExternalProject_xslt.mk b/external/libxslt/ExternalProject_xslt.mk deleted file mode 100644 index 0dafc9109834..000000000000 --- a/external/libxslt/ExternalProject_xslt.mk +++ /dev/null @@ -1,49 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -$(eval $(call gb_ExternalProject_ExternalProject,xslt)) - -$(eval $(call gb_ExternalProject_use_external,xslt,libxml2)) - -$(eval $(call gb_ExternalProject_register_targets,xslt,\ - build \ -)) -ifeq ($(OS),WNT) -$(call gb_ExternalProject_get_state_target,xslt,build): - $(call gb_ExternalProject_run,build,\ - cscript /e:javascript configure.js \ - $(if $(MSVC_USE_DEBUG_RUNTIME),cruntime=/MDd) \ - vcmanifest=yes \ - lib=$(call gb_UnpackedTarball_get_dir,libxml2)/win32/bin.msvc \ - && unset MAKEFLAGS \ - && LIB="$(ILIB)" nmake \ - ,win32) -else # OS!=WNT -$(call gb_ExternalProject_get_state_target,xslt,build): - $(call gb_ExternalProject_run,build,\ - ./configure --without-crypto --without-python \ - $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ - $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \ - LDFLAGS="$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN" -Wl$(COMMA)-noinhibit-exec) \ - $(if $(SYSBASE),$(if $(filter SOLARIS LINUX,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \ - $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \ - $(if $(filter TRUE,$(DISABLE_DYNLOADING)), \ - $(if $(filter IOS,$(OS)),LIBS="-liconv") \ - --disable-shared,--disable-static) \ - $(if $(SYSTEM_LIBXML),,--with-libxml-src=$(call gb_UnpackedTarball_get_dir,libxml2)) \ - && chmod 777 xslt-config \ - && $(MAKE) \ - $(if $(filter MACOSX,$(OS)),\ - && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \ - $(gb_Package_SOURCEDIR_xslt)/libxslt/.libs/libxslt.1.dylib \ - ) \ - ) -endif - -# vim: set noet sw=4 ts=4: diff --git a/external/libxslt/Module_libxslt.mk b/external/libxslt/Module_libxslt.mk index 6a88fe20e229..9704338920c6 100644 --- a/external/libxslt/Module_libxslt.mk +++ b/external/libxslt/Module_libxslt.mk @@ -10,9 +10,9 @@ $(eval $(call gb_Module_Module,libxslt)) $(eval $(call gb_Module_add_targets,libxslt,\ - ExternalPackage_xslt \ - ExternalProject_xslt \ - UnpackedTarball_xslt \ + ExternalPackage_libxslt \ + ExternalProject_libxslt \ + UnpackedTarball_libxslt \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libxslt/UnpackedTarball_libxslt.mk b/external/libxslt/UnpackedTarball_libxslt.mk new file mode 100644 index 000000000000..a3ac75ca9c88 --- /dev/null +++ b/external/libxslt/UnpackedTarball_libxslt.mk @@ -0,0 +1,23 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_UnpackedTarball_UnpackedTarball,libxslt)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libxslt,$(LIBXSLT_TARBALL))) + +$(eval $(call gb_UnpackedTarball_add_patches,libxslt,\ + external/libxslt/libxslt-config.patch.1 \ + external/libxslt/libxslt-internal-symbols.patch.1 \ + external/libxslt/libxslt-msvc.patch.2 \ + external/libxslt/libxslt-1.1.26-memdump.patch \ + external/libxslt/rpath.patch.0 \ + external/libxslt/iOS.patch.0 \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libxslt/UnpackedTarball_xslt.mk b/external/libxslt/UnpackedTarball_xslt.mk deleted file mode 100644 index da6bbe7891cc..000000000000 --- a/external/libxslt/UnpackedTarball_xslt.mk +++ /dev/null @@ -1,23 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -$(eval $(call gb_UnpackedTarball_UnpackedTarball,xslt)) - -$(eval $(call gb_UnpackedTarball_set_tarball,xslt,$(LIBXSLT_TARBALL))) - -$(eval $(call gb_UnpackedTarball_add_patches,xslt,\ - external/libxslt/libxslt-config.patch.1 \ - external/libxslt/libxslt-internal-symbols.patch.1 \ - external/libxslt/libxslt-msvc.patch.2 \ - external/libxslt/libxslt-1.1.26-memdump.patch \ - external/libxslt/rpath.patch.0 \ - external/libxslt/iOS.patch.0 \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/external/libxslt/libxslt-config.patch.1 b/external/libxslt/libxslt-config.patch.1 index dc33871398cc..7e2936357671 100644 --- a/external/libxslt/libxslt-config.patch.1 +++ b/external/libxslt/libxslt-config.patch.1 @@ -13,13 +13,13 @@ Hack the xslt-config to return paths into WORKDIR. +#includedir=@includedir@ +#libdir=@libdir@ + -+prefix=${WORKDIR}/UnpackedTarball/xslt -+exec_prefix=${WORKDIR}/UnpackedTarball/xsltproc ++prefix=${WORKDIR}/UnpackedTarball/libxslt ++exec_prefix=${WORKDIR}/UnpackedTarball/libxslt exec_prefix_set=no -includedir=@includedir@ -libdir=@libdir@ -+includedir=${WORKDIR}/UnpackedTarball/xslt/libxslt -+libdir=${WORKDIR}/UnpackedTarball/xslt/libxslt/.libs ++includedir=${WORKDIR}/UnpackedTarball/libxslt/libxslt ++libdir=${WORKDIR}/UnpackedTarball/libxslt/libxslt/.libs usage() { -- cgit