summaryrefslogtreecommitdiff
path: root/packages/libedit/libedit_20050118.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/libedit/libedit_20050118.bb
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/libedit/libedit_20050118.bb')
-rw-r--r--packages/libedit/libedit_20050118.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/libedit/libedit_20050118.bb b/packages/libedit/libedit_20050118.bb
index e69de29bb2..fb714e3562 100644
--- a/packages/libedit/libedit_20050118.bb
+++ b/packages/libedit/libedit_20050118.bb
@@ -0,0 +1,39 @@
+DESCRIPTION = "BSD replacement for libreadline"
+HOMEPAGE = "http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/"
+MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
+LICENSE="BSD"
+DEPENDS = "ncurses"
+
+SRC_URI = "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles/libedit-${PV}.tar.bz2 \
+ file://20031222-debian-to-gentoo.patch;patch=1;pnum=1 \
+ file://libedit-add-soname.diff;patch=1;pnum=0"
+
+S = "${WORKDIR}/netbsd-cvs"
+
+CFLAGS += "-I. -include ../glibc-bsd-glue/bsdcompat.h -I../glibc-compat -I../glibc-bsd-glue"
+
+do_configure() {
+ mv ${WORKDIR}/glibc-*/*.c .
+ oe_runmake .depend
+}
+
+do_compile() {
+ oe_runmake LIBS="-lncurses ${LDFLAGS}"
+}
+
+do_stage() {
+ oe_libinstall -a -so libedit ${STAGING_LIBDIR}
+ install -d ${STAGING_INCDIR}/editline/
+ install readline/readline.h ${STAGING_INCDIR}/editline/
+ install histedit.h ${STAGING_INCDIR}/editline/
+}
+
+do_install() {
+ install -d ${D}${libdir} ${D}${includedir}/editline ${D}${mandir}
+ oe_libinstall -a -so libedit ${D}${libdir}
+ install readline/readline.h ${D}${includedir}/editline/
+ install histedit.h ${D}${includedir}/editline/
+ install *.[35] ${D}${mandir}
+}
+
+FILES_${PN} = "${libdir}/libedit.so"