From 316be1b6f18963b39aab7729bf93fc9c86519e33 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 9 Nov 2013 15:52:36 +0100 Subject: bundle libebook Change-Id: I05d96875b9d1deb87dadd63f446080a6fe3494a9 Reviewed-on: https://gerrit.libreoffice.org/6630 Tested-by: LibreOffice gerrit bot Reviewed-by: David Tardon Tested-by: David Tardon --- external/libebook/ExternalProject_libebook.mk | 45 +++++++++++++++++++++++++++ external/libebook/Makefile | 7 +++++ external/libebook/Module_libebook.mk | 17 ++++++++++ external/libebook/README | 1 + external/libebook/UnpackedTarball_libebook.mk | 14 +++++++++ 5 files changed, 84 insertions(+) create mode 100644 external/libebook/ExternalProject_libebook.mk create mode 100644 external/libebook/Makefile create mode 100644 external/libebook/Module_libebook.mk create mode 100644 external/libebook/README create mode 100644 external/libebook/UnpackedTarball_libebook.mk (limited to 'external/libebook') diff --git a/external/libebook/ExternalProject_libebook.mk b/external/libebook/ExternalProject_libebook.mk new file mode 100644 index 000000000000..dbb7d2b87dfa --- /dev/null +++ b/external/libebook/ExternalProject_libebook.mk @@ -0,0 +1,45 @@ +# -*- 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,libebook)) + +$(eval $(call gb_ExternalProject_use_autoconf,libebook,build)) + +$(eval $(call gb_ExternalProject_register_targets,libebook,\ + build \ +)) + +$(eval $(call gb_ExternalProject_use_externals,libebook,\ + boost_headers \ + icu \ + libxml2 \ + wpd \ + zlib \ +)) + +$(call gb_ExternalProject_get_state_target,libebook,build) : + $(call gb_ExternalProject_run,build,\ + export PKG_CONFIG="" \ + && ./configure \ + --with-pic \ + --enable-static \ + --disable-shared \ + --without-docs \ + --disable-debug \ + --disable-werror \ + --disable-weffc \ + CXXFLAGS="$(if $(filter NO,$(SYSTEM_BOOST)),-I$(call gb_UnpackedTarball_get_dir,boost),$(BOOST_CPPFLAGS))" \ + XML_CFLAGS="$(if $(filter NO,$(SYSTEM_LIBXML)),-I$(call gb_UnpackedTarball_get_dir,xml2)/include,$(LIBXML_CFLAGS))" \ + XML_LIBS="$(LIBXML_LIBS)" \ + $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ + && cd src/lib \ + && $(MAKE) $(if $(VERBOSE)$(verbose),V=1) \ + ) + +# vim: set noet sw=4 ts=4: diff --git a/external/libebook/Makefile b/external/libebook/Makefile new file mode 100644 index 000000000000..e4968cf85fb6 --- /dev/null +++ b/external/libebook/Makefile @@ -0,0 +1,7 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/external/libebook/Module_libebook.mk b/external/libebook/Module_libebook.mk new file mode 100644 index 000000000000..cbc74f109868 --- /dev/null +++ b/external/libebook/Module_libebook.mk @@ -0,0 +1,17 @@ +# -*- 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_Module_Module,libebook)) + +$(eval $(call gb_Module_add_targets,libebook,\ + ExternalProject_libebook \ + UnpackedTarball_libebook \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libebook/README b/external/libebook/README new file mode 100644 index 000000000000..440db7dfb425 --- /dev/null +++ b/external/libebook/README @@ -0,0 +1 @@ +Library for import of various non-HTML reflowable e-book formats. diff --git a/external/libebook/UnpackedTarball_libebook.mk b/external/libebook/UnpackedTarball_libebook.mk new file mode 100644 index 000000000000..555837beb701 --- /dev/null +++ b/external/libebook/UnpackedTarball_libebook.mk @@ -0,0 +1,14 @@ +# -*- 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,libebook)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libebook,$(EBOOK_TARBALL))) + +# vim: set noet sw=4 ts=4: -- cgit