From 556040ae16579ff0ca360964bbb025e6b3bb1739 Mon Sep 17 00:00:00 2001 From: Jesse Smith Date: Wed, 24 Sep 2014 21:22:43 -0300 Subject: Added initial support for Debian/kFreeBSD. This patch has been tested and shown to build/run on Debian/kFreeBSD, Ubuntu and PC-BSD. --- lumina-config/lumina-config.pro | 10 ++++++---- lumina-config/main.cpp | 9 ++++----- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'lumina-config') diff --git a/lumina-config/lumina-config.pro b/lumina-config/lumina-config.pro index f79deeef..766448d8 100644 --- a/lumina-config/lumina-config.pro +++ b/lumina-config/lumina-config.pro @@ -22,10 +22,12 @@ FORMS += mainUI.ui \ INCLUDEPATH += ../libLumina /usr/local/include -linux-* { - LIBS += -L../libLumina -lLuminaUtils -} else { - LIBS += -L../libLumina -lLuminaUtils -lQtSolutions_SingleApplication-head + LIBS += -L../libLumina -lLuminaUtils +freebsd-* { + LIBS += -lQtSolutions_SingleApplication-head +} +openbsd-g++4 { + LIBS += -lQtSolutions_SingleApplication-head } openbsd-g++4 { diff --git a/lumina-config/main.cpp b/lumina-config/main.cpp index c6525014..d1cb2004 100644 --- a/lumina-config/main.cpp +++ b/lumina-config/main.cpp @@ -1,9 +1,8 @@ #include -#ifdef __linux - // #include -#else + +#ifdef __FreeBSD__ #include -#endif // #ifdef __linux +#endif #include #include #include @@ -16,7 +15,7 @@ int main(int argc, char ** argv) { - #ifdef __linux + #ifndef __FreeBSD__ QApplication a(argc, argv); #else QtSingleApplication a(argc, argv); -- cgit