diff options
author | David Tardon <dtardon@redhat.com> | 2013-11-12 16:44:40 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-11-12 17:28:12 +0100 |
commit | 49a4d366ee7c298e547955344001f3d95622106a (patch) | |
tree | 650525471ff76e2f6fb3b86b4a5fb1f4135b2034 /external | |
parent | 1db1d9ecadf10788f5b310942e0128344ad2c8aa (diff) |
integrate libeot
Change-Id: I0f28ff1680026d883909cc12efabb54f705cecb4
Diffstat (limited to 'external')
-rw-r--r-- | external/Module_external.mk | 1 | ||||
-rw-r--r-- | external/libeot/ExternalProject_libeot.mk | 28 | ||||
-rw-r--r-- | external/libeot/Makefile | 7 | ||||
-rw-r--r-- | external/libeot/Module_libeot.mk | 17 | ||||
-rw-r--r-- | external/libeot/README | 2 | ||||
-rw-r--r-- | external/libeot/UnpackedTarball_libeot.mk | 18 | ||||
-rw-r--r-- | external/libeot/libeot-avoid-autotools-run.patch.0 | 44 |
7 files changed, 117 insertions, 0 deletions
diff --git a/external/Module_external.mk b/external/Module_external.mk index 8ea0f112effc..dcd5b0822271 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,LANGUAGETOOL,languagetool) \ $(call gb_Helper_optional,LCMS2,lcms2) \ $(call gb_Helper_optional,LIBATOMIC_OPS,libatomic_ops) \ + $(call gb_Helper_optional,LIBEOT,libeot) \ $(call gb_Helper_optional,LIBEXTTEXTCAT,libexttextcat) \ $(call gb_Helper_optional,LIBLANGTAG,liblangtag) \ $(call gb_Helper_optional,LIBPNG,libpng) \ diff --git a/external/libeot/ExternalProject_libeot.mk b/external/libeot/ExternalProject_libeot.mk new file mode 100644 index 000000000000..97e28005de36 --- /dev/null +++ b/external/libeot/ExternalProject_libeot.mk @@ -0,0 +1,28 @@ +# -*- 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,libeot)) + +$(eval $(call gb_ExternalProject_register_targets,libeot,\ + build \ +)) + +$(call gb_ExternalProject_get_state_target,libeot,build) : + $(call gb_ExternalProject_run,build,\ + touch Makefile.in \ + && export PKG_CONFIG="" \ + && ./configure \ + --with-pic \ + --enable-static \ + --disable-shared \ + --disable-debug \ + && $(MAKE) $(if $(VERBOSE)$(verbose),V=1) \ + ) + +# vim: set noet sw=4 ts=4: diff --git a/external/libeot/Makefile b/external/libeot/Makefile new file mode 100644 index 000000000000..e4968cf85fb6 --- /dev/null +++ b/external/libeot/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/libeot/Module_libeot.mk b/external/libeot/Module_libeot.mk new file mode 100644 index 000000000000..128b255d1b90 --- /dev/null +++ b/external/libeot/Module_libeot.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,libeot)) + +$(eval $(call gb_Module_add_targets,libeot,\ + ExternalProject_libeot \ + UnpackedTarball_libeot \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libeot/README b/external/libeot/README new file mode 100644 index 000000000000..fc317f43da69 --- /dev/null +++ b/external/libeot/README @@ -0,0 +1,2 @@ +Library for parsing Embedded OpenType files (Microsoft embedded font +"standard"), and converting them to other formats. diff --git a/external/libeot/UnpackedTarball_libeot.mk b/external/libeot/UnpackedTarball_libeot.mk new file mode 100644 index 000000000000..9b95fd2efef8 --- /dev/null +++ b/external/libeot/UnpackedTarball_libeot.mk @@ -0,0 +1,18 @@ +# -*- 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,libeot)) + +$(eval $(call gb_UnpackedTarball_set_tarball,libeot,$(LIBEOT_TARBALL))) + +$(eval $(call gb_UnpackedTarball_add_patches,libeot,\ + external/libeot/libeot-avoid-autotools-run.patch.0 \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/external/libeot/libeot-avoid-autotools-run.patch.0 b/external/libeot/libeot-avoid-autotools-run.patch.0 new file mode 100644 index 000000000000..875bda5429ed --- /dev/null +++ b/external/libeot/libeot-avoid-autotools-run.patch.0 @@ -0,0 +1,44 @@ +--- Makefile.in.dt 2013-11-12 17:02:57.555418341 +0100 ++++ Makefile.in 2013-11-12 17:04:03.100619894 +0100 +@@ -87,7 +87,7 @@ DIST_COMMON = $(srcdir)/Makefile.in $(sr + $(srcdir)/config.h.in depcomp $(libeot_include_HEADERS) ar-lib \ + compile config.guess config.sub install-sh missing ltmain.sh + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +-am__aclocal_m4_deps = $(top_srcdir)/configure.ac ++am__aclocal_m4_deps = + am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) + am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ +@@ -367,19 +367,6 @@ all: config.h + .SUFFIXES: .c .lo .o .obj + am--refresh: Makefile + @: +-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +- @for dep in $?; do \ +- case '$(am__configure_deps)' in \ +- *$$dep*) \ +- echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ +- $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ +- && exit 0; \ +- exit 1;; \ +- esac; \ +- done; \ +- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ +- $(am__cd) $(top_srcdir) && \ +- $(AUTOMAKE) --foreign Makefile + .PRECIOUS: Makefile + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ +@@ -394,12 +381,6 @@ Makefile: $(srcdir)/Makefile.in $(top_bu + $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +-$(top_srcdir)/configure: $(am__configure_deps) +- $(am__cd) $(srcdir) && $(AUTOCONF) +-$(ACLOCAL_M4): $(am__aclocal_m4_deps) +- $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +-$(am__aclocal_m4_deps): +- + config.h: stamp-h1 + @test -f $@ || rm -f stamp-h1 + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 |