aboutsummaryrefslogtreecommitdiff
path: root/libLumina/libLumina.pro
diff options
context:
space:
mode:
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