aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/lumina-fm.pro
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-fm/lumina-fm.pro')
-rw-r--r--lumina-fm/lumina-fm.pro27
1 files changed, 6 insertions, 21 deletions
diff --git a/lumina-fm/lumina-fm.pro b/lumina-fm/lumina-fm.pro
index 613fab69..56077612 100644
--- a/lumina-fm/lumina-fm.pro
+++ b/lumina-fm/lumina-fm.pro
@@ -1,17 +1,11 @@
+include("$${PWD}/../OS-detect.pri")
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets multimedia multimediawidgets network concurrent svg
TARGET = lumina-fm
-isEmpty(PREFIX) {
- PREFIX = /usr/local
-}
-target.path = $$DESTDIR$$PREFIX/bin
-
-isEmpty(LIBPREFIX) {
- LIBPREFIX = $$PREFIX/lib
-}
+target.path = $$DESTDIR$${L_BINDIR}
TEMPLATE = app
@@ -42,17 +36,8 @@ FORMS += MainUI.ui \
# RESOURCES+= lumina-fm.qrc
-INCLUDEPATH += ../libLumina $$PREFIX/include
-
-LIBS += -L../libLumina -L$$LIBPREFIX -lLuminaUtils
-
-isEmpty(QT5LIBDIR) {
- QT5LIBDIR = $$PREFIX/lib/qt5
-}
-
-LRELEASE = $$QT5LIBDIR/bin/lrelease
+LIBS += -lLuminaUtils
-QMAKE_LIBDIR = ../libLumina
DEPENDPATH += ../libLumina
TRANSLATIONS = i18n/lumina-fm_af.ts \
@@ -118,11 +103,11 @@ TRANSLATIONS = i18n/lumina-fm_af.ts \
i18n/lumina-fm_zh_TW.ts \
i18n/lumina-fm_zu.ts
-dotrans.path=$$PREFIX/share/Lumina-DE/i18n/
-dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$$PREFIX/share/Lumina-DE/i18n/
+dotrans.path=$${L_SHAREDIR}/Lumina-DE/i18n/
+dotrans.extra=cd i18n && $${LRELEASE} -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)$${L_SHAREDIR}/Lumina-DE/i18n/
desktop.files=lumina-fm.desktop
-desktop.path=$$PREFIX/share/applications/
+desktop.path=$${L_SHAREDIR}/applications/
INSTALLS += target dotrans desktop
bgstack15