2001/03/07    Garfield on MacOS X


Drift Chamber のシミュレーションプログラム、garfield を移植。以下は作業記録。
 

[1] Garfield-6.34

$ cd garfield-6.34
$ patch -p1 -s < garfield-6.34-garfield.patch
$ patch -p1 -s < garfield-6.34-makefile.patch
$ patch -p1 -s < garfield-6.34-big.patch
In addition the following patch was necessary:
$ patch -p1 -s < garfield-6.34-macosx.patch
since g77 abended when too many elseif's are there as in grtx.f and inpcal.f.
$ make -f makefile_linux FDEBUGFLAGS='-O0 -fPIC'
$ make -f makefile_linux help
$ su
# mkdir -p tmp/cernlib/2000/bin
# mkdir -p tmp/cernlib/2000/share/garfield
# cp garfield tmp/cernlib/2000/bin
# cp garfield.packhelp tmp/cernlib/2000/share/garfield
# cp garfinit tmp/cernlib/2000/share/garfield
# chown -R root:wheel tmp/cernlib
# tar -zcvf ../../../../tgz/installed/garfield-6.34-xf86.tar.gz -C tmp/ cernlib
# tar -zxvf ../../../../tgz/installed/garfield-6.34-xf86.tar.gz -C /
# exit

[2] Garfield-7.01

$ cd ../garfield-7.01
$ patch -p1 -s < garfield-7.01-garfield.patch
$ patch -p1 -s < garfield-7.01-makefile.patch
$ patch -p1 -s < garfield-7.01-macosx.patch
$ make -f makefile_linux FDEBUGFLAGS='-O0'
$ make -f makefile_linux help
$ su
# mkdir -p tmp/cernlib/2000/bin
# mkdir -p tmp/cernlib/2000/share/garfield7
# cp garfield tmp/cernlib/2000/bin/garfield7
# cp garfield.packhelp tmp/cernlib/2000/share/garfield7
# cp garfinit tmp/cernlib/2000/share/garfield7
# chown -R root:wheel tmp/cernlib
# tar -zcvf ../../../../tgz/installed/garfield-7.01-xf86.tar.gz -C tmp/ cernlib
# tar -zxvf ../../../../tgz/installed/garfield-7.01-xf86.tar.gz -C /
# exit
今までにコンパイルしたもののソースおよびパッチは macosx/src に、またバイナリーの tar ball は macosx/tgz または macosx/darwin.tgz にそれぞれ置いてある。いつものように使う場合は自己責任で。
 


Back to Keisuke Fujii's MkLinux/LinuxPPC Life