Kaydet (Commit) b421ce79 authored tarafından David Tardon's avatar David Tardon

bundle librevenge

Change-Id: Ic36c1670866545db2cf2f29867de7e5b0ad2d57d
üst 36c3f914
......@@ -195,6 +195,7 @@ $(WORKDIR)/download: $(BUILDDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)
$(call fetch_Optional,REDLAND,RAPTOR_TARBALL) \
$(call fetch_Optional,REDLAND,RASQAL_TARBALL) \
$(call fetch_Optional,REDLAND,REDLAND_TARBALL) \
$(call fetch_Optional,REVENGE,REVENGE_TARBALL) \
$(call fetch_Optional,RHINO,RHINO_TARBALL) \
$(call fetch_Optional,RHINO,SWING_TARBALL) \
$(call fetch_Optional,SERF,SERF_TARBALL) \
......
......@@ -1761,6 +1761,59 @@ endif
endif # SYSTEM_ODFGEN
ifneq ($(SYSTEM_REVENGE),)
define gb_LinkTarget__use_revenge
$(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
$(REVENGE_CFLAGS) \
)
$(call gb_LinkTarget_add_libs,$(1),$(REVENGE_LIBS))
endef
else # !SYSTEM_REVENGE
ifeq ($(COM),MSC)
$(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_OOO,ooo,\
revenge \
))
define gb_LinkTarget__use_revenge
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,librevenge)/inc \
$$(INCLUDE) \
)
$(call gb_LinkTarget_use_libraries,$(1),\
revenge \
)
endef
else # !MSC
$(eval $(call gb_Helper_register_packages_for_install,ooo, \
librevenge \
))
define gb_LinkTarget__use_revenge
$(call gb_LinkTarget_use_package,$(1),librevenge)
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,librevenge)/inc \
$$(INCLUDE) \
)
$(call gb_LinkTarget_add_libs,$(1),\
-L$(call gb_UnpackedTarball_get_dir,librevenge)/src/lib/.libs -lrevenge-0.0 \
)
endef
endif # MSC
endif # SYSTEM_REVENGE
ifneq ($(SYSTEM_ABW),)
define gb_LinkTarget__use_abw
......
......@@ -464,6 +464,8 @@ export RASQAL_MAJOR=@RASQAL_MAJOR@
export REDLAND_CFLAGS=$(gb_SPACE)@REDLAND_CFLAGS@
export REDLAND_LIBS=$(gb_SPACE)@REDLAND_LIBS@
export REDLAND_MAJOR=@REDLAND_MAJOR@
export REVENGE_CFLAGS=$(gb_SPACE)@REVENGE_CFLAGS@
export REVENGE_LIBS=$(gb_SPACE)@REVENGE_LIBS@
export RHINO_JAR=@RHINO_JAR@
export RPM=@RPM@
export RTL_ARCH=@RTL_ARCH@
......
......@@ -7662,6 +7662,11 @@ else
fi
AC_SUBST([ENABLE_EOT])
dnl ===================================================================
dnl Check for system librevenge
dnl ===================================================================
libo_CHECK_SYSTEM_MODULE([librevenge],[REVENGE],[librevenge-0.0])
dnl ===================================================================
dnl Check for system libe-book
dnl ===================================================================
......
......@@ -121,6 +121,8 @@ export PYTHON_TARBALL := Python-3.3.5.tgz
export RAPTOR_TARBALL := 4ceb9316488b0ea01acf011023cf7fff-raptor2-2.0.9.tar.gz
export RASQAL_TARBALL := b12c5f9cfdb6b04efce5a4a186b8416b-rasqal-0.9.30.tar.gz
export REDLAND_TARBALL := 32f8e1417a64d3c6f2c727f9053f55ea-redland-1.0.16.tar.gz
export REVENGE_MD5SUM := b483b99af21c92c763a1c6a28ebee958
export REVENGE_TARBALL := librevenge-0.0.0.tar.bz2
export RHINO_TARBALL := 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
export SERF_MD5SUM := 4f8e76c9c6567aee1d66aba49f76a58b
export SERF_TARBALL := serf-1.2.1.tar.bz2
......
......@@ -84,6 +84,7 @@ $(eval $(call gb_Module_add_moduledirs,external,\
$(call gb_Helper_optional,POSTGRESQL,postgresql) \
$(call gb_Helper_optional,PYTHON,python3) \
$(call gb_Helper_optional,REDLAND,redland) \
$(call gb_Helper_optional,REVENGE,librevenge) \
$(call gb_Helper_optional,RHINO,rhino) \
$(call gb_Helper_optional,SERF,serf) \
$(call gb_Helper_optional,UCPP,ucpp) \
......
# -*- 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,librevenge,librevenge))
$(eval $(call gb_ExternalPackage_use_external_project,librevenge,librevenge))
ifeq ($(OS),MACOSX)
$(eval $(call gb_ExternalPackage_add_file,librevenge,$(LIBO_LIB_FOLDER)/librevenge-0.0.0.dylib,src/lib/.libs/librevenge-0.0.dylib))
else ifeq ($(OS),WNT)
$(eval $(call gb_ExternalPackage_add_file,librevenge,$(LIBO_LIB_FOLDER)/librevenge-0.0.dll,src/lib/.libs/librevenge-0.0.dll))
else ifeq ($(filter IOS ANDROID,$(OS)),)
$(eval $(call gb_ExternalPackage_add_file,librevenge,$(LIBO_LIB_FOLDER)/librevenge-0.0.so.0,src/lib/.libs/librevenge-0.0.so.0.0.0))
endif
# vim: set noet sw=4 ts=4:
# -*- 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,librevenge))
$(eval $(call gb_ExternalProject_use_autoconf,librevenge,build))
$(eval $(call gb_ExternalProject_register_targets,librevenge,\
build \
))
# TODO: test for zlib is unconditional in configure by mistake. Remove on the next release.
$(eval $(call gb_ExternalProject_use_externals,librevenge,\
boost_headers \
zlib \
))
$(call gb_ExternalProject_get_state_target,librevenge,build) :
$(call gb_ExternalProject_run,build,\
export PKG_CONFIG="" \
&& ./configure \
--with-pic \
--enable-shared \
--disable-static \
--disable-debug \
--disable-werror \
--disable-weffc \
--disable-streams \
--disable-generators \
--without-docs \
$(if $(VERBOSE)$(verbose),--enable-silent-rules) \
CXXFLAGS="$(if $(SYSTEM_BOOST),$(BOOST_CPPFLAGS),-I$(call gb_UnpackedTarball_get_dir,boost) -I$(BUILDDIR)/config_$(gb_Side))" \
$(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
&& $(MAKE) \
)
# vim: set noet sw=4 ts=4:
# -*- 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,revenge))
$(eval $(call gb_Library_use_unpacked,revenge,librevenge))
$(eval $(call gb_Library_use_externals,revenge,\
boost_headers \
))
$(eval $(call gb_Library_set_warnings_not_errors,revenge))
$(eval $(call gb_Library_set_include,revenge,\
-I$(call gb_UnpackedTarball_get_dir,librevenge)/inc \
$$(INCLUDE) \
))
# -DLIBREVENGE_STREAM_BUILD is present so that linker does not complain
# about unresolved external symbol RVNGStream::~RVNGStream
$(eval $(call gb_Library_add_defs,revenge,\
-DBOOST_ALL_NO_LIB \
-DDLL_EXPORT \
-DLIBREVENGE_BUILD \
-DLIBREVENGE_STREAM_BUILD \
-DNDEBUG \
))
$(eval $(call gb_Library_set_generated_cxx_suffix,revenge,cpp))
$(eval $(call gb_Library_add_generated_exception_objects,revenge,\
UnpackedTarball/librevenge/src/lib/RVNGBinaryData \
UnpackedTarball/librevenge/src/lib/RVNGMemoryStream \
UnpackedTarball/librevenge/src/lib/RVNGProperty \
UnpackedTarball/librevenge/src/lib/RVNGPropertyList \
UnpackedTarball/librevenge/src/lib/RVNGPropertyListVector \
UnpackedTarball/librevenge/src/lib/RVNGString \
UnpackedTarball/librevenge/src/lib/RVNGStringVector \
UnpackedTarball/librevenge/src/lib/RVNGSVGDrawingGenerator \
))
# vim: set noet sw=4 ts=4:
# -*- 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:
# -*- 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,librevenge))
$(eval $(call gb_Module_add_targets,librevenge,\
UnpackedTarball_librevenge \
))
ifeq ($(COM),MSC)
$(eval $(call gb_Module_add_targets,librevenge,\
Library_revenge \
))
else
$(eval $(call gb_Module_add_targets,librevenge,\
ExternalPackage_librevenge \
ExternalProject_librevenge \
))
endif
# vim: set noet sw=4 ts=4:
From [http://sourceforge.net/p/libwpd/wiki/librevenge/]. A base library
for writing document import filters. It has interfaces for text documents,
vector graphics, spreadsheets and presentations.
# -*- 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,librevenge))
$(eval $(call gb_UnpackedTarball_set_tarball,librevenge,$(REVENGE_TARBALL)))
$(eval $(call gb_UnpackedTarball_set_patchlevel,librevenge,1))
$(eval $(call gb_UnpackedTarball_add_patches,librevenge,\
external/librevenge/0001-properly-export-API-symbols.patch \
))
# vim: set noet sw=4 ts=4:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment