fix up prismstumbler build
authorPhil Blundell <philb@gnu.org>
Fri, 29 Oct 2004 19:52:47 +0000 (19:52 +0000)
committerPhil Blundell <philb@gnu.org>
Fri, 29 Oct 2004 19:52:47 +0000 (19:52 +0000)
BKrev: 41829f8fNnifQLyK-6KJpC1Wi8YRdw

prismstumbler/prismstumbler-0.7.3/bogoconf.patch [new file with mode: 0644]
prismstumbler/prismstumbler_0.7.3.oe

diff --git a/prismstumbler/prismstumbler-0.7.3/bogoconf.patch b/prismstumbler/prismstumbler-0.7.3/bogoconf.patch
new file mode 100644 (file)
index 0000000..e69de29
index 9a253fd..b21e1b4 100644 (file)
@@ -7,14 +7,12 @@ LICENSE = "GPL"
 MAINTAINER = "Florian Boor <florian.boor@kernelconcepts.de>"
 DEPENDS = "libpcap gtk+ wireless-tools sqlite"
 
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/prismstumbler/${PN}-${PV}.tar.bz2"
-
-S = "${WORKDIR}/${PN}-${PV}"
+SRC_URI = "${SOURCEFORGE_MIRROR}/prismstumbler/${PN}-${PV}.tar.bz2 \
+       file://bogoconf.patch;patch=1"
 
 inherit autotools pkgconfig
 
-EXTRA_OECONF = ""
+EXTRA_OECONF = "--with-libpcap=${STAGING_DIR}/${HOST_SYS} --with-sqlite-libs=${STAGING_LIBDIR} --with-sqlite-includes=${STAGING_INCDIR}"
 
 FILES_${PN} = "${bindir}/prismstumbler"
 
@@ -22,18 +20,11 @@ FILES_prismstumbler-frontend = "${bindir}/psfront ${bindir}/pst \
                               ${datadir}/applications \
                               ${datadir}/pixmaps ${datadir}/doc/prismstumbler/help.txt \
                                ${sysconfdir}"
-do_configure_prepend() {
-  cd ${S};
-  ./autogen.sh
-}
-
 do_configure() {
-  cd ${S};
-  oe_runconf;
-  cd ${S}/src/gpsd;
-  rm Makefile;
-  rm config.log;
-  rm config.cache;
+  autotools_do_configure
+  cd ${S}/src/gpsd
+  autoreconf
+  rm -f Makefile config.log config.cache
   ${S}/src/gpsd/configure \
                     --build=${BUILD_SYS} \
                     --host=${HOST_SYS} \