ports

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

libedit.mk (957B)


      1 TARG = libedit
      2 DEPS = ncurses
      3 
      4 <$mkbuild/mk.common-noinst
      5 
      6 libedit:QV:
      7 	# -D__STDC_ISO_10646__ fixes error:
      8 	#  "wchar_t must store ISO 10646 characters".
      9 	export CFLAGS="$CFLAGS $DEPS_CFLAGS -D__STDC_ISO_10646__"
     10 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     11 	CC="$CC" ./configure \
     12 		--build="${TOOLCHAIN_TRIPLET}" \
     13 		--host="${HOST_TOOLCHAIN_TRIPLET}" \
     14 		--prefix="$PREFIX" \
     15 		--mandir="$ROOT/share/man" \
     16 		--disable-shared \
     17 		--enable-static \
     18 		--enable-widec
     19 	make -j$nprocs
     20 	# install lib for use as a dependency.
     21 	make -j$nprocs install DESTDIR="`pwd`/lib"
     22 	# remove .la files for now ?
     23 	find `pwd`/lib -iname "*.la" -exec rm {} \;
     24 	# make symlink for use as a readline replacement.
     25 	ln -sf libedit.a "`pwd`/lib/lib/libreadline.a"
     26 	# readline headers.
     27 	mkdir -p "`pwd`/lib/include/readline"
     28 	touch "`pwd`/lib/include/readline/history.h"
     29 	touch "`pwd`/lib/include/readline/tilde.h"
     30 	cp src/editline/readline.h "`pwd`/lib/include/readline/readline.h"