the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: rasmol-8bit
Version: 2.7.5
Revision: 2
BuildDepends: x11-dev, xmkmf (>= 1.0.2-3), fink (>= 0.24.12)
Depends: x11, wget
Conflicts: rasmol
Replaces: rasmol
License: Restrictive
Source: http://www.bernstein-plus-sons.com/software/RasMol_%v.tar.gz
Source-MD5: 2f43c606775248398dc71ce559b35245
SourceDirectory: rasmol-%v-23Jul09
PatchFile: %n.patch
PatchFile-MD5: 0b4d9de5d57fb1095aac1030488db221
PatchScript: <<
sed 's|@PREFIX@|%p|g' < %{PatchFile} > rasmol.patch
patch -p1
CompileScript: <<
#!/bin/sh -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
cd src
xmkmf
perl -pi.bak -e 's|/usr/bin/cc|gcc|g' Makefile
make rasmol
<<
InstallScript: <<
#!/bin/sh -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
mkdir -p %i/share/man/man1
gunzip --force doc/*.gz
cp doc/rasmol.1 %i/share/man/man1
mkdir -p %i/bin
cp src/rasmol %i/bin
mkdir -p %i/lib/rasmol
cp doc/rasmol.hlp %i/lib/rasmol
cp -r data %i/lib/rasmol
<<
DocFiles:README.html INSTALL NOTICE doc/manualA4.pdf doc/manualUS.pdf doc/refcardA4.pdf doc/refcardUS.pdf
Description: Molecular graphics visualisation tool
DescDetail: <<
RasMol is a molecular graphics program intended for the
visualisation of proteins, nucleic acids and small
molecules. The program is aimed at display, teaching and
generation of publication quality images.
<<
DescUsage: <<
Sample input files are available in the fink lib/rasmol/data
directory. The manual is in the fink share/doc/rasmol directory.
<<
Maintainer: None
Homepage: http://www.OpenRasMol.org/
diff -uNr rasmol-2.7.5-23Jul09/src/Imakefile rasmol-2.7.5-23Jul09.patched/src/Imakefile
--- rasmol-2.7.5-23Jul09/src/Imakefile 2009-07-20 10:08:43.000000000 -0400
+++ rasmol-2.7.5-23Jul09.patched/src/Imakefile 2009-08-10 09:27:00.000000000 -0400
@@ -101,6 +101,7 @@
# USER DEFINITIONS
#
# At this point, you may define the cpp macro PIXELDEPTH as 8, 16 or 32
+#define PIXELDEPTH 8
#ifdef PIXELDEPTH
#if PIXELDEPTH==8
@@ -276,7 +277,7 @@
# RasMol's on-line help direcory
# e.g. /usr/local/lib/rasmol/rasmol.hlp
-RASMOLDIR = $(USRLIBDIR)/rasmol/
+RASMOLDIR = @PREFIX@/lib/rasmol/
#ifndef USE_XFORMSLIB
diff -uNr rasmol-2.7.5-23Jul09/src/rasmol.h rasmol-2.7.5-23Jul09.debian/src/rasmol.h
--- rasmol-2.7.5-23Jul09/src/rasmol.h 2009-07-20 10:08:43.000000000 -0400
+++ rasmol-2.7.5-23Jul09.debian/src/rasmol.h 2009-08-11 12:27:48.000000000 -0400
@@ -78,6 +78,7 @@
/* rasmol.h
*/
+#include
/*===========================*/
/* User Definable Options! */
@@ -202,7 +203,7 @@
typedef double Real;
#ifndef APPLEMAC
-typedef unsigned char Byte;
+typedef uint8_t Byte;
#endif
#ifdef __STDC__
@@ -211,21 +212,18 @@
typedef char Char;
#endif
-#ifdef _LONGLONG
-typedef unsigned int Card;
-typedef int Long;
-#else
-typedef unsigned long Card;
+typedef uint32_t Card;
+/* Long has to be defined as long, instead of int32_t because of
+ multiple printf and scanf calls using %ld in the format. */
typedef long Long;
-#endif
#ifdef EIGHTBIT
-typedef unsigned char Pixel;
+typedef uint8_t Pixel;
#else
#ifdef THIRTYTWOBIT
-typedef Long Pixel;
+typedef int32_t Pixel;
#else
-typedef short Pixel;
+typedef int16_t Pixel;
#endif
#endif
@@ -249,7 +247,6 @@
#define ToUpper(x) (islower((x))?toupper((x)):(x))
#endif
-
#if !defined(IBMPC) || defined(_WIN32)
#ifdef APPLEMAC
#define _fmalloc NewPtrSys