ports

morpheus ports
git clone git://git.2f30.org/ports.git
Log | Files | Refs | LICENSE

commit a89b961111731429a9002a4e2f9c49171fce12f4
parent 18c0964970236bb648744b3b857be703e3c4c4fc
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat Jun 14 19:59:55 +0200

add libedit

(can be used as a readline replacement)

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
libedit/checksums | 1+
libedit/depsinc.mk | 10++++++++++
libedit/libedit.mk | 28++++++++++++++++++++++++++++
libedit/mkfile | 6++++++
libedit/v.mk | 1+
5 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/libedit/checksums b/libedit/checksums @@ -0,0 +1 @@ +e4aa842c52cd750ea16acd41fed5b037c1455f33e19edaef4754d9d9eb833100c4a98dd874b197ffc09a8808dcee18348c86c7314a3df722d7b02a957d7d08e4 libedit-20140213-3.1.tar.gz diff --git a/libedit/depsinc.mk b/libedit/depsinc.mk @@ -0,0 +1,10 @@ +<$libedit_DEPDIR/v.mk + +libedit_libdir = ${libedit_DEPDIR}/libedit-20140213-$v/lib/lib +libedit_includedir = ${libedit_DEPDIR}/libedit-20140213-$v/lib/include + +libedit_CFLAGS = -I${libedit_includedir} +libedit_LDFLAGS = -L${libedit_libdir} + +DEPS_CFLAGS = $DEPS_CFLAGS ${libedit_CFLAGS} +DEPS_LDFLAGS = $DEPS_LDFLAGS ${libedit_LDFLAGS} diff --git a/libedit/libedit.mk b/libedit/libedit.mk @@ -0,0 +1,28 @@ +TARG = libedit +DEPS = ncurses + +<$mkbuild/mk.common-noinst + +libedit:QV: + # -D__STDC_ISO_10646__ fixes error: + # "wchar_t must store ISO 10646 characters". + export CFLAGS="$CFLAGS $DEPS_CFLAGS -D__STDC_ISO_10646__" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + CC="$CC" ./configure \ + --prefix="$prefix" \ + --mandir="$ROOT/share/man" \ + --disable-shared \ + --enable-static \ + --enable-widec + make -j$nprocs + # install lib for use as a dependency. + make -j$nprocs install DESTDIR=`pwd`/lib + # remove .la files for now ? + find `pwd`/lib -iname "*.la" -exec rm {} \; + # make symlink for use as a readline replacement. + ln -sf libedit.a "`pwd`/lib/lib/libreadline.a" + # readline headers. + mkdir -p "`pwd`/lib/include/readline" + touch "`pwd`/lib/include/readline/history.h" + touch "`pwd`/lib/include/readline/tilde.h" + cp src/editline/readline.h "`pwd`/lib/include/readline/readline.h" diff --git a/libedit/mkfile b/libedit/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = libedit-20140213-$v +url = http://thrysoee.dk/editline/libedit-20140213-$v.tar.gz +mkfile = ../libedit.mk diff --git a/libedit/v.mk b/libedit/v.mk @@ -0,0 +1 @@ +v = 3.1