--- /dev/null
+--- prismstumbler-0.7.4pre1/src/daemon/gpsctl.c~ 2007-04-04 00:10:03.000000000 +0200
++++ prismstumbler-0.7.4pre1/src/daemon/gpsctl.c 2007-04-04 00:10:03.000000000 +0200
+@@ -30,8 +30,8 @@
+ if(!gps_conn)
+ return 0;
+
+- *lat = (float) gps_conn->newdata.latitude;
+- *lon = (float) gps_conn->newdata.longitude;
++ *lat = (float) gps_conn->fix.latitude;
++ *lon = (float) gps_conn->fix.longitude;
+ return 1;
+ }
+
SECTION = "x11/network"
-PR = "r0"
+PR = "r1"
PACKAGES = "prismstumbler prismstumbler-frontend prismstumbler-doc"
DESCRIPTION = "Prismstumbler wireless LAN scanner"
RDEPENDS = "wireless-tools"
RRECOMMENDS = "gpsd"
-SRC_URI = "http://projects.linuxtogo.org/frs/download.php/14/${PN}-0.7.4pre1.tar.gz"
+SRC_URI = "http://projects.linuxtogo.org/frs/download.php/14/${PN}-0.7.4pre1.tar.gz \
+ file://gpsapi.patch;patch=1"
S = "${WORKDIR}/${PN}-0.7.4pre1"
--with-libpcap=${STAGING_DIR}/${HOST_SYS} \
--with-sqlite-includes=${STAGING_INCDIR} \
--with-sqlite-libs=${STAGING_LIBDIR} \
- --without-athena --enable-dbus"
+ --without-athena --enable-dbus \
+ --with-libiw=${STAGING_DIR}/${HOST_SYS}"
CFLAGS =+ "-I${S}/include"
LDFLAGS += "-lz"