avl stable port information

Package: avl
Version: 3.27
Revision: 1
License: GPL
Depends: gcc44-shlibs, x11-shlibs, x11
BuildDepends: fink (>= 0.24.12), gcc44, x11-dev
Source: http://web.mit.edu/drela/Public/web/avl/avl%v.tar.gz
Source-MD5: c2ea3256d3d4351d8d8a3e76cf8a8a37
SourceDirectory: Avl
PatchFile: %n.patch
PatchFile-MD5: ed0258b5f846a362ebf6c3fe19d5a520
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: <<
#!/bin/sh -ev
cd plotlib
mv config.make config.make.orig
mv config.make.DP config.make
make
cd ../eispack
make
cd ../bin
make avl
<<
InstallScript: <<
#!/bin/sh -ev
mkdir %i/bin
cd bin
install avl %i/bin/
cd ../runs
# remove binary data from supposed text files
perl -pi -e's/\x00+//' test.run vanilla.run
mkdir -p %i/share/doc/avl/runs
install * %i/share/doc/avl/runs/
<<
DocFiles: avl_doc.txt version_notes.txt session1.txt session2.txt README
Description: Aerodynamic analysis
DescDetail: <<
AVL uses an extended vortex-lattice model to perform aerodynamic analysis,
trim calculation, dynamic stability analysis, aircraft configuration
development, etc.

This package compiles avl with double precision arithmetic.
<<
DescPort: <<
Had to use the alternate code in aplotmd.f, as the code using CLOCKX
gave undefined symbols error during the compile. This must be a known
issue, as there was an alternate, commented out code block to use.
<<
Homepage: http://web.mit.edu/drela/Public/web/avl/
Maintainer: Kevin Horton




avl stable port .patch

diff -urN Avl_orig/bin/Makefile Avl/bin/Makefile
--- Avl_orig/bin/Makefile 2009-07-17 09:36:17.000000000 -0400
+++ Avl/bin/Makefile 2009-07-17 09:41:37.000000000 -0400
@@ -2,7 +2,7 @@
# Makefile for AVL
#

-BINDIR = .
+BINDIR = @PREFIX@/bin

SRC = ../src

@@ -23,9 +23,9 @@

###================================================
### Default compilers and flags
-FC = f77
+FC = gfortran
FFLAGS = -O
-PLTLIB = -lX11
+PLTLIB = -L/usr/X11R6/lib -lX11
FTNLIB =

#Subroutine SECOND source file
@@ -64,14 +64,14 @@
#FFLAGS = -O3
##--------------------------
### Intel Fortran Compiler 8.x
-FC = ifort
-FFLAGS = -O
-PLTLIB = -L/usr/X11R6/lib -lX11
-SECOND = second_ifc.f
+#FC = ifort
+#FFLAGS = -O
+#PLTLIB = -L/usr/X11R6/lib -lX11
+#SECOND = second_ifc.f
#FTNLIB = -Vaxlib
##--------------------------
### double-precision option (also need double precision Eispack and libPlt)
-FFLAGS = -O -r8
+FFLAGS = -O3 -fdefault-real-8
PLTOBJ = ../plotlib/libPltDP.a


diff -urN Avl_orig/eispack/Makefile Avl/eispack/Makefile
--- Avl_orig/eispack/Makefile 2009-07-17 09:36:17.000000000 -0400
+++ Avl/eispack/Makefile 2009-07-17 09:42:31.000000000 -0400
@@ -1,7 +1,7 @@

#FC = f77
-FC = ifort
-FLG = -O
+FC = gfortran
+FLG = -O3 -fdefault-real-8
EISLIB = eispack.a
AR = ar r
RAN = ranlib
diff -urN Avl_orig/plotlib/Makefile Avl/plotlib/Makefile
--- Avl_orig/plotlib/Makefile 2009-07-17 09:36:17.000000000 -0400
+++ Avl/plotlib/Makefile 2009-07-17 09:45:25.000000000 -0400
@@ -32,11 +32,11 @@
# Point to your install directory
#INSTALLDIR= $(HOME)/lib
#INSTALLDIR= /usr/local/lib
-#INSTALLDIR= .
+INSTALLDIR= @PREFIX@/lib

# Use these to set default library name (overridden in config.make file)
-PLTLIB = libPlt.a
-#PLTLIB = libPltDP.a
+#PLTLIB = libPlt.a
+PLTLIB = libPltDP.a


###========================================================
@@ -50,7 +50,7 @@
###
###--------------------------------------------------------
### Uncomment to add the old plot compatibility routines
-OBJOLD = plt_old.o
+#OBJOLD = plt_old.o
###
###--------------------------------------------------------
### Uncomment to add the primitive 3D-view routines
@@ -69,14 +69,14 @@

###================================================
### Default compilers and flags, install commands
-FC = f77
-CC = cc
+FC = gfortran
+CC = gcc
# Some fortrans need trailing underscores in C interface symbols (see Xwin.c)
DEFINE = -DUNDERSCORE
# Uncomment DP to make double-precision version
-#DP = -r8
-FFLAGS = -O $(DP)
-CFLAGS = -O $(DEFINE)
+DP = -fdefault-real-8
+FFLAGS = -O3 $(DP)
+CFLAGS = -O2 -I/usr/X11R6/include/ $(DEFINE)
AR = ar r
RANLIB = ranlib
LINKLIB = -lX11
diff -urN Avl_orig/plotlib/config.make.DP Avl/plotlib/config.make.DP
--- Avl_orig/plotlib/config.make.DP 2009-07-17 09:36:17.000000000 -0400
+++ Avl/plotlib/config.make.DP 2009-07-17 11:10:46.000000000 -0400
@@ -127,3 +127,16 @@
#RANLIB = ar qs
#LINKLIB = -lX11

+###-------------------------------------------------------------------------
+### Uncomment for OS X using Fink packaging system
+#
+FC = gfortran
+CC = gcc
+# Uncomment DP to make double-precision version
+DP = -fdefault-real-8
+FFLAGS = -O3 $(DP)
+CFLAGS = -O2 -I/usr/X11R6/include/ $(DEFINE)
+AR = ar r
+RANLIB = ranlib
+LINKLIB = -L/usr/X11R6/lib -lX11
+

avl _unstable_ port .patch