# cp /usr/local/lib/gcc-lib/ppc/2.95.2/g2c.h /usr/local/include
# ln -s g2c.h /usr/local/include/f2c.h$ cd ncurses-5.0
$ gzcat ../../ncurses/ncurses-5.0-19991030.patch.gz | patch -p1 -s
$ gzcat ../../ncurses/ncurses-5.0-20000122.patch.gz | patch -p1 -s
$ patch -p1 -s < ../../ncurses/ncurses-5.0-oldmajor.patch
$ patch -p1 -s < ../../ncurses/ncurses-4.2-arm.patch
$ patch -p1 -s < ../../ncurses/ncurses-5.0-setuid2.patch
$ patch -p1 -s < ../../ncurses/ncurses-5.0-xtermchanges.patch
$ patch -p1 -s < ../../ncurses/ncurses-5.0-macosx.patch
$ find . -name "*.orig" -exec rm -f {} \;$ find . -name "*~" -exec rm -f {} \;
$ ./configure darwin --with-install-prefix=`pwd`/tmp --with-normal --without-debug --without-profile --without-cxx --without-ada
$ make HOSTCC=cc >& make.log &
$ su
# make install includedir=/usr/local/include/ncurses 1>&install.log &
# tar -zcvf <somewhere>/ncurses-5.0-bin.tar.gz -C tmp usr
# tar -zxvf <somewhere>/ncurses-5.0-bin.tar.gz -C /
# exit
$ export CVS_RSH=ssh今までにコンパイルしたもののソースおよびパッチは macosx/src に、またバイナリーの tar ball は macosx/tgz または macosx/darwin.tgz にそれぞれ置いてある。いつものように使う場合は自己責任で。
$ export CVSROOT=jlclogin:/proj/soft/CVSMASTER
$ cd /proj/soft/lclib
$ cvs checkout lclib$ export CERN_ROOT=/cern/pro
$ export ROOTSYS=/opt/root/pro
$ export LCLIBROOT=/proj/soft/lclib/pro
$ export JSFROOT=/proj/soft/jsf/pro
$ export LD_LIBRARY_PATH=$ROOTSYS/lib:$JSFROOT/lib:
$ export PATH=$PATH:$ROOTSYS/bin:$LCLIBROOT/bin:$JSFROOT/bin$ mv lclib 2000-1
$ ln -s 2000-1 pro
$ cd pro
$ vi config/lclib.tmpl
.... added ifdef section for MacOSX
$ vi gen/Makefile
....
SHELL = /bin/bash
....
$ vi util/Makefile
....
SHELL = /bin/bash
....
$ vi util/tbschk/termlib.c
....
#ifdef __DARWIN__
#include "ncurses/curses.h"
#else
#include "curses.h"
#endif
$ make