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
@@ -84,15 +84,16 @@
     isEmpty( BINDIR ) BINDIR = $${PREFIX}/bin
 # Again according to FHS /usr/local/share/games is the corresponding place for locally built games documentation:
     isEmpty( DOCDIR ) DOCDIR = $${DATAROOTDIR}/doc/mudlet
-    LIBS += -lpcre \
-        -llua5.1 \
-        -lhunspell \
-        -L/usr/local/lib/ \
-        -lyajl \
-        -lGLU \
-        -lzip \
-        -lz
-    INCLUDEPATH += /usr/include/lua5.1
+
+    CONFIG += link_pkgconfig
+    PKGCONFIG += libpcre \
+	lua5.1 \
+	hunspell \
+	yajl \
+	glu \
+	libzip \
+	zlib
+
     LUA_DEFAULT_DIR = $${DATADIR}/lua
 } else:win32: {
     LIBS += -L"C:\\mudlet5_package" \
