diff options
Diffstat (limited to 'external/libwpg')
-rw-r--r-- | external/libwpg/ExternalPackage_libwpg.mk | 22 | ||||
-rw-r--r-- | external/libwpg/ExternalProject_libwpg.mk | 51 | ||||
-rw-r--r-- | external/libwpg/Library_wpg.mk | 48 | ||||
-rw-r--r-- | external/libwpg/Makefile | 7 | ||||
-rw-r--r-- | external/libwpg/Module_libwpg.mk | 31 | ||||
-rw-r--r-- | external/libwpg/README | 1 | ||||
-rw-r--r-- | external/libwpg/UnpackedTarball_libwpg.mk | 32 | ||||
-rw-r--r-- | external/libwpg/libwpg-bundled-soname.patch.0 | 11 | ||||
-rw-r--r-- | external/libwpg/rpath.patch | 10 |
9 files changed, 213 insertions, 0 deletions
diff --git a/external/libwpg/ExternalPackage_libwpg.mk b/external/libwpg/ExternalPackage_libwpg.mk new file mode 100644 index 000000000..c3eb05c7a --- /dev/null +++ b/external/libwpg/ExternalPackage_libwpg.mk @@ -0,0 +1,22 @@ +# -*- 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,libwpg,libwpg)) + +$(eval $(call gb_ExternalPackage_use_external_project,libwpg,libwpg)) + +ifeq ($(OS),MACOSX) +$(eval $(call gb_ExternalPackage_add_file,libwpg,$(LIBO_LIB_FOLDER)/libwpg-0.3.3.dylib,src/lib/.libs/libwpg-0.3.3.dylib)) +else ifeq ($(OS),WNT) +$(eval $(call gb_ExternalPackage_add_file,libwpg,$(LIBO_LIB_FOLDER)/libwpg-0.3.dll,src/lib/.libs/libwpg-0.3.dll)) +else ifeq ($(DISABLE_DYNLOADING),) +$(eval $(call gb_ExternalPackage_add_file,libwpg,$(LIBO_LIB_FOLDER)/libwpg-0.3-lo.so.3,src/lib/.libs/libwpg-0.3-lo.so.3.0.$(WPG_VERSION_MICRO))) +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/libwpg/ExternalProject_libwpg.mk b/external/libwpg/ExternalProject_libwpg.mk new file mode 100644 index 000000000..6a0d2c898 --- /dev/null +++ b/external/libwpg/ExternalProject_libwpg.mk @@ -0,0 +1,51 @@ +# -*- 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,\ + revenge \ + wpd \ +)) + +$(call gb_ExternalProject_get_state_target,libwpg,build) : + $(call gb_Trace_StartRange,libwpg,EXTERNAL) + $(call gb_ExternalProject_run,build,\ + export PKG_CONFIG="" \ + && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \ + --with-pic \ + $(if $(DISABLE_DYNLOADING), \ + --disable-shared --enable-static, \ + --enable-shared --disable-static) \ + --without-docs \ + --disable-tools \ + --disable-debug \ + --disable-werror \ + $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \ + $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \ + $(gb_CONFIGURE_PLATFORMS) \ + CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libwpg)" \ + $(if $(filter LINUX,$(OS)), \ + 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \ + -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \ + && $(MAKE) \ + $(if $(filter MACOSX,$(OS)),\ + && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \ + $(EXTERNAL_WORKDIR)/src/lib/.libs/libwpg-0.3.3.dylib \ + ) \ + ) + $(call gb_Trace_EndRange,libwpg,EXTERNAL) + +# vim: set noet sw=4 ts=4: diff --git a/external/libwpg/Library_wpg.mk b/external/libwpg/Library_wpg.mk new file mode 100644 index 000000000..09dc34915 --- /dev/null +++ b/external/libwpg/Library_wpg.mk @@ -0,0 +1,48 @@ +# -*- 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_Library_Library,wpg)) + +$(eval $(call gb_Library_use_unpacked,wpg,libwpg)) + +$(eval $(call gb_Library_use_externals,wpg,\ + revenge \ + wpd \ +)) + +$(eval $(call gb_Library_set_warnings_disabled,wpg)) + +$(eval $(call gb_Library_set_include,wpg,\ + -I$(call gb_UnpackedTarball_get_dir,libwpg)/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_Library_add_defs,wpg,\ + -DBOOST_ALL_NO_LIB \ + -DDLL_EXPORT \ + -DLIBWPG_BUILD \ + -DNDEBUG \ +)) + +$(eval $(call gb_Library_set_generated_cxx_suffix,wpg,cpp)) + +$(eval $(call gb_Library_add_generated_exception_objects,wpg,\ + UnpackedTarball/libwpg/src/lib/WPG1Parser \ + UnpackedTarball/libwpg/src/lib/WPG2Parser \ + UnpackedTarball/libwpg/src/lib/WPGBitmap \ + UnpackedTarball/libwpg/src/lib/WPGColor \ + UnpackedTarball/libwpg/src/lib/WPGDashArray \ + UnpackedTarball/libwpg/src/lib/WPGHeader \ + UnpackedTarball/libwpg/src/lib/WPGTextDataHandler \ + UnpackedTarball/libwpg/src/lib/WPGXParser \ + UnpackedTarball/libwpg/src/lib/WPGraphics \ + UnpackedTarball/libwpg/src/lib/libwpg_utils \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libwpg/Makefile b/external/libwpg/Makefile new file mode 100644 index 000000000..e4968cf85 --- /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 000000000..668ae8404 --- /dev/null +++ b/external/libwpg/Module_libwpg.mk @@ -0,0 +1,31 @@ +# -*- 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,\ + UnpackedTarball_libwpg \ +)) + +ifeq ($(COM),MSC) + +$(eval $(call gb_Module_add_targets,libwpg,\ + Library_wpg \ +)) + +else + +$(eval $(call gb_Module_add_targets,libwpg,\ + ExternalPackage_libwpg \ + ExternalProject_libwpg \ +)) + +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/libwpg/README b/external/libwpg/README new file mode 100644 index 000000000..19a154dd4 --- /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 000000000..9ca55c669 --- /dev/null +++ b/external/libwpg/UnpackedTarball_libwpg.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_UnpackedTarball_UnpackedTarball,libwpg)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libwpg,$(WPG_TARBALL))) + +$(eval $(call gb_UnpackedTarball_set_patchlevel,libwpg,0)) + +$(eval $(call gb_UnpackedTarball_update_autoconf_configs,libwpg)) + +$(eval $(call gb_UnpackedTarball_add_patches,libwpg, \ + external/libwpg/rpath.patch \ +)) + +ifneq ($(OS),MACOSX) +ifneq ($(OS),WNT) +ifneq ($(OS),iOS) +$(eval $(call gb_UnpackedTarball_add_patches,libwpg, \ + external/libwpg/libwpg-bundled-soname.patch.0 \ +)) +endif +endif +endif + +# vim: set noet sw=4 ts=4: diff --git a/external/libwpg/libwpg-bundled-soname.patch.0 b/external/libwpg/libwpg-bundled-soname.patch.0 new file mode 100644 index 000000000..e0bfc5980 --- /dev/null +++ b/external/libwpg/libwpg-bundled-soname.patch.0 @@ -0,0 +1,11 @@ +--- src/lib/Makefile.in.orig 2015-08-06 21:30:41.615633795 +0200 ++++ src/lib/Makefile.in 2015-08-06 21:31:03.764633415 +0200 +@@ -357,7 +357,7 @@ + $(DEBUG_CXXFLAGS) -DLIBWPG_BUILD=1 $(am__append_1) + libwpg_@WPG_MAJOR_VERSION@_@WPG_MINOR_VERSION@_la_LIBADD = $(WPD_LIBS) $(REVENGE_LIBS) @LIBWPG_WIN32_RESOURCE@ + libwpg_@WPG_MAJOR_VERSION@_@WPG_MINOR_VERSION@_la_DEPENDENCIES = @LIBWPG_WIN32_RESOURCE@ +-libwpg_@WPG_MAJOR_VERSION@_@WPG_MINOR_VERSION@_la_LDFLAGS = $(version_info) -export-dynamic -no-undefined ++libwpg_@WPG_MAJOR_VERSION@_@WPG_MINOR_VERSION@_la_LDFLAGS = $(version_info) -export-dynamic -no-undefined -release lo + libwpg_@WPG_MAJOR_VERSION@_@WPG_MINOR_VERSION@_la_SOURCES = \ + WPG1Parser.cpp \ + WPG1Parser.h \ diff --git a/external/libwpg/rpath.patch b/external/libwpg/rpath.patch new file mode 100644 index 000000000..5a8f56105 --- /dev/null +++ b/external/libwpg/rpath.patch @@ -0,0 +1,10 @@ +--- configure ++++ configure +@@ -13858,6 +13858,7 @@ + esac + ;; + esac ++hardcode_libdir_flag_spec_CXX= + ;; + + lynxos*) |