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>
--- /dev/null
+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.
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"