aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-02-08 11:29:25 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2012-02-08 11:29:25 +0000
commitaa334abcca63101292c48a72c7b1851b8ecc26c7 (patch)
treec97ee8c70e7b961fb756af6871a6c50749a9a444
parente3c2c0114e6ac3f6366620ec8560263a44cafb5a (diff)
downloadqxmpp-aa334abcca63101292c48a72c7b1851b8ecc26c7.tar.gz
make library installation directory configurable
-rw-r--r--qxmpp.pri7
-rw-r--r--src/src.pro2
2 files changed, 6 insertions, 3 deletions
diff --git a/qxmpp.pri b/qxmpp.pri
index 4879312d..b2a75712 100644
--- a/qxmpp.pri
+++ b/qxmpp.pri
@@ -37,7 +37,10 @@ symbian {
QXMPP_LIBRARY_FILE = $${QXMPP_LIBRARY_DIR}/lib$${QXMPP_LIBRARY_NAME}.a
}
-# Installation prefix
-isEmpty(PREFIX) {
+# Installation prefix and library directory
+isEmpty(PREFIX) {
unix:PREFIX=/usr/local
}
+isEmpty(LIBDIR) {
+ LIBDIR=lib
+}
diff --git a/src/src.pro b/src/src.pro
index b0e9fe98..c6d72d0f 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -186,7 +186,7 @@ SOURCES += \
# Installation
headers.files = $$INSTALL_HEADERS
headers.path = $$PREFIX/include/qxmpp
-target.path = $$PREFIX/lib
+target.path = $$PREFIX/$$LIBDIR
INSTALLS += headers target
# pkg-config support