File qtnx-fix-build.diff of Package freenx-client
--- qtnx/qtnx.pro
+++ qtnx/qtnx.pro
@@ -1,6 +1,6 @@
TEMPLATE = app
-CONFIG += static qt warn_on release
+CONFIG += qt warn_on release
FORMS = settingsdialog.ui logindialog.ui sessionsdialog.ui keydialog.ui logwindow.ui
@@ -8,23 +8,10 @@
HEADERS = qtnxwindow.h qtnxsettings.h qtnxsessions.h nxparsexml.h nxwritexml.h
-INCLUDEPATH += $(QTDIR)/include
+QMAKE_CXXFLAGS += $$system(pkg-config --cflags nxcl)
+LIBS += $$system(pkg-config --libs nxcl)
-!macx {
- QMAKE_CXXFLAGS += $$system(pkg-config --cflags nxcl)
-
- LIBS += $$system(pkg-config --libs nxcl)
-}
-
-macx {
- QMAKE_CXXFLAGS += -I/usr/local/include/nxcl
- LIBS += -lnxcl
-}
-
-DEPENDPATH += $(QTDIR)/include
-
-
-QT += ui xml
+QT += gui xml
TARGET = qtnx
target.path = $$[QT_INSTALL_BINS]