diff options
Diffstat (limited to 'external')
-rw-r--r-- | external/Module_external.mk | 1 | ||||
-rw-r--r-- | external/libwpd/ExternalProject_libwpd.mk | 34 | ||||
-rw-r--r-- | external/libwpd/Makefile | 7 | ||||
-rw-r--r-- | external/libwpd/Module_libwpd.mk | 17 | ||||
-rw-r--r-- | external/libwpd/README | 1 | ||||
-rw-r--r-- | external/libwpd/UnpackedTarball_libwpd.mk | 14 |
6 files changed, 74 insertions, 0 deletions
diff --git a/external/Module_external.mk b/external/Module_external.mk index 2072aac28c1a..59c83e4a70fd 100644 --- a/external/Module_external.mk +++ b/external/Module_external.mk @@ -51,6 +51,7 @@ $(eval $(call gb_Module_add_moduledirs,external,\ $(call gb_Helper_optional,ODFGEN,libodfgen) \ $(call gb_Helper_optional,ORCUS,liborcus) \ $(call gb_Helper_optional,VISIO,libvisio) \ + $(call gb_Helper_optional,WPD,libwpd) \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libwpd/ExternalProject_libwpd.mk b/external/libwpd/ExternalProject_libwpd.mk new file mode 100644 index 000000000000..86cf806fc217 --- /dev/null +++ b/external/libwpd/ExternalProject_libwpd.mk @@ -0,0 +1,34 @@ +# -*- 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,libwpd)) + +$(eval $(call gb_ExternalProject_use_autoconf,libwpd,build)) + +$(eval $(call gb_ExternalProject_register_targets,libwpd,\ + build \ +)) + +$(call gb_ExternalProject_get_state_target,libwpd,build) : + $(call gb_ExternalProject_run,build,\ + $(if $(filter TRUE,$(DISABLE_DYNLOADING)),CFLAGS="$(CFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_COMPILEROPTFLAGS)" CXXFLAGS="$(CXXFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_COMPILEROPTFLAGS)") \ + ./configure \ + --with-pic \ + --enable-static \ + --disable-shared \ + --without-stream \ + --without-docs \ + --disable-debug \ + $(if $(filter MACOSX,$(OS)),--disable-werror) \ + $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ + && $(if $(VERBOSE)$(verbose),V=1) \ + $(MAKE) \ + ) + +# vim: set noet sw=4 ts=4: diff --git a/external/libwpd/Makefile b/external/libwpd/Makefile new file mode 100644 index 000000000000..e4968cf85fb6 --- /dev/null +++ b/external/libwpd/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/libwpd/Module_libwpd.mk b/external/libwpd/Module_libwpd.mk new file mode 100644 index 000000000000..5082c4a0c254 --- /dev/null +++ b/external/libwpd/Module_libwpd.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,libwpd)) + +$(eval $(call gb_Module_add_targets,libwpd,\ + ExternalProject_libwpd \ + UnpackedTarball_libwpd \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libwpd/README b/external/libwpd/README new file mode 100644 index 000000000000..2cc9c8a18b8b --- /dev/null +++ b/external/libwpd/README @@ -0,0 +1 @@ +From [http://libwpd.sourceforge.net/]. Not modified. WordPerfect filter - SAX api - emits callbacks when things happen. diff --git a/external/libwpd/UnpackedTarball_libwpd.mk b/external/libwpd/UnpackedTarball_libwpd.mk new file mode 100644 index 000000000000..d4b4c7a99e8d --- /dev/null +++ b/external/libwpd/UnpackedTarball_libwpd.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,libwpd)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libwpd,$(WPD_TARBALL))) + +# vim: set noet sw=4 ts=4: |