PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD="http" SRC_FETCH_PATH="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-${PKGVER}.tar.gz" MAKEDEPENDS= function build_tic { # Sometimes, broken packages will need LD="$CC" echo "Building the native TIC utility first" CC="$HOSTCC" CXX="$HOSTCXX" LD="$HOSTCC" \ ./configure --disable-nls --disable-locale \ --enable-getcap --enable-termcap --enable-symlinks \ --enable-sigwinch --enable-tcap-names \ --with-shared --with-normal --without-debug --without-profile \ --without-ada --without-cxx --libdir=/usr/lib || return 1 $FLXPMAKE -C include # tic must not depend on the current ncurses lib so we want a static one $FLXPMAKE -C progs tic LDFLAGS_TIC='$(LDFLAGS_SHARED) $(LIBS_TIC) -static' rm -rf native-tools mkdir -p native-tools cp progs/tic native-tools/tic $FLXPMAKE distclean } function do_config { # The "tic" utility provided by the system almost never works with # another version. In general it spins forever. Let's build a native # one first. build_tic || return 1 ac_cv_path_TIC_PATH="$CURDIR/native-tools/tic" LIBDIR="--libdir=/usr/lib" # Sometimes, broken packages will need LD="$CC" # can't use --without-progs, because we need 'clear' CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL -fPIC" \ ./configure --prefix=/usr --sysconfdir=/etc \ --build=${FLXHOST} --host=${FLXTARG} \ --disable-nls --disable-locale \ --enable-getcap --enable-termcap --enable-symlinks \ --enable-sigwinch --enable-tcap-names \ --with-shared --with-normal --without-debug --without-profile \ --without-ada --without-cxx --without-tests $LIBDIR } function do_compile_only { # standard make #$FLXPMAKE : } function do_prepack { # we must specify INSTALL_PROG, otherwise it is 'install -s' by default and strip will not find 'tic' binary # when cross-compiling. And we will strip the binaries later anyway. local ret # even our own "tic" may break on kconsole, remove this crap. mv misc/terminfo.tmp misc/terminfo.bad && sed -ne '/^konsole/,/^$/d;p' < misc/terminfo.bad >misc/terminfo.tmp mv misc/terminfo.tmp misc/terminfo.bad && sed -ne '/^screen/,/^$/d;p' < misc/terminfo.bad >misc/terminfo.tmp mv misc/terminfo.tmp misc/terminfo.bad && sed -ne '/^viewdata/,/^$/d;p' < misc/terminfo.bad >misc/terminfo.tmp PATH="$PWD/native-tools:$PATH" $FLXMAKE install DESTDIR=$ROOTDIR INSTALL_PROG=install ret=$? find .flxdisk/usr/share/terminfo/ -type f \! -name vt100 -and \! -name linux \! -name xterm | xargs rm -f return $ret }