diff options
-rwxr-xr-x | debian/rules | 2 | ||||
-rw-r--r-- | libLumina/libLumina.pro | 14 |
2 files changed, 13 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 877c4cbb..e1e14d53 100755 --- a/debian/rules +++ b/debian/rules @@ -30,14 +30,12 @@ QMAKE_EXTRA_DIRS = libLumina \ dh $@ --parallel override_dh_auto_configure: - sed -e 's/LuminaOS-Linux/LuminaOS-Debian/g' -i libLumina/libLumina.pro $(QMAKE) $(USER_QMAKE_FLAGS) for d in $(QMAKE_EXTRA_DIRS) ; do (cd $$d && $(QMAKE) $(USER_QMAKE_FLAGS)); done override_dh_auto_clean: dh_auto_clean -find $(CURDIR) -name *.qm -delete - -sed -e 's/LuminaOS-Debian/LuminaOS-Linux/g' -i libLumina/libLumina.pro override_dh_install: dh_install --list-missing diff --git a/libLumina/libLumina.pro b/libLumina/libLumina.pro index 1b78367a..8da9598c 100644 --- a/libLumina/libLumina.pro +++ b/libLumina/libLumina.pro @@ -36,10 +36,22 @@ SOURCES += LuminaXDG.cpp \ LuminaOS-FreeBSD.cpp \ LuminaOS-DragonFly.cpp \ LuminaOS-OpenBSD.cpp \ - LuminaOS-Linux.cpp \ LuminaOS-kFreeBSD.cpp # new OS support can be added here +# check linux distribution and use specific +# LuminaOS support functions (or fall back to +# generic one + +LINUX_DISTRIBUTION = $$system(lsb_release -si) + +equals(LINUX_DISTRIBUTION, "Debian"): { + SOURCES += LuminaOS-Debian.cpp +} else { + SOURCES += LuminaOS-Linux.cpp +} + + INCLUDEPATH += $$PREFIX/include LIBS += -lX11 -lXrender -lXcomposite -lxcb -lxcb-ewmh -lxcb-icccm -lxcb-image -lxcb-composite |