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. if [ "$FLXHOST" != "$FLXTARG" ]; then build_tic || return 1 fi LIBDIR="--libdir=/usr/lib" # Sometimes, broken packages will need LD="$CC" 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" \ ./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 $LIBDIR } function do_compile_only { # standard make $FLXPMAKE } function do_prepack { 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 ret=$? find .flxdisk/usr/share/terminfo/ -type f \! -name vt100 -and \! -name linux \! -name xterm | xargs rm -f return $ret }