avl stable port information

Package: avl
Version: 3.26
Revision: 1
Architecture: powerpc
License: GPL
Depends: x11-shlibs, x11
BuildDepends: g77, x11-dev
Source: http://web.mit.edu/drela/Public/web/avl/avl%v.tar.gz
Source-MD5: a204ed6ce76c1b9bb5e58486a182774f
SourceDirectory: Avl
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
CompileScript: <<
#!/bin/sh -ev
cd plotlib
make
cd ../eispack
make
cd ../bin
make avl
<<
InstallScript: <<
#!/bin/sh -ev
mkdir %i/bin
cd bin
install avl %i/bin/
cd ../runs
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 single 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-3.22-1/Avl/bin/Makefile avl-3.22-1mod/Avl/bin/Makefile
--- Avl/bin/Makefile 2005-12-02 20:38:33.000000000 -0500
+++ Avl/bin/Makefile 2005-12-02 20:34:51.000000000 -0500
@@ -2,7 +2,7 @@
# Makefile for AVL
#

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

SRC = ../src

@@ -22,9 +22,9 @@

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

@@ -59,16 +59,16 @@
#FFLAGS = -O3
##--------------------------
### Intel Fortran Compiler 8.x
-FC = ifort
-FFLAGS = -O
-PLTLIB = -L/usr/X11R6/lib -lX11
+#FC = ifort
+#FFLAGS = -O
+#PLTLIB = -L/usr/X11R6/lib -lX11
#FTNLIB = -Vaxlib /usr/lib/C-ctype.o /usr/lib/C_name.o /usr/lib/ctype-info.o
#FTNLIB = -Vaxlib -i_dynamic
#FTNLIB = -Vaxlib
##--------------------------
### double-precision option (also need double precision Eispack and libPlt)
-FFLAGS = -O -r8
-PLTOBJ = ../plotlib/libPltDP.a
+#FFLAGS = -O -r8
+#PLTOBJ = ../plotlib/libPltDP.a


all: $(PROGS)
diff -urN avl-3.22-1/Avl/eispack/Makefile avl-3.22-1mod/Avl/eispack/Makefile
--- Avl/eispack/Makefile 2005-07-11 11:43:03.000000000 -0400
+++ Avl/eispack/Makefile 2005-12-02 20:35:37.000000000 -0500
@@ -1,7 +1,7 @@

-#FC = f77
-FC = ifort
+FC = g77
+#FC = ifort
-FLG = -O
+FLG = -O2
EISLIB = eispack.a
AR = ar r
RAN = ranlib



diff -urN avl-3.22-1/Avl/plotlib/Makefile avl-3.22-1mod/Avl/plotlib/Makefile
--- Avl/plotlib/Makefile 2005-12-02 20:38:33.000000000 -0500
+++ Avl/plotlib/Makefile 2005-12-02 20:32:10.000000000 -0500
@@ -30,7 +30,7 @@
#================================#

# Point to your install directory
-#INSTALLDIR= $(HOME)/lib
+INSTALLDIR= @PREFIX@/lib
#INSTALLDIR= /usr/local/lib
#INSTALLDIR= .

@@ -69,14 +69,14 @@

###================================================
### Default compilers and flags, install commands
-FC = f77
-CC = cc
+FC = g77
+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)
+FFLAGS = -O2 $(DP)
-CFLAGS = -O $(DEFINE)
+CFLAGS = -O2 -I/usr/X11R6/include/ $(DEFINE)
AR = ar r
RANLIB = ranlib
LINKLIB = -lX11



diff -urN avl-3.22-1/Avl/plotlib/config.make avl-3.22-1mod/Avl/plotlib/config.make
--- Avl/plotlib/config.make 2005-12-02 20:38:33.000000000 -0500
+++ Avl/plotlib/config.make 2005-12-02 20:30:35.000000000 -0500
@@ -8,8 +8,8 @@

### Use these to set library name
### (you might add DP to name to keep double precision version separate)
-#PLTLIB = libPlt.a
-PLTLIB = libPltDP.a
+PLTLIB = libPlt.a
+#PLTLIB = libPltDP.a


# Some fortrans need trailing underscores in C interface symbols (see Xwin.c)
@@ -24,17 +24,17 @@
### or the yaf77 or the old f77 shell script from f2c
### g77 the GNU Fortran compiler
#
-#FC = g77-3
+FC = g77
#FC = fort77
-#CC = gcc
+CC = gcc
# Uncomment DP to make double-precision version
# (note -r8 does not work in g77, use f2c instead)
#DP = -r8
#FFLAGS = -O2 $(DP)
-#CFLAGS = -O2 $(DEFINE)
-#AR = ar r
-#RANLIB = ranlib
-#LINKLIB = -L/usr/X11R6/lib -lX11
+CFLAGS = -O2 -I/usr/X11R6/include/ $(DEFINE)
+AR = ar r
+RANLIB = ranlib
+LINKLIB = -L/usr/X11R6/lib -lX11

###-------------------------------------------------------------------------
### Uncomment for Linux, using PGI f77
@@ -51,17 +51,17 @@

###-------------------------------------------------------------------------
### Uncomment for Linux, using Intel Fortran compiler
-FC = ifort
-CC = gcc
+#FC = ifort
+#CC = gcc

# Uncomment to make double-precision version
-DP = -r8
-FFLAGS = -O3 $(DP)
-CFLAGS = -O3 $(DEFINE)
-AR = ar r
-RANLIB = ranlib
+#DP = -r8
+#FFLAGS = -O3 $(DP)
+#CFLAGS = -O3 $(DEFINE)
+#AR = ar r
+#RANLIB = ranlib

-LINKLIB = -L/usr/X11R6/lib -lX11
+#LINKLIB = -L/usr/X11R6/lib -lX11


###-------------------------------------------------------------------------


diff -urN avl-3.22-1/Avl/src/aplotmd.f avl-3.22-1mod/Avl/src/aplotmd.f
--- Avl/src/aplotmd.f 2004-11-19 21:35:34.000000000 -0500
+++ Avl/src/aplotmd.f 2005-12-02 20:30:35.000000000 -0500
@@ -1100,14 +1100,14 @@
REAL*4 SECNDS, TREF, TSEC4
C
C---- get CPU time in microseconds
- CALL CLOCKX(MICSEC)
+C CALL CLOCKX(MICSEC)
C---- return seconds
- TSEC = MICSEC/1.0D6
+C TSEC = MICSEC/1.0D6
C
ccC---- alternative call for some Fortran systems
-cc TREF = 0.0
-cc TSEC4 = SECNDS(TREF)
-cc TSEC = TSEC4
+ TREF = 0.0
+ TSEC4 = SECNDS(TREF)
+ TSEC = TSEC4
C
RETURN
END

avl _unstable_ port information

Package: avl
Version: 3.26
Revision: 1003
Distribution: 10.4, 10.5
License: GPL
Depends: gcc43-shlibs, x11-shlibs, x11
BuildDepends: gcc43, x11-dev
Source: http://web.mit.edu/drela/Public/web/avl/avl%v.tar.gz
Source-MD5: a204ed6ce76c1b9bb5e58486a182774f
SourceDirectory: Avl
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | 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 _unstable_ port .patch

diff -urN avl-3.22-1/Avl/bin/Makefile avl-3.22-1mod/Avl/bin/Makefile
--- Avl/bin/Makefile 2005-12-02 20:38:33.000000000 -0500
+++ Avl/bin/Makefile 2005-12-02 20:34:51.000000000 -0500
@@ -2,7 +2,7 @@
# Makefile for AVL
#

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

SRC = ../src

@@ -22,9 +22,9 @@

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

@@ -59,16 +59,16 @@
#FFLAGS = -O3
##--------------------------
### Intel Fortran Compiler 8.x
-FC = ifort
+#FC = ifort
FFLAGS = -O
-PLTLIB = -L/usr/X11R6/lib -lX11
+#PLTLIB = -L/usr/X11R6/lib -lX11
#FTNLIB = -Vaxlib /usr/lib/C-ctype.o /usr/lib/C_name.o /usr/lib/ctype-info.o
#FTNLIB = -Vaxlib -i_dynamic
#FTNLIB = -Vaxlib
##--------------------------
### double-precision option (also need double precision Eispack and libPlt)
-FFLAGS = -O -r8
-PLTOBJ = ../plotlib/libPltDP.a
+FFLAGS = -O3 -fdefault-real-8
+PLTOBJ = ../plotlib/libPltDP.a


all: $(PROGS)
diff -urN avl-3.22-1/Avl/eispack/Makefile avl-3.22-1mod/Avl/eispack/Makefile
--- Avl/eispack/Makefile 2005-07-11 11:43:03.000000000 -0400
+++ Avl/eispack/Makefile 2005-12-02 20:35:37.000000000 -0500
@@ -1,7 +1,7 @@

-#FC = f77
-FC = ifort
+FC = gfortran
+#FC = ifort
-FLG = -O
+FLG = -O3 -fdefault-real-8
EISLIB = eispack.a
AR = ar r
RAN = ranlib



diff -urN avl-3.22-1/Avl/plotlib/Makefile avl-3.22-1mod/Avl/plotlib/Makefile
--- Avl/plotlib/Makefile 2005-12-02 20:38:33.000000000 -0500
+++ Avl/plotlib/Makefile 2005-12-02 20:32:10.000000000 -0500
@@ -30,13 +30,13 @@
#================================#

# Point to your install directory
-#INSTALLDIR= $(HOME)/lib
+INSTALLDIR= @PREFIX@/lib
#INSTALLDIR= /usr/local/lib
#INSTALLDIR= .

# Use these to set default library name (overridden in config.make file)
-PLTLIB = libPlt.a
+#PLTLIB = libPlt.a
-#PLTLIB = libPltDP.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
@@ -64,19 +64,19 @@
### HPUX f77
### Absoft f77 on Linux
###
-#OBJMISC = util-ops.o
+OBJMISC = util-ops.o


###================================================
### 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
+DP = -fdefault-real-8
-FFLAGS = -O $(DP)
+FFLAGS = -O3 $(DP)
-CFLAGS = -O $(DEFINE)
+CFLAGS = -O2 -I/usr/X11R6/include/ $(DEFINE)
AR = ar r
RANLIB = ranlib
LINKLIB = -lX11



diff -urN avl-3.22-1/Avl/plotlib/config.make.DP avl-3.22-1mod/Avl/plotlib/config.make.DP
--- Avl/plotlib/config.make.DP 2005-12-02 20:38:33.000000000 -0500
+++ Avl/plotlib/config.make.DP 2005-12-02 20:30:35.000000000 -0500
@@ -24,17 +24,17 @@
### or the yaf77 or the old f77 shell script from f2c
### g77 the GNU Fortran compiler
#
-#FC = g77-3
+FC = gfortran
#FC = fort77
-#CC = gcc
+CC = gcc
# Uncomment DP to make double-precision version
# (note -r8 does not work in g77, use f2c instead)
-#DP = -r8
+DP = -fdefault-real-8
-#FFLAGS = -O2 $(DP)
-#CFLAGS = -O2 $(DEFINE)
-#AR = ar r
-#RANLIB = ranlib
-#LINKLIB = -L/usr/X11R6/lib -lX11
+FFLAGS = -O3 $(DP)
+CFLAGS = -O2 -I/usr/X11R6/include/ $(DEFINE)
+AR = ar r
+RANLIB = ranlib
+LINKLIB = -L/usr/X11R6/lib -lX11

###-------------------------------------------------------------------------
### Uncomment for Linux, using PGI f77
@@ -51,17 +51,17 @@

###-------------------------------------------------------------------------
### Uncomment for Linux, using Intel Fortran compiler
-FC = ifort
-CC = gcc
+#FC = ifort
+#CC = gcc

# Uncomment to make double-precision version
-DP = -r8
-FFLAGS = -O3 $(DP)
-CFLAGS = -O3 $(DEFINE)
-AR = ar r
-RANLIB = ranlib
+#DP = -r8
+#FFLAGS = -O3 $(DP)
+#CFLAGS = -O3 $(DEFINE)
+#AR = ar r
+#RANLIB = ranlib

-LINKLIB = -L/usr/X11R6/lib -lX11
+#LINKLIB = -L/usr/X11R6/lib -lX11


###-------------------------------------------------------------------------


diff -urN avl-3.22-1/Avl/src/aplotmd.f avl-3.22-1mod/Avl/src/aplotmd.f
--- Avl/src/aplotmd.f 2004-11-19 21:35:34.000000000 -0500
+++ Avl/src/aplotmd.f 2005-12-02 20:30:35.000000000 -0500
@@ -1100,14 +1100,14 @@
REAL*4 SECNDS, TREF, TSEC4
C
C---- get CPU time in microseconds
- CALL CLOCKX(MICSEC)
+C CALL CLOCKX(MICSEC)
C---- return seconds
- TSEC = MICSEC/1.0D6
+C TSEC = MICSEC/1.0D6
C
ccC---- alternative call for some Fortran systems
-cc TREF = 0.0
-cc TSEC4 = SECNDS(TREF)
-cc TSEC = TSEC4
+ TREF = 0.0
+ TSEC4 = SECNDS(TREF)
+ TSEC = TSEC4
C
RETURN
END