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,19 +8,10 @@
 QT += network opengl phonon
 DEPENDPATH += .
 INCLUDEPATH += .
-LIBLUA = -llua5.1
-!exists(/usr/lib/x86_64-linux-gnu/liblua5.1.a):LIBLUA = -llua
-
-# automatically link to LuaJIT if it exists
-exists(/usr/lib/x86_64-linux-gnu/libluajit-5.1.a):LIBLUA = -L/usr/lib/x86_64-linux-gnu/ -lluajit-5.1
-
-unix:LIBS += -lpcre \
-    $$LIBLUA \
-    -lhunspell \
-    -L/usr/local/lib/ \
-    -lyajl \
-    -lGLU \
-    -lzzip
+unix: {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += libpcre zlib hunspell lua5.1 yajl glu
+}
 
 win32:LIBS += -L"c:\mudlet3_package" \
     -llua51 \
@@ -29,7 +20,6 @@
     -lquazip \
     -lyajl
 
-unix:INCLUDEPATH += /usr/include/lua5.1
 
 win32:INCLUDEPATH += "c:\mudlet_package_MINGW\Lua_src\include" \
     "c:\mudlet_package_MINGW\zlib-1.2.5" \
@@ -250,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
 
