diff options
Diffstat (limited to 'ncurses')
-rw-r--r-- | ncurses/ncurses_4.2.oe | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ncurses/ncurses_4.2.oe b/ncurses/ncurses_4.2.oe index e69de29bb2..706691bedf 100644 --- a/ncurses/ncurses_4.2.oe +++ b/ncurses/ncurses_4.2.oe @@ -0,0 +1,40 @@ +DESCRIPTION="Ncurses library" +SECTION="libs" +DEPENDS=virtual/libc +SRC_URI = ${GNU_MIRROR}/ncurses/${P}.tar.gz \ + file://${FILESDIR}/mk_shared_lib.patch;patch=1 \ + file://${FILESDIR}/run_tic.patch;patch=1 + +inherit autotools + +EXTRA_OECONF=--with-shared \ + --without-profile \ + --without-debug \ + --disable-rpath \ + --enable-echo \ + --enable-const \ + --without-ada \ + --enable-termcap \ + --without-cxx-binding \ + --with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo \ + --enable-overwrite +export HOSTCCFLAGS=-I${S}/ncurses -I${S}/include ${BUILD_CFLAGS} +export HOSTLDFLAGS= +export LD := ${CC} + +do_compile () { + oe_runmake -C progs 'HOSTCC=${BUILD_CC}' 'HOSTLDFLAGS=' \ + 'HOSTCCFLAGS=${HOSTCCFLAGS}' 'CC=${BUILD_CC}' \ + 'LINK=${BUILD_CXX}' 'CFLAGS=${HOSTCCFLAGS}' \ + 'LDFLAGS=-lncurses' tic + oe_runmake 'HOSTCC=${HOSTCC}' 'HOSTLDFLAGS=' 'HOSTCCFLAGS=${HOSTCCFLAGS}' +} + +do_stage () { + install -m 0755 lib/lib*.so.* ${STAGING_LIBDIR}/ + cp -R include/* ${STAGING_DIR}/target/include/ + ln -sf libpanel.so.${PV} ${STAGING_LIBDIR}/libpanel.so + ln -sf libform.so.${PV} ${STAGING_LIBDIR}/libform.so + ln -sf libmenu.so.${PV} ${STAGING_LIBDIR}/libmenu.so + ln -sf libncurses.so.${PV} ${STAGING_LIBDIR}/libncurses.so +} |