# fss-0002

main:
  ./configure $CONF --without-normal --without-debug --without-ada --enable-overwrite --with-shared --enable-colorfgbg --enable-symlinks --enable-ext-mouse --with-termlib --without-gpm --enable-termcap --with-termpath=/etc/termcap --enable-getcap --enable-const --enable-sigwinch --enable-tcap-names --disable-rpath --without-dlsym --enable-widec --enable-ext-colors --with-pthread --enable-reentrant
  sed -i -e '/-@rm -f %s $(DESTDIR)$(libdir)\/libncurses.so.$(REL_VERSION)/d' ncurses/Makefile
  sed -i -e '/-@rm -f %s $(DESTDIR)$(libdir)\/libtinfo.so.$(REL_VERSION)/d' ncurses/Makefile
  make
  make install
  if [ -f /bin/ncurses?-config ] ; then mv -v /bin/ncurses?-config ${TC}bin/ ; fi
  for i in libncurses++.a ; do if [[ -f /lib/$i ]] ; then mv -v /lib/$i ${TC}lib/static/ ; fi ; done
  rm -Rf /share/terminfo
  cp -vR ${PR}terminfo /share/
  chmod ug+x /lib/lib{ncurses,form,menu,panel,tinfo}*.so
  chgrp e_public /lib/lib{ncurses,form,menu,panel,tinfo}*.so
  chgrp e_curses /bin/{clear,infocmp,tic,toe,tput,tset,tabs}
  chgrp e_public -R /share/{tabset,terminfo}
  chmod o-rx /lib/lib{ncurses,form,menu,panel,tinfo}*.so
  chmod o-rx /bin/{clear,infocmp,tic,toe,tput,tset,tabs}
  chmod o-rx -R /share/{tabset,terminfo}

pre_pass:
  ./configure $CONF --without-normal --without-debug --without-ada --enable-overwrite --with-shared --enable-colorfgbg --enable-symlinks --enable-ext-mouse --with-termlib --without-gpm --enable-termcap --with-termpath=/etc/termcap --enable-getcap --enable-const --enable-sigwinch --enable-tcap-names --disable-rpath --without-dlsym --without-cxx --enable-widec --enable-ext-colors --with-pthread --enable-reentrant
  sed -i -e '/cd test/d' Makefile
  sed -i -e '/-@rm -f %s $(DESTDIR)$(libdir)\/libncurses.so.$(REL_VERSION)/d' ncurses/Makefile
  sed -i -e '/-@rm -f %s $(DESTDIR)$(libdir)\/libtinfo.so.$(REL_VERSION)/d' ncurses/Makefile
  make
  make install
  if [ -f /bin/ncurses?-config ] ; then mv -v /bin/ncurses?-config ${TC}bin/ ; fi
  rm -Rf /share/terminfo
  cp -vR ${PR}terminfo /share/
  chmod ug+x /lib/lib{ncurses,form,menu,panel,tinfo}*.so
  chgrp e_public /lib/lib{ncurses,form,menu,panel,tinfo}*.so
  chgrp e_curses /bin/{clear,infocmp,tic,toe,tput,tset,tabs}
  chgrp e_public -R /share/{tabset,terminfo}
  chmod o-rx /lib/lib{ncurses,form,menu,panel,tinfo}*.so
  chmod o-rx /bin/{clear,infocmp,tic,toe,tput,tset,tabs}
  chmod o-rx -R /share/{tabset,terminfo}
