Description: Adjusting project file to use system libraries
 Patches src.pro so that it uses pkgconfig to find standard libraries
 Removed references to luajit as it is not available to Debian yet
Bug-Debian: http://bugs.debian.org/680134
Author: Craig Small <csmall@debian.org>
Last-Update: 2012-07-04
--- a/src/src.pro
+++ b/src/src.pro
@@ -8,17 +8,17 @@
 QT += network opengl phonon
 DEPENDPATH += .
 INCLUDEPATH += .
+unix: {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += libpcre zlib hunspell lua5.1
+}
 LIBLUA = -llua5.1
 !exists(/usr/lib/liblua5.1.a):LIBLUA = -llua
 
 # automatically link to LuaJIT if it exists
-exists(/usr/local/lib/libluajit-5.1.a):LIBLUA = -L/usr/local/lib -lluajit-5.1
+#exists(/usr/local/lib/libluajit-5.1.a):LIBLUA = -L/usr/local/lib -lluajit-5.1
 
-unix:LIBS += -lpcre \
-    $$LIBLUA \
-    -lhunspell \
-    -lyajl \
-    -lzzip
+unix:LIBS += -lyajl
 
 win32:LIBS += -L"c:\mudlet2_package" \
     -llua51 \
@@ -26,7 +26,6 @@
     -lhunspell \
     -lyajl
 
-unix:INCLUDEPATH += /usr/include/lua5.1
 
 win32:INCLUDEPATH += "c:\mudlet_package_MINGW\Lua_src\include" \
     "c:\mudlet_package_MINGW\zlib-1.2.5" \
@@ -241,12 +240,11 @@
     luaglobal.files = LuaGlobal.lua
     documentation.path = $$SHARE_DIR
     documentation.files = mudlet_documentation.html
-    fonts.path = $$SHARE_DIR
-    fonts.files = fonts/ttf-bitstream-vera-1.10/*
+    fonts.path = /usr/share/fonts/truetype/ttf-bitstream-vera
+    fonts.files = *.ttf
     target.path = $$BIN_DIR
 }
-INSTALLS += fonts \
-    luaglobal \
+INSTALLS += luaglobal \
     documentation \
     target
 
