-------------
 On fujiipb
-------------

MacOSX Installation

	MacOS X Release 10.2
	gcc-with-g77-1151-1b
	Libcomapt-14.1-2a
	dlcompat-20021001-1a
	lapack-3.0-12a
	blas-3.0-12a
	

[0] Preparation

# cd /
# rm cern
# ln -s /Users/fujiik/sandbox/mypkg/hep/cernlib cern
# cd /cern
# for i in `ls <somewhere>/src_*.tar.gz`; do tar -zxvf $i; done
# pushd 2002/src/mclibs/pdf/spdf
# for i in ctq4* ; do new=`echo $i | tr [A-Z] [a-z] | sed -e 's;\.f;.F;'`; if [ $new != $i ]; then mv $i $new; fi; done
# popd
# cp <somewhere>/Imakefile 2002/src/
# ln -s 2002 new
# ln -s 2002 pro 
# mkdir -p 2002/work
# chown fujiik:jlc 2002/work
# chown fujiik:jlc 2002
# cd 2002/src
# patch -p1 -s < <somewhere>/cernlib-2002-macosx.patch
# vi $CVSCOSRC/scripts/cernlib
...
#         CERNLIB="$CERNLIB -L/usr/local/lib -lshift"
...


[1] Build

$ cd /cern
$ export CERN=`pwd`
$ export CERN_LEVEL=new
$ export CERN_ROOT=$CERN/$CERN_LEVEL
$ cd 2002/work
$ mkdir ../logs
$ export CVSCOSRC=$CERN_ROOT/src
$ mkdir ../bin
$ cp $CVSCOSRC/scripts/cernlib ../bin
$ ln -s /usr/local/lib/liblapack.a ../lib/liblapack3.a
$ ln -s /usr/local/lib/libblas.a ../lib/.
$ $CVSCOSRC/config/imake_boot
$ make tree HAVE_MOTIF='YES' >& ../logs/tree.log &
$ tail -f ../logs/tree.log			2002/10/01 20:59-21:01
^C

$ pushd packlib/kuip/programs/kuipc
$ make
$ make install.bin
$ popd

$ make HAVE_MOTIF='YES' >& ../logs/make.log &		
$ tail -f ../logs/make.log			2002/10/01 21:04-23:05

$ cd packlib
$ make install.bin HAVE_MOTIF='YES' >& ../../logs/packlib.bin.log & 
$ tail -f ../../logs/packlib.bin.log		2002/10/01 23:30-23:37

$ cd ../pawlib
$ make install.bin HAVE_MOTIF='YES' >& ../../logs/pawlib.bin.log &  
$ tail -f ../../logs/pawlib.bin.log		2002/10/01 23:38-23:39

$ cd ../graflib
$ make install.bin HAVE_MOTIF='YES' >& ../../logs/graflib.bin.log & 
$ tail -f ../../logs/graflib.bin.log		2002/10/01 23:39-23:39

$ cd ../scripts
$ make install.bin HAVE_MOTIF='YES' >& ../../logs/scripts.bin.log & 
$ tail -f ../../logs/scripts.bin.log			

$ cd ..
$ make install.include CERN_INCLUDEDIR=/cern/new/include \
		>& ../logs/install.include.log &	
$ tail -f ../logs/install.include.log


[2] Tests

$ cd packlib
$ make test >& ../../logs/packlib.test.log &		
$ tail -f ../../logs/packlib.test.log

	ALL TESTS PASSED!

$ cd ../mathlib
$ make test >& ../../logs/mathlib.test.log &		
$ tail -f ../../logs/mathlib.test.log

	ALL TESTS but C327 PASSED!

$ cd ../graflib/higz/examples
$ make higzex						
$ ./higzex

	OK!

$ cd ../../../../src/pawlib/paw/demo
$ paw all.kumac
...
go
...
	OK!


$ cd ../../../../work/mclibs
$ make test >& ../../logs/mclibs.test.log &		
$ tail -f ../../logs/mclibs.test.log

	ALL TESTS PASSED!

$ cd ../phtools
$ make test >& ../../logs/phtools.test.log &		
$ tail -f ../../logs/phtools.test.log

	ALL TESTS PASSED!

$ cd ../geant321
$ make test >& ../../logs/geant321.test.log &		
$ tail -f ../../logs/geant321.test.log

	ALL TESTS PASSED!


[3] Aftermath

# cd /cern
# chown -R root:wheel *
# mkdir 2002/tgz
# tar -zcvf 2002/tgz/cernlib-2002-bin.tar.gz 2002/bin
# tar -zcvf 2002/tgz/cernlib-2002-lib.tar.gz 2002/lib
# tar -zcvf 2002/tgz/cernlib-2002-include.tar.gz 2002/include
# tar -zcvf 2002/tgz/cernlib-2002-share.tar.gz 2002/share
