summaryrefslogtreecommitdiff
path: root/external/hyphen/ExternalProject_hyphen.mk
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-10-17 20:00:40 +0200
committerDavid Tardon <dtardon@redhat.com>2013-10-18 06:58:44 +0000
commit0ba2b78a07e1111208eef45813e14c33c95cef6d (patch)
tree4f033ed3a0a1654f2da8f92b3849de82d6da704b /external/hyphen/ExternalProject_hyphen.mk
parent64b6499371fa22d52648523e65a28c041dd6579f (diff)
fdo#70393: move hyphen to a subdir of external
Change-Id: I5a112b6f588a704e682e7b50d5399d3da77fbacf Reviewed-on: https://gerrit.libreoffice.org/6308 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external/hyphen/ExternalProject_hyphen.mk')
-rw-r--r--external/hyphen/ExternalProject_hyphen.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/external/hyphen/ExternalProject_hyphen.mk b/external/hyphen/ExternalProject_hyphen.mk
new file mode 100644
index 000000000000..e7d36730fd70
--- /dev/null
+++ b/external/hyphen/ExternalProject_hyphen.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,hyphen))
+
+$(eval $(call gb_ExternalProject_use_external,hyphen,hunspell))
+
+$(eval $(call gb_ExternalProject_register_targets,hyphen,\
+ build \
+))
+
+$(call gb_ExternalProject_get_state_target,hyphen,build):
+ $(call gb_ExternalProject_run,build,\
+ ./configure --disable-shared \
+ $(if $(filter-out IOS,$(OS)),--with-pic) \
+ $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) gio_can_sniff=no) \
+ $(if $(filter C52U,$(COM)$(CPU)),CFLAGS="-m64") \
+ && $(MAKE) \
+ $(if $(filter YESYES,$(SYSTEM_HYPH)$(WITH_MYSPELL_DICTS)),hyph_en_US.dic) \
+ )
+
+# vim: set noet sw=4 ts=4: