gpsd: Only build qt support if qt-network is enabled
authorFrederik Pasch <fpasch@googlemail.com>
Mon, 15 Nov 2010 18:32:03 +0000 (15:32 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 24 Nov 2010 21:41:46 +0000 (22:41 +0100)
Signed-off-by: Frederik Pasch <fpasch@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/gpsd/gpsd.mk

diff --git a/CHANGES b/CHANGES
index 05c9554138a704a26542d4ef72f1af553588ac0e..e5332195199f0cc9f993e7e69c08b37eb1ff9e61 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,7 +2,7 @@
 
        Fixes all over the tree.
 
-       Updated/fixed packages: bash, bind, busybox, libglib2,
+       Updated/fixed packages: bash, bind, busybox, gpsd, libglib2,
        libcurl, libmad, lrzsz, midori, module-init-tools, mtd-utils,
        openssh, openssl, pciutils, qt, sqlite, sysstat, webkit, zlib
 
index ab7e921c12b3d3b97ab1614fbf1cc98756582bba..6c249911b85b5e578a1939f29814eefd0eaca318 100644 (file)
@@ -18,6 +18,15 @@ else
        GPSD_CONF_OPT += --disable-libgpsmm
 endif
 
+# Enable or disable Qt binding
+ifeq ($(BR2_PACKAGE_QT_NETWORK),y)
+       GPSD_CONF_ENV += QMAKE="$(QT_QMAKE)"
+       GPSD_CONF_OPT += --enable-libQgpsmm
+       GPSD_DEPENDENCIES += qt
+else
+       GPSD_CONF_OPT += --disable-libQgpsmm
+endif
+
 # If libusb is available build it before so the package can use it
 ifeq ($(BR2_PACKAGE_LIBUSB),y)
        GPSD_DEPENDENCIES += libusb