js: fixed libtermcap
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sat, 4 Sep 2010 22:59:20 +0000 (22:59 +0000)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Thu, 9 Sep 2010 19:09:59 +0000 (21:09 +0200)
the new ncurses does not have libtermcap
this patches -ltermcap into -lncurses
also added ncurses to DEPENDS

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
recipes/js/files/libtermcap.patch [new file with mode: 0644]
recipes/js/js_1.5.bb

diff --git a/recipes/js/files/libtermcap.patch b/recipes/js/files/libtermcap.patch
new file mode 100644 (file)
index 0000000..045b4fb
--- /dev/null
@@ -0,0 +1,13 @@
+Index: src/Makefile.ref
+===================================================================
+--- src.orig/Makefile.ref
++++ src/Makefile.ref
+@@ -127,7 +127,7 @@ endif
+ ifdef JS_READLINE
+ # For those platforms with the readline library installed.
+ DEFINES += -DEDITLINE
+-PROG_LIBS += -lreadline -ltermcap
++PROG_LIBS += -lreadline -lncurses
+ else
+ ifdef JS_EDITLINE
+ # Use the editline library, built locally.
index eb92b24..f9aba90 100644 (file)
@@ -1,11 +1,12 @@
 DESCRIPTION = "A JavaScript engine"
 LICENSE = "GPL"
 SECTION = "libs/network"
-DEPENDS = "readline"
+DEPENDS = "readline ncurses" 
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/js-1.5.tar.gz \
+          file://libtermcap.patch \
            file://jsautocfg.h"
 S = "${WORKDIR}/js/src"