head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2001.09.06.21.25.13;	author tobez;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Make biology/rasmol work at all color depths.

PR:		30406
Submitted by:	Glenn Johnson <gjohnson@@srrc.ars.usda.gov>
@
text
@#!/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
@
