debian/0000755000000000000000000000000012003605514007162 5ustar debian/source/0000755000000000000000000000000012003605470010463 5ustar debian/source/format0000644000000000000000000000001412003605470011671 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012003605470010612 5ustar debian/patches/xfoil-build.diff0000644000000000000000000000332112003605470013661 0ustar Index: xfoil/bin/Makefile =================================================================== --- xfoil.orig/bin/Makefile 2009-12-31 20:08:50.142521308 +0100 +++ xfoil/bin/Makefile 2010-01-03 01:32:11.269443751 +0100 @@ -99,7 +99,7 @@ #FFLAGS = -g -O0 -C ##-------------------------- ### Intel Fortran Compiler -FC = ifort +FC = gfortran FFLAGS = -O FFLOPT = -O #FTNLIB = -Vaxlib /usr/lib/C-ctype.o /usr/lib/C_name.o /usr/lib/ctype-info.o @@ -108,12 +108,12 @@ ##-------------------------- ### Double precision option -FFLAGS = -O -r8 -CB -FFLOPT = -O -r8 -CB -PLTOBJ = ../plotlib/libPltDP.a +FFLAGS = -O2 -g +FFLOPT = -O2 -g +PLTOBJ = ../plotlib/libPlt.a -FFLAGS = -O -r8 -ftrapuv -fpe0 -FFLOPT = -O -r8 -ftrapuv -fpe0 +#FFLAGS = -O -r8 -ftrapuv -fpe0 +#FFLOPT = -O -r8 -ftrapuv -fpe0 all: $(PROGS) @@ -122,20 +122,20 @@ $(INSTALLCMD) $(PROGS) $(BINDIR) clean: - -/bin/rm $(PROGS) - -/bin/rm $(XFOILOBJ) $(XUTILOBJ) $(OSOBJ) $(PPLOTOBJ) $(PXPLOTOBJ) + -/bin/rm -f $(PROGS) + -/bin/rm -f $(XFOILOBJ) $(XUTILOBJ) $(OSOBJ) $(PPLOTOBJ) $(PXPLOTOBJ) # -/bin/rm *.o xfoil: $(XFOILOBJ) $(XUTILOBJ) $(OSOBJ) - $(FC) -o xfoil $(XFOILOBJ) $(XUTILOBJ) $(OSOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB) + $(FC) $(FFLAGS) -o xfoil $(XFOILOBJ) $(XUTILOBJ) $(OSOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB) pxplot: $(PXPLOTOBJ) $(XUTILOBJ) - $(FC) -o pxplot $(PXPLOTOBJ) $(XUTILOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB) + $(FC) $(FFLAGS) -o pxplot $(PXPLOTOBJ) $(XUTILOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB) pplot: $(PPLOTOBJ) $(XUTILOBJ) - $(FC) -o pplot $(PPLOTOBJ) $(XUTILOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB) + $(FC) $(FFLAGS) -o pplot $(PPLOTOBJ) $(XUTILOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB) xfoil.o: $(SRC)/xfoil.f $(SRC)/XFOIL.INC $(SRC)/XBL.INC debian/patches/series0000644000000000000000000000022212003605470012023 0ustar orrs-build.diff plotlib-build.diff xfoil-build.diff xfoil-fixes.diff default-osfile.diff osgen-fix.diff fix-write-after-end.diff pxplot-args.diff debian/patches/orrs-build.diff0000644000000000000000000000210412003605470013523 0ustar Index: xfoil/orrs/bin/Makefile =================================================================== --- xfoil.orig/orrs/bin/Makefile 2009-12-31 20:08:50.146682046 +0100 +++ xfoil/orrs/bin/Makefile 2010-01-03 01:30:08.871834091 +0100 @@ -4,17 +4,17 @@ #======================================== # Default compiler flags -FC = f77 -FLG = -O +FC = gfortran +FLG = -O2 -g PLTLIB = -lX11 FTNLIB = #======================================== # Uncomment for Intel Fortran Compiler -FC = ifort -FLG = -O -fpe0 -CB -PLTLIB = -L/usr/X11R6/lib -lX11 -FTNLIB = +#FC = ifort +#FLG = -O -fpe0 -CB +#PLTLIB = -L/usr/X11R6/lib -lX11 +#FTNLIB = # Additional IFC stuff needed on MIT's Athena system #FC = ifc @@ -26,10 +26,10 @@ OS: osgen osmap.o clean: - /bin/rm *.o osgen + /bin/rm -f *.o osgen osgen: osgen.o io.o spline.o getarg0.o - $(FC) -o osgen osgen.o io.o spline.o getarg0.o $(FTNLIB) + $(FC) $(FLG) -o osgen osgen.o io.o spline.o getarg0.o $(FTNLIB) osgen1: osgen1.o io.o spline.o getarg0.o $(FC) -o osgen1 osgen1.o io.o spline.o getarg0.o $(FTNLIB) fscorr: fscorr.o fs.o debian/patches/pxplot-args.diff0000644000000000000000000000040412003605470013722 0ustar --- a/src/pxplot.f +++ b/src/pxplot.f @@ -44,7 +44,7 @@ C C C---- Check for dump file on command line - CALL GETARG0(NARG,FNAME) + CALL GETARG0(1,FNAME) IF(FNAME.NE.' ') GO TO 40 C C======================================================= debian/patches/xfoil-fixes.diff0000644000000000000000000000163612003605470013707 0ustar Index: xfoil/src/xoper.f =================================================================== --- xfoil.orig/src/xoper.f 2009-12-31 00:30:13.200514895 +0100 +++ xfoil/src/xoper.f 2009-12-31 00:32:45.123836468 +0100 @@ -114,7 +114,7 @@ C---- don't try to read integers, since might get integer overflow DO I=1, NINPUT IF(ABS(RINPUT(I)) .GT. 2.1E9) THEN - IINPUT(I) = 2**31 + IINPUT(I) = HUGE(IINPUT) !2**31 ELSE IINPUT(I) = INT(RINPUT(I)) ENDIF Index: xfoil/src/pplot.f =================================================================== --- xfoil.orig/src/pplot.f 2009-12-31 00:32:56.983833399 +0100 +++ xfoil/src/pplot.f 2009-12-31 00:33:09.061211434 +0100 @@ -36,7 +36,7 @@ PROGRAM PPLOT INCLUDE 'PPLOT.INC' C - LOGICAL ERROR, LGETFN + LOGICAL ERROR, LGETFN, LERR REAL RINP(10) REAL CPOLO(NAX,IPTOT,NPX), VPOLO(NAX,2,NPX) C debian/patches/osgen-fix.diff0000644000000000000000000000161612003605470013347 0ustar Index: xfoil/orrs/src/io.f =================================================================== --- xfoil.orig/orrs/src/io.f 2010-01-12 21:10:17.845623158 +0100 +++ xfoil/orrs/src/io.f 2010-01-12 21:10:35.632296157 +0100 @@ -62,7 +62,7 @@ CALL READOS1(FNAME,IFORM, & N(IH),NMAX,ETA(1,IH),U(1,IH),S(1,IH), & NRP(IH),NWP(IH), - & RTL(1,IH),WSL(1,IH),HH, AR(1,1,IH),AI(1,1,IH), + & RTL(1,IH),WSL(1,IH),HH(IH), AR(1,1,IH),AI(1,1,IH), & NRX,NWX) C 1000 CONTINUE @@ -139,7 +139,7 @@ CALL WRITOS1(FNAME,IFORM, & N(IH),NMAX,ETA(1,IH),U(1,IH),S(1,IH), & NRP(IH),NWP(IH), - & RTL(1,IH),WSL(1,IH),HH, AR(1,1,IH),AI(1,1,IH), + & RTL(1,IH),WSL(1,IH),HH(IH), AR(1,1,IH),AI(1,1,IH), & NRX,NWX) C 1000 CONTINUE debian/patches/fix-write-after-end.diff0000644000000000000000000000102412003605470015222 0ustar --- a/src/xpol.f +++ b/src/xpol.f @@ -501,6 +501,7 @@ C C---- the polar dump file doesn't exist, so write new header 60 CONTINUE + BACKSPACE(LU) WRITE(LU) NAME, 'XFOIL ', VERSION WRITE(LU) MINF1, REINF1/1.0E6, ACRIT WRITE(LU) MATYP, RETYP @@ -929,7 +930,8 @@ 1000 FORMAT(A) GO TO 10 C - 90 RETURN + 90 BACKSPACE(LU) + RETURN END @@ -939,7 +941,8 @@ 10 READ(LU,END=90,ERR=90) DUMMY GO TO 10 C - 90 RETURN + 90 BACKSPACE(LU) + RETURN END debian/patches/default-osfile.diff0000644000000000000000000000123112003605470014344 0ustar Index: xfoil/osrc/getosfile.c =================================================================== --- xfoil.orig/osrc/getosfile.c 2009-12-31 01:55:41.176705284 +0100 +++ xfoil/osrc/getosfile.c 2009-12-31 02:02:45.633891739 +0100 @@ -13,6 +13,8 @@ #endif +#define DEFAULT_OSFILE "/usr/lib/xfoil/osmap.dat" + void GETOSFILE(osfile,len) char *osfile; @@ -28,11 +30,12 @@ printf("osfile: %s\n",osfile); */ if(bufp){ - strcpy(osfile,bufp); + strncpy(osfile,bufp, 128); l = strlen(bufp); } else { - l = 0; + strncpy(osfile,DEFAULT_OSFILE, 128); + l = strlen(DEFAULT_OSFILE); } *len = l; debian/patches/plotlib-build.diff0000644000000000000000000000303612003605470014210 0ustar Index: xfoil/plotlib/config.make =================================================================== --- xfoil.orig/plotlib/config.make 2010-01-12 21:30:49.944665337 +0100 +++ xfoil/plotlib/config.make 2010-01-12 21:32:24.981317722 +0100 @@ -51,14 +51,14 @@ ###------------------------------------------------------------------------- ### Uncomment for Linux, using Intel Fortran compiler 8.x -FC = ifort +FC = gfortran CC = gcc # Uncomment to make double-precision version #DP = -r8 -FFLAGS = -O3 $(DP) -CFLAGS = -O3 $(DEFINE) +FFLAGS = -O2 -g $(DP) +CFLAGS = -O2 -g $(DEFINE) AR = ar r RANLIB = ranlib Index: xfoil/plotlib/examples/Makefile =================================================================== --- xfoil.orig/plotlib/examples/Makefile 2010-01-12 21:30:49.924663547 +0100 +++ xfoil/plotlib/examples/Makefile 2010-01-12 21:32:24.981317722 +0100 @@ -52,9 +52,9 @@ test: $(PROGS) clean: - -/bin/rm *.o - -/bin/rm $(PROGS) - -/bin/rm plot*.ps + -/bin/rm -f *.o + -/bin/rm -f $(PROGS) + -/bin/rm -f plot*.ps Index: xfoil/plotlib/Makefile =================================================================== --- xfoil.orig/plotlib/Makefile 2010-01-12 21:32:37.334619734 +0100 +++ xfoil/plotlib/Makefile 2010-01-12 21:32:52.200536283 +0100 @@ -113,9 +113,9 @@ $(RANLIB) $(INSTALLDIR)/$(PLTLIB) clean: - -/bin/rm $(OBJ) $(OBJOLD) $(OBJ3D) $(OBJMISC) - -/bin/rm $(PLTLIB) - -/bin/rm plot*.ps + /bin/rm -f $(OBJ) $(OBJOLD) $(OBJ3D) $(OBJMISC) + /bin/rm -f $(PLTLIB) + /bin/rm -f plot*.ps (cd examples; make clean) debian/control0000644000000000000000000000220312003605470010563 0ustar Source: xfoil Section: science Priority: optional Maintainer: Євгеній Мещеряков Build-Depends: debhelper (>= 7.0.50~), gfortran, libx11-dev Standards-Version: 3.9.3 Homepage: http://web.mit.edu/drela/Public/web/xfoil/ Vcs-Git: git://git.debian.org/git/collab-maint/xfoil.git Vcs-Browser: http://git.debian.org/?p=collab-maint/xfoil.git Package: xfoil Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: program for the design and analysis of subsonic airfoils XFOIL is an interactive program for the design and analysis of subsonic isolated airfoils. It consists of a collection of menu-driven routines which perform various useful functions such as: - Viscous (or inviscid) analysis of an existing airfoil - Airfoil design and redesign by interactive specification of a surface speed distribution via screen cursor or mouse - Airfoil redesign by interactive specification of new geometric parameters - Blending of airfoils - Drag polar calculation with fixed or varying Reynolds and/or Mach numbers. - Plotting of geometry, pressure distributions, and polars debian/changelog0000644000000000000000000000230112003605470011031 0ustar xfoil (6.97.dfsg-5) unstable; urgency=low * Fix IO after end of file, thanks to Andrew Klaassen (closes: #682679). * Fix command line arguments handling in pxplot. * Standards-Version 3.9.3 — no changes required -- Євгеній Мещеряков Tue, 24 Jul 2012 21:56:26 +0200 xfoil (6.97.dfsg-4) unstable; urgency=low * Add build and install target to debian/rules -- Євгеній Мещеряков Tue, 19 Jan 2010 23:03:44 +0100 xfoil (6.97.dfsg-3) unstable; urgency=low * New patch: - osgen-fix.diff - fix bug in osgen that cacuses generation of incorrect osmap.dat file * Build and install osmap.dat * Silence clean in plotlib -- Євгеній Мещеряков Tue, 12 Jan 2010 21:33:19 +0100 xfoil (6.97.dfsg-2) unstable; urgency=low * Mention that plotlib is distributed under LGPL2+ in debian/copyright, thanks to Barry deFreese -- Євгеній Мещеряков Thu, 07 Jan 2010 21:39:57 +0100 xfoil (6.97.dfsg-1) unstable; urgency=low * Initial release. (Closes: #541351) -- Євгеній Мещеряков Sun, 03 Jan 2010 19:09:17 +0100 debian/xfoil.install0000644000000000000000000000010612003605470011671 0ustar orrs/osmap.dat usr/lib/xfoil/ bin/xfoil bin/pplot bin/pxplot usr/bin/ debian/rules0000755000000000000000000000104712003605470010245 0ustar #! /usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 clean binary binary-arch binary-indep build install: dh $@ override_dh_auto_build: $(MAKE) -C orrs/bin -f Makefile osgen cd orrs && bin/osgen osmaps_ns.lst $(MAKE) -C plotlib libPlt.a $(MAKE) -C bin override_dh_auto_clean: $(MAKE) -C orrs/bin clean rm -f orrs/osmap.dat $(MAKE) -C plotlib clean $(MAKE) -C bin clean override_dh_installchangelogs: dh_installchangelogs version_notes.txt .PHONY: clean build binary binary-arch binary-indep build install debian/copyright0000644000000000000000000000514012003605470011116 0ustar This work was packaged for Debian by: Eugeniy Meshcheryakov on Sun, 03 Jan 2010 02:06:15 +0100 It was downloaded from: http://web.mit.edu/drela/Public/web/xfoil/ The following files were removed from the source tarball: orrs/osmap{,DP}.dat - generated files, currently cannot be rebuilt from source Upstream Authors: Harold Youngren Mark Drela Copyright: Copyright © 1996, 2000 Harold Youngren Copyright © 1996, 2000 Mark Drela License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. Files under plotlib/ are distributed under LGPL 2 or later: This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2'. The Debian packaging is: Copyright © 2010 Eugeniy Meshcheryakov you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. debian/docs0000644000000000000000000000004212003605470010032 0ustar README sessions.txt xfoil_doc.txt debian/compat0000644000000000000000000000000212003605470010361 0ustar 7