aboutsummaryrefslogtreecommitdiff
path: root/libLumina/libLumina.pro
diff options
context:
space:
mode:
authorChristopher Roy Bratusek <nano@jpberlin.de>2014-10-05 20:16:42 +0200
committerChristopher Roy Bratusek <nano@jpberlin.de>2014-10-05 20:16:42 +0200
commitb3ee7109dd5c9cd21b219a758df45e0866936ffb (patch)
treef40cf1c32802d9bb2253352cf4eea2d8418ec79d /libLumina/libLumina.pro
parentAdd the template for the new LuminaThemes library class (not integrated into ... (diff)
downloadlumina-b3ee7109dd5c9cd21b219a758df45e0866936ffb.tar.gz
lumina-b3ee7109dd5c9cd21b219a758df45e0866936ffb.tar.bz2
lumina-b3ee7109dd5c9cd21b219a758df45e0866936ffb.zip
add global.h containing PREFIX and make use of it in all sub-modules,
add PREFIX and LIBPREFIX to the qmake .pro files (allows to change prefix and libdir using <qmake PREFIX=/usr LIBDIR=/usr/lib/x86_64-linux-gnu/> or whatever) update debian packaging scripts accordingly
Diffstat (limited to 'libLumina/libLumina.pro')
-rw-r--r--libLumina/libLumina.pro20
1 files changed, 14 insertions, 6 deletions
diff --git a/libLumina/libLumina.pro b/libLumina/libLumina.pro
index 45a310b7..7e2028c7 100644
--- a/libLumina/libLumina.pro
+++ b/libLumina/libLumina.pro
@@ -2,7 +2,15 @@
QT += core
TARGET=LuminaUtils
-target.path = /usr/local/lib
+
+isEmpty(PREFIX) {
+ PREFIX = /usr/local
+}
+
+isEmtpy(LIBPREFIX) {
+ LIBPREFIX = $$PREFIX/lib
+}
+target.path = $$LIBPREFIX
DESTDIR= $$_PRO_FILE_PWD_/
@@ -17,7 +25,7 @@ HEADERS += LuminaXDG.h \
SOURCES += LuminaXDG.cpp \
LuminaUtils.cpp \
- LuminaX11.cpp \
+ LuminaX11.cpp \
LuminaOS-FreeBSD.cpp \
LuminaOS-DragonFly.cpp \
LuminaOS-OpenBSD.cpp \
@@ -25,16 +33,16 @@ SOURCES += LuminaXDG.cpp \
LuminaOS-kFreeBSD.cpp
# new OS support can be added here
-INCLUDEPATH += /usr/local/include
+INCLUDEPATH += $$PREFIX/include
LIBS += -lX11 -lXrender -lXcomposite
-include.path=/usr/local/include/
+include.path=$$PREFIX/include/
include.files=LuminaXDG.h \
LuminaUtils.h \
LuminaX11.h \
LuminaOS.h
-INSTALLS += target include
+INSTALLS += target include
-QMAKE_LIBDIR = /usr/local/lib/qt4 /usr/local/lib
+QMAKE_LIBDIR = $$LIBPREFIX/qt4 $$LIBPREFIX
bgstack15