Description: Adjusting project file to use system libraries
 Patches src.pro so that it uses pkgconfig to find standard libraries
Author: Craig Small <csmall@debian.org>
Last-Update: 2011-10-17
--- a/src/src.pro
+++ b/src/src.pro
@@ -8,17 +8,22 @@
 QT += network opengl phonon
 DEPENDPATH += .
 INCLUDEPATH += .
+unix: {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += libpcre zlib hunspell 
+    exists(/usr/include/luajit-2.0) {
+        PKGCONFIG += luajit
+    } else {
+        PKGCONFIG += 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
 
-unix:LIBS += -lpcre \
-    $$LIBLUA \
-    -lhunspell \
-    -lyajl \
-    -lzzip
+unix:LIBS += -lyajl
 
 win32:LIBS += -L"c:\mudlet2_package" \
     -llua51 \
@@ -26,7 +31,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 +245,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
 
