From 2728c6e8da276c1955878f766c71acd0fd59c9ce Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 18 Oct 2013 20:09:12 +0200 Subject: fdo#70393: move libmwaw to a subdir of external Change-Id: I8ba2b928638cf3f16c4500eeaec5a5ce91dd85f6 Reviewed-on: https://gerrit.libreoffice.org/6332 Reviewed-by: David Tardon Tested-by: David Tardon --- external/Module_external.mk | 1 + external/libmwaw/ExternalProject_libmwaw.mk | 40 +++++++++++++++++++++++++++++ external/libmwaw/Makefile | 7 +++++ external/libmwaw/Module_libmwaw.mk | 17 ++++++++++++ external/libmwaw/README | 3 +++ external/libmwaw/UnpackedTarball_libmwaw.mk | 14 ++++++++++ 6 files changed, 82 insertions(+) create mode 100644 external/libmwaw/ExternalProject_libmwaw.mk create mode 100644 external/libmwaw/Makefile create mode 100644 external/libmwaw/Module_libmwaw.mk create mode 100644 external/libmwaw/README create mode 100644 external/libmwaw/UnpackedTarball_libmwaw.mk (limited to 'external') diff --git a/external/Module_external.mk b/external/Module_external.mk index 81c97ae81a28..e3bcd470a8c6 100644 --- a/external/Module_external.mk +++ b/external/Module_external.mk @@ -47,6 +47,7 @@ $(eval $(call gb_Module_add_moduledirs,external,\ $(call gb_Helper_optional,LIBLANGTAG,liblangtag) \ $(call gb_Helper_optional,LIBPNG,libpng) \ $(call gb_Helper_optional,MSPUB,libmspub) \ + $(call gb_Helper_optional,MWAW,libmwaw) \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libmwaw/ExternalProject_libmwaw.mk b/external/libmwaw/ExternalProject_libmwaw.mk new file mode 100644 index 000000000000..a5001925d23f --- /dev/null +++ b/external/libmwaw/ExternalProject_libmwaw.mk @@ -0,0 +1,40 @@ +# -*- 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,libmwaw)) + +$(eval $(call gb_ExternalProject_use_autoconf,libmwaw,build)) + +$(eval $(call gb_ExternalProject_register_targets,libmwaw,\ + build \ +)) + +$(eval $(call gb_ExternalProject_use_externals,libmwaw,\ + boost_headers \ + wpd \ +)) + +$(call gb_ExternalProject_get_state_target,libmwaw,build) : + $(call gb_ExternalProject_run,build,\ + export PKG_CONFIG="" \ + && ./configure \ + --with-pic \ + --enable-static \ + --disable-shared \ + --without-docs \ + --disable-debug \ + --disable-werror \ + CXXFLAGS="$(if $(filter NO,$(SYSTEM_BOOST)),-I$(call gb_UnpackedTarball_get_dir,boost),$(BOOST_CPPFLAGS))" \ + $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ + && (cd $(EXTERNAL_WORKDIR)/src/lib && \ + $(if $(VERBOSE)$(verbose),V=1) \ + $(MAKE)) \ + ) + +# vim: set noet sw=4 ts=4: diff --git a/external/libmwaw/Makefile b/external/libmwaw/Makefile new file mode 100644 index 000000000000..e4968cf85fb6 --- /dev/null +++ b/external/libmwaw/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/libmwaw/Module_libmwaw.mk b/external/libmwaw/Module_libmwaw.mk new file mode 100644 index 000000000000..9ecb4cf8d4a4 --- /dev/null +++ b/external/libmwaw/Module_libmwaw.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,libmwaw)) + +$(eval $(call gb_Module_add_targets,libmwaw,\ + ExternalProject_libmwaw \ + UnpackedTarball_libmwaw \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libmwaw/README b/external/libmwaw/README new file mode 100644 index 000000000000..c10d26bb5b79 --- /dev/null +++ b/external/libmwaw/README @@ -0,0 +1,3 @@ +Library parsing different document file formats used on old Mac OS. + +https://sourceforge.net/projects/libmwaw/ diff --git a/external/libmwaw/UnpackedTarball_libmwaw.mk b/external/libmwaw/UnpackedTarball_libmwaw.mk new file mode 100644 index 000000000000..96fe9df6afa0 --- /dev/null +++ b/external/libmwaw/UnpackedTarball_libmwaw.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,libmwaw)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libmwaw,$(MWAW_TARBALL))) + +# vim: set noet sw=4 ts=4: -- cgit