summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Vatagin <pavelvat@gmail.com>2015-07-28 20:55:17 (GMT)
committerPavel Vatagin <pavelvat@gmail.com>2015-07-28 20:55:17 (GMT)
commite48895411ccbe0cce45ef7f648cd6b30210d659d (patch)
treec4213a604772476c1bdae4b6452527e8ea66b157 /src
parentc3157a97574243e907a9f52e5a4488407981dfd3 (diff)
downloadmxe-e48895411ccbe0cce45ef7f648cd6b30210d659d.zip
mxe-e48895411ccbe0cce45ef7f648cd6b30210d659d.tar.gz
mxe-e48895411ccbe0cce45ef7f648cd6b30210d659d.tar.bz2
Add package aspell
Diffstat (limited to 'src')
-rw-r--r--src/aspell-1-fixes.patch11
-rw-r--r--src/aspell.mk26
2 files changed, 37 insertions, 0 deletions
diff --git a/src/aspell-1-fixes.patch b/src/aspell-1-fixes.patch
new file mode 100644
index 0000000..d889428
--- /dev/null
+++ b/src/aspell-1-fixes.patch
@@ -0,0 +1,11 @@
+diff -Naur aspell-0.60.6.1.orig/common/file_util.cpp aspell-0.60.6.1/common/file_util.cpp
+--- aspell-0.60.6.1.orig/common/file_util.cpp 2011-07-03 01:09:08.000000000 +0400
++++ aspell-0.60.6.1/common/file_util.cpp 2015-07-28 18:01:01.435865252 +0300
+@@ -26,6 +26,7 @@
+
+ #ifdef WIN32
+
++#include "asc_ctype.hpp"
+ # include <io.h>
+ # define ACCESS _access
+ # include <windows.h>
diff --git a/src/aspell.mk b/src/aspell.mk
new file mode 100644
index 0000000..ac03a55
--- /dev/null
+++ b/src/aspell.mk
@@ -0,0 +1,26 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := aspell
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 0.60.6.1
+$(PKG)_CHECKSUM := ff1190db8de279f950c242c6f4c5d5cdc2cbdc49
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://ftp.gnu.org/gnu/aspell/' | \
+ $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --enable-win32-relocatable \
+ --disable-nls
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef