Author: Tom Jampen <tom@cryptography.ch>
Description:
 Patches texstudio.pro to compile against libhunspell instead of built-in
 hunspell.

diff -Naurp a/texstudio.pro b/texstudio.pro
--- a/texstudio.pro	2012-03-07 08:53:58.425063431 +0100
+++ b/texstudio.pro	2012-03-07 08:57:49.789448312 +0100
@@ -2,6 +2,8 @@ TEMPLATE = app
 LANGUAGE = C++
 DESTDIR = ./
 CONFIG += qt precompile_header
+CONFIG += link_pkgconfig
+PKGCONFIG = hunspell
 exists(texmakerx_my.pri):include(texmakerx_my.pri)
 QT += network \
     xml \
@@ -51,24 +53,6 @@ HEADERS += texmaker.h \
     codesnippet.h \
     thesaurusdialog.h \
     xmltagslistwidget.h \
-    hunspell/affentry.hxx \
-    hunspell/affixmgr.hxx \
-    hunspell/atypes.hxx \
-    hunspell/baseaffix.hxx \
-    hunspell/csutil.hxx \
-    hunspell/dictmgr.hxx \
-    hunspell/hashmgr.hxx \
-    hunspell/htypes.hxx \
-    hunspell/hunspell.hxx \
-    hunspell/hunspell.h \
-    hunspell/langnum.hxx \
-    hunspell/license.hunspell \
-    hunspell/phonet.hxx \
-    hunspell/suggestmgr.hxx \
-    hunspell/license.myspell \
-    hunspell/filemgr.hxx \
-    hunspell/hunzip.hxx \
-    hunspell/w_char.hxx \
     qcodeedit/lib/qeditorinputbinding.h \
     qcodeedit/lib/qeditorinputbindinginterface.h \
     randomtextgenerator.h \
@@ -84,7 +68,6 @@ HEADERS += texmaker.h \
     latexdocument.h \
     unicodeinsertion.h \
     universalinputdialog.h \
-    hunspell/replist.hxx \
     scriptengine.h \
     insertgraphics.h \
     tmxtabwidget.h \
@@ -143,18 +126,6 @@ SOURCES += main.cpp \
     codesnippet.cpp \
     thesaurusdialog.cpp \
     xmltagslistwidget.cpp \
-    hunspell/affentry.cxx \
-    hunspell/affixmgr.cxx \
-    hunspell/csutil.cxx \
-    hunspell/dictmgr.cxx \
-    hunspell/hashmgr.cxx \
-    hunspell/hunspell.cxx \
-    hunspell/phonet.cxx \
-    hunspell/replist.cxx \
-    hunspell/suggestmgr.cxx \
-    hunspell/utf_info.cxx \
-    hunspell/filemgr.cxx \
-    hunspell/hunzip.cxx \
     encodingdialog.cpp \
     qcodeedit/lib/qeditorinputbinding.cpp \
     randomtextgenerator.cpp \
@@ -318,17 +289,6 @@ unix {
         templates/template_Scrreprt.tex \
         utilities/usermanual_en.html \
         utilities/usermanual_fr.html \
-        utilities/en_GB.aff \
-        utilities/en_GB.dic \
-        utilities/en_US.aff \
-        utilities/en_US.dic \
-        utilities/fr_FR.aff \
-        utilities/fr_FR.dic \
-        utilities/de_DE.aff \
-        utilities/de_DE.dic \
-        utilities/th_en_US_v2.dat \
-        utilities/th_fr_FR_v2.dat \
-        utilities/th_de_DE_v2.dat \
         utilities/AUTHORS \
         utilities/COPYING \
         utilities/CHANGELOG.txt
