e-uae: fix build
authorKoen Kooi <koen@openembedded.org>
Mon, 17 Nov 2008 12:26:25 +0000 (13:26 +0100)
committerKoen Kooi <koen@openembedded.org>
Mon, 17 Nov 2008 12:26:25 +0000 (13:26 +0100)
packages/uae/e-uae_0.8.28.bb
packages/uae/files/configure.patch

index f8f95e8..388f3cc 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "base"
 PRIORITY = "optional"
 DEPENDS = "virtual/libsdl zlib"
 LICENSE = "GPL"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://rcdrummond.net/uae/e-uae-${PV}/e-uae-${PV}.tar.bz2 \
            file://configure.patch;patch=1"
@@ -20,6 +20,10 @@ CFLAGS_append = " -DSTAT_STATFS2_BSIZE=1 "
 CXXFLAGS_append = " -DSTAT_STATFS2_BSIZE=1 "
 PARALLEL_MAKE = ""
 
+export S
+export PKG_CONFIG="${STAGING_BINDIR_NATIVE}/pkg-config"
+
 do_configure_prepend () {
+       sed -i -e s:getline:etline:g ./src/gui-none/nogui.c
        touch NEWS AUTHORS ChangeLog
 }
index bd2ecce..23df6b9 100644 (file)
@@ -5,5 +5,5 @@
    export CFLAGS=$CFLAGS_FOR_BUILD
    mkdir -p src/tools
 -  cd  src/tools && ../../"$srcdir"/src/tools/configure --cache-file=/dev/null --host=$build --target=$host
-+  cd  src/tools && "$srcdir"/src/tools/configure --cache-file=/dev/null --host=$build --target=$host
++  cd  src/tools && "$S"/src/tools/configure --cache-file=/dev/null --host=$build --target=$host
  fi