head	1.2;
access;
symbols
	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
	RELEASE_4_3_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2011.01.31.11.45.44;	author miwi;	state dead;
branches;
next	1.1;

1.1
date	2001.01.24.17.58.44;	author ijliao;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Update to 5.1.09

PR:		154359
Submitted by:	Ruslan Mahmatkhanov <cvs-src@@yandex.ru>
Feature safe:	yes
@
text
@#!/bin/sh

# This builds the molecular viewer for tinker files.  It is a modified
# version of rasmol.  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 tview-8, tview-16, and tview-32 respectively.

cd ${WRKSRC}/../rasmol

cp Imakefile Imakefile.orig

sed s@@/user/ponder@@${PREFIX}/share@@ Imakefile > Imakefile.temp

sed s@@'ComplexProgramTarget(rasmol)'@@'ComplexProgramTarget(tview-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(tview-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(tview-8)'@@ \
       Imakefile.temp > Imakefile

xmkmf -a

make clean && make

# Restore Imakefile to original state so that rerunning this script does
# the right thing.
rm Imakefile.temp
mv Imakefile.orig Imakefile
xmkmf -a
make clean

exit 0
@


1.1
log
@update from 3.7 to 3.8

PR:		24371
Submitted by:	MAINTAINER
@
text
@@

