prismstumbler: Some additional fixes.
authorFlorian Boor <florian.boor@kernelconcepts.de>
Tue, 3 Apr 2007 22:21:38 +0000 (22:21 +0000)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Tue, 3 Apr 2007 22:21:38 +0000 (22:21 +0000)
packages/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/.mtn2git_empty [new file with mode: 0644]
packages/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/gpsapi.patch [new file with mode: 0644]
packages/prismstumbler/prismstumbler_0.7.3+0.7.4pre1.bb

diff --git a/packages/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/.mtn2git_empty b/packages/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/gpsapi.patch b/packages/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/gpsapi.patch
new file mode 100644 (file)
index 0000000..638a877
--- /dev/null
@@ -0,0 +1,13 @@
+--- 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;
+ }
index 44401df..9311f89 100644 (file)
@@ -1,5 +1,5 @@
 SECTION = "x11/network"
-PR = "r0"
+PR = "r1"
 
 PACKAGES = "prismstumbler prismstumbler-frontend prismstumbler-doc"
 DESCRIPTION = "Prismstumbler wireless LAN scanner"
@@ -9,7 +9,8 @@ DEPENDS = "libpcap gtk+ wireless-tools sqlite zlib dbus-glib gpsd"
 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"
 
@@ -21,7 +22,8 @@ EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
                --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"