diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-10-18 22:21:12 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-10-19 07:38:57 +0000 |
commit | 06c6846346e945f40ce4ab87261e9511d5e87e9c (patch) | |
tree | e5880837e0c54186b43a846255d998ef7d0ebf2f /external/libwpg | |
parent | c979511247aff27d33941b3c73224d948bcfceb2 (diff) |
fdo#70393: move libwpg to a subdir of external
Change-Id: I28c0a18f9e85ca913a29f85e647a547cde2d40a1
Reviewed-on: https://gerrit.libreoffice.org/6337
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external/libwpg')
-rw-r--r-- | external/libwpg/ExternalProject_libwpg.mk | 38 | ||||
-rw-r--r-- | external/libwpg/Makefile | 7 | ||||
-rw-r--r-- | external/libwpg/Module_libwpg.mk | 17 | ||||
-rw-r--r-- | external/libwpg/README | 1 | ||||
-rw-r--r-- | external/libwpg/UnpackedTarball_libwpg.mk | 21 |
5 files changed, 84 insertions, 0 deletions
diff --git a/external/libwpg/ExternalProject_libwpg.mk b/external/libwpg/ExternalProject_libwpg.mk new file mode 100644 index 000000000000..ee8bad38bb43 --- /dev/null +++ b/external/libwpg/ExternalProject_libwpg.mk @@ -0,0 +1,38 @@ +# -*- 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,libwpg)) + +$(eval $(call gb_ExternalProject_use_autoconf,libwpg,build)) + +$(eval $(call gb_ExternalProject_register_targets,libwpg,\ + build \ +)) + +$(eval $(call gb_ExternalProject_use_externals,libwpg,\ + wpd \ +)) + +$(call gb_ExternalProject_get_state_target,libwpg,build) : + $(call gb_ExternalProject_run,build,\ + export PKG_CONFIG="" \ + && ./configure \ + --with-pic \ + --enable-static \ + --disable-shared \ + --without-docs \ + --disable-debug \ + --disable-werror \ + $(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/libwpg/Makefile b/external/libwpg/Makefile new file mode 100644 index 000000000000..e4968cf85fb6 --- /dev/null +++ b/external/libwpg/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/libwpg/Module_libwpg.mk b/external/libwpg/Module_libwpg.mk new file mode 100644 index 000000000000..9e468a58a9cb --- /dev/null +++ b/external/libwpg/Module_libwpg.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,libwpg)) + +$(eval $(call gb_Module_add_targets,libwpg,\ + ExternalProject_libwpg \ + UnpackedTarball_libwpg \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libwpg/README b/external/libwpg/README new file mode 100644 index 000000000000..19a154dd4d44 --- /dev/null +++ b/external/libwpg/README @@ -0,0 +1 @@ +From [http://libwpg.sourceforge.net/]. WordPerfect graphics filter. diff --git a/external/libwpg/UnpackedTarball_libwpg.mk b/external/libwpg/UnpackedTarball_libwpg.mk new file mode 100644 index 000000000000..7c76a958eaf5 --- /dev/null +++ b/external/libwpg/UnpackedTarball_libwpg.mk @@ -0,0 +1,21 @@ +# -*- 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,libwpg)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libwpg,$(WPG_TARBALL))) + +# HACK to avoid the need to deliver the headers to $(OUTDIR). This +# should be removed when libwpg is updated. +$(eval $(call gb_UnpackedTarball_set_post_action,libwpg,\ + mkdir -p inc/libwpg && \ + cp -f src/lib/libwpg.h src/lib/WPGPaintInterface.h src/lib/WPGraphics.h inc/libwpg \ +)) + +# vim: set noet sw=4 ts=4: |