summaryrefslogtreecommitdiff
path: root/mythes
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-10-28 23:10:55 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2012-10-28 23:11:10 +0100
commit0cc05a8f1db4c289dff0e95de6161cf3f3af58e6 (patch)
treec9bea1f6fc5c85611d509974e47c19da600ecf1f /mythes
parent99ef1f57a18794e784aa9921d62310395496320c (diff)
fix mythes build
Change-Id: I505a4a780e8fedbb41cd031d71d6a5e53c36624e
Diffstat (limited to 'mythes')
-rw-r--r--mythes/ExternalProject_mythes.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mythes/ExternalProject_mythes.mk b/mythes/ExternalProject_mythes.mk
index 87c5439703b9..1d2ab7bc8668 100644
--- a/mythes/ExternalProject_mythes.mk
+++ b/mythes/ExternalProject_mythes.mk
@@ -11,6 +11,8 @@ $(eval $(call gb_ExternalProject_ExternalProject,mythes))
$(eval $(call gb_ExternalProject_use_unpacked,mythes,mythes))
+$(eval $(call gb_ExternalProject_use_package,mythes,hunspell))
+
$(eval $(call gb_ExternalProject_register_targets,mythes,\
build \
))
@@ -19,7 +21,10 @@ $(call gb_ExternalProject_get_state_target,mythes,build):
cd $(EXTERNAL_WORKDIR) \
&& ./configure --disable-shared --with-pic \
$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) gio_can_sniff=no) \
- $(if $(filter NO,$(SYSTEM_HUNSPELL)),HUNSPELL_CFLAGS="-I$(OUTDIR)/inc/hunspell" HUNSPELL_LIBS="-L$(OUTDIR)/lib -lhunspell-1.3") \
+ $(if $(filter NO,$(SYSTEM_HUNSPELL)), \
+ HUNSPELL_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,hunspell/src/hunspell)" \
+ HUNSPELL_LIBS="-L$(OUTDIR)/lib -lhunspell" \
+ ) \
$(if $(filter C52U,$(COM)$(CPU)),CFLAGS="-m64") \
&& $(GNUMAKE) -j$(EXTMAXPROCESS) \
&& touch $@