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-01-16
--- a/src/src.pro
+++ b/src/src.pro
@@ -5,22 +5,23 @@
 MOC_DIR = ./tmp
 OBJECTS_DIR = ./tmp
 QT += network opengl
+unix: {
+    CONFIG += link_pkgconfig
+    PKGCONFIG += libpcre luajit zlib hunspell
+}
 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 \
-    -lyajl
+unix:LIBS += -lyajl 
 win32:LIBS += -Lc:\mudlet_package \
     -llua51 \
     -lpcre \
     -Lc:\mudlet_package\Lua \
     -lhunspell \
     -lyajl
-unix:INCLUDEPATH += /usr/include/lua5.1
 win32:INCLUDEPATH += c:\mudlet_package\Lua_src\include \
     c:\mudlet_package\zlib-1.2.5\
     c:\mudlet_package\boost_1_45_0 \
@@ -219,12 +220,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
 
