diff --git a/packages/devel/ncurses/build b/packages/devel/ncurses/build index be41a3ab29..8551d64725 100755 --- a/packages/devel/ncurses/build +++ b/packages/devel/ncurses/build @@ -7,15 +7,13 @@ CWD=`pwd` setup_toolchain host cd $PKG_BUILD/ncurses-host -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --without-shared \ +./configure make -C include make -C progs tic +cp -PR progs/tic $ROOT/$TOOLCHAIN/bin + cd "$CWD" setup_toolchain target @@ -35,11 +33,11 @@ cd $PKG_BUILD --without-cxx-binding \ --without-ada \ --without-progs \ - --without-shared \ + --with-shared \ --without-normal \ --without-debug \ --without-profile \ - --without-termlib \ + --with-termlib \ --without-dbmalloc \ --without-dmalloc \ --without-gpm \ @@ -71,10 +69,11 @@ cd $PKG_BUILD make -C include make -C ncurses -#$AR cru lib/libncurses.a obj_s/*.o +$AR cru lib/libncurses.a obj_s/*.o $MAKEINSTALL -C include $MAKEINSTALL -C ncurses -cd $SYSROOT_PREFIX/usr/include/ncurses -cp curses.h term.h ../ +cp $SYSROOT_PREFIX/usr/include/ncurses/curses.h \ + $SYSROOT_PREFIX/usr/include/ncurses/term.h \ + $SYSROOT_PREFIX/usr/include/ diff --git a/packages/devel/ncurses/install b/packages/devel/ncurses/install index bc1fa8244e..287861abfc 100755 --- a/packages/devel/ncurses/install +++ b/packages/devel/ncurses/install @@ -3,7 +3,8 @@ . config/options mkdir -p $INSTALL/usr/lib -cp $PKG_BUILD/lib/libncurses.so* $INSTALL/usr/lib +cp -PR $PKG_BUILD/lib/libncurses.so* $INSTALL/usr/lib +cp -PR $PKG_BUILD/lib/libtinfo.so* $INSTALL/usr/lib -#mkdir -p $INSTALL/usr/share/terminfo/l -#TERMINFO=$INSTALL/usr/share/terminfo LD_LIBRARY_PATH=`ls -d $PKG_BUILD/ncurses-host/lib`:$LD_LIBRARY_PATH $PKG_BUILD/ncurses-host/progs/tic -xe linux $PKG_BUILD/misc/terminfo.src +mkdir -p $INSTALL/usr/share/terminfo/l +TERMINFO=$INSTALL/usr/share/terminfo $ROOT/$TOOLCHAIN/bin/tic -xe linux $PKG_BUILD/misc/terminfo.src