This is for v4.1, from v4.2 Mac OSX will be just part of the normal CCP4 build.
The ccp4 programs run on MacOSX. There are changes required to the configure scripts, and some of the C routines for machine dependencies. There is the further difficulty in that there is a fault with the fortran start-up file crt1.o which causes linking problems with programs that have large common blocks. This is corrected by linking in MacOSX.o.
Before proceding I would suggest visits to
Here we go:
If this does not work go to the gnu-darwin ccp4 pages.
TODO: some of the x-programs will not compile. More fiddling is required. xdlmapman will go at -O1 which will will give xdlgjk. This can be worked around by setting the environmental variable xdlmapman_FLAGS prior to compilation:
setenv xdlmapman_FLAGS "-O1 -funroll-loops -ffast-math -fno-second-underscore -fno-globals"
Disclaimer: this works for me, and all/most of this will make its way into the next release.
fink, and probable gnu-darwin, have tcl and tk. If you have these blt should install with some hacking of the Makefile. Just in case here are
these work.Note: bltwish works with X, not aqua.
the uniquefy, amore-sphere and extractsummary scripts have a test to find the best version of awk to use
# find awk executable
for myawk in nawk gawk awk
do
if ( `type $myawk >/dev/null 2>&1` ); then
break
fi
done
this fails incorrectly under OSX as there is no type command.
diff -r1.10 uniqueify 129,131c129 < if ( `type $myawk >/dev/null 2>&1` ); then < break < fi --- > test -f $myawk && break
Feedback: ccb@dl.ac.uk
Special thanks to Dr. Michael Love and Dr. Martin Noble