diff options
author | Anton Berezin <tobez@FreeBSD.org> | 2001-09-06 21:25:13 +0000 |
---|---|---|
committer | Anton Berezin <tobez@FreeBSD.org> | 2001-09-06 21:25:13 +0000 |
commit | fc3d9f848215142c094f1c3cac9fa96740f4ce02 (patch) | |
tree | 4abba9be2640801108503d16757a7526f2868ed9 /biology/rasmol/scripts | |
parent | Update to 0.5.11. (diff) |
Make biology/rasmol work at all color depths.
PR: 30406
Submitted by: Glenn Johnson <gjohnson@srrc.ars.usda.gov>
Diffstat (limited to 'biology/rasmol/scripts')
-rw-r--r-- | biology/rasmol/scripts/build_viewer | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/biology/rasmol/scripts/build_viewer b/biology/rasmol/scripts/build_viewer new file mode 100644 index 000000000000..1b0c1a2fd0da --- /dev/null +++ b/biology/rasmol/scripts/build_viewer @@ -0,0 +1,46 @@ +#!/bin/sh + +# This builds the rasmol molecular viewer. One of the problems with +# rasmol is that is only works at one color depth. This script will +# build three viewers at different color depths, 8-bit, 16-bit, +# and 32-bit. The binaries are called rasmol-8, rasmol-16, and +# rasmol-32 respectively. A wrapper script installed with the port will +# automatically select the right one. + +cd ${WRKSRC} + +cp Imakefile Imakefile.temp + + +sed s@'ComplexProgramTarget(rasmol)'@'ComplexProgramTarget(rasmol-32)'@ \ + Imakefile.temp > Imakefile + +xmkmf -a + +make clean && make + +sed -e s@'DEPTHDEF = -DTHIRTYTWOBIT'@'# DEPTHDEF = -DTHIRTYTWOBIT'@ \ + -e s@'# DEPTHDEF = -DSIXTEENBIT'@'DEPTHDEF = -DSIXTEENBIT'@ \ + -e s@'ComplexProgramTarget(rasmol)'@'ComplexProgramTarget(rasmol-16)'@ \ + Imakefile.temp > Imakefile + +xmkmf -a + +make clean && make + +sed -e s@'DEPTHDEF = -DTHIRTYTWOBIT'@'# DEPTHDEF = -DTHIRTYTWOBIT'@ \ + -e s@'# DEPTHDEF = -DEIGHTBIT'@'DEPTHDEF = -DEIGHTBIT'@ \ + -e s@'ComplexProgramTarget(rasmol)'@'ComplexProgramTarget(rasmol-8)'@ \ + Imakefile.temp > Imakefile + +xmkmf -a + +make clean && make + +# Restore Imakefile to original state so that rerunning this script does +# the right thing. +mv Imakefile.temp Imakefile +xmkmf -a +make clean && make rasmol.man + +exit 0 |