mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 05:10:29 -04:00
* Unbreak build of FORTRAN parts.
PR: 40928 Submitted by: Amar Takhar <verm@drunkmonk.net> * Fix build on -CURRENT.
This commit is contained in:
parent
21cb6ca48e
commit
b0c55b07ca
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63460
5 changed files with 95 additions and 75 deletions
|
@ -14,8 +14,6 @@ DISTFILES= femlab-2d-v${PORTVERSION}.tar.gz
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
|
|
||||||
BROKEN= "Does not build"
|
|
||||||
|
|
||||||
BUILD_DEPENDS= ${X11BASE}/lib/libsx.a:${PORTSDIR}/x11/libsx
|
BUILD_DEPENDS= ${X11BASE}/lib/libsx.a:${PORTSDIR}/x11/libsx
|
||||||
|
|
||||||
USE_X_PREFIX= yes
|
USE_X_PREFIX= yes
|
||||||
|
|
|
@ -1,74 +1,57 @@
|
||||||
*** source/graph.c.orig Thu Sep 14 08:42:13 1995
|
|
||||||
--- source/graph.c Sat Mar 7 00:14:42 1998
|
$FreeBSD$
|
||||||
***************
|
|
||||||
*** 608,614 ****
|
--- source/graph.c.orig Wed Jul 24 00:01:06 2002
|
||||||
void getDrawingScale()
|
+++ source/graph.c Wed Jul 24 00:01:07 2002
|
||||||
{
|
@@ -608,7 +608,7 @@
|
||||||
float xoff, yoff;
|
void getDrawingScale()
|
||||||
! float scl;
|
{
|
||||||
int width, height;
|
float xoff, yoff;
|
||||||
int ww;
|
- float scl;
|
||||||
int nx, ny, id;
|
+ float iscl; /* inverse scale */
|
||||||
--- 611,617 ----
|
int width, height;
|
||||||
void getDrawingScale()
|
int ww;
|
||||||
{
|
int nx, ny, id;
|
||||||
float xoff, yoff;
|
@@ -630,25 +630,27 @@
|
||||||
! float iscl; /* inverse scale */
|
width = width / nx;
|
||||||
int width, height;
|
height = height / ny;
|
||||||
int ww;
|
|
||||||
int nx, ny, id;
|
- if(state > HAVE_NOTHING){
|
||||||
***************
|
- scl = 1./max(xmax-xmin,ymax-ymin);
|
||||||
*** 630,654 ****
|
- xoff = -scl*(xmin+.5*(xmax-xmin)-.5/scl);
|
||||||
width = width / nx;
|
- yoff = -scl*(ymin+.5*(ymax-ymin)-.5/scl);
|
||||||
height = height / ny;
|
-
|
||||||
|
- xoff = - xmin*scl*.85;
|
||||||
! if(state > HAVE_NOTHING){
|
- yoff = - ymin*scl*.85;
|
||||||
! scl = 1./max(xmax-xmin,ymax-ymin);
|
-
|
||||||
! xoff = -scl*(xmin+.5*(xmax-xmin)-.5/scl);
|
- ww = min(width, height);
|
||||||
! yoff = -scl*(ymin+.5*(ymax-ymin)-.5/scl);
|
- Xscl = (int) ((float)ww * 0.85 * scl);
|
||||||
!
|
- Xxoff = (int) ww * xoff ;
|
||||||
! xoff = - xmin*scl*.85;
|
- Xyoff = (int) ww * yoff;
|
||||||
! yoff = - ymin*scl*.85;
|
- Xxoff += (int) (width - ( Xscl*xmax +Xxoff))/2 + (id+nx-1)%nx *width;
|
||||||
!
|
- Xyoff += (int) (height - ( Xscl*ymax +Xyoff))/2 + (int)(id/(nx+.5)) *height;
|
||||||
! ww = min(width, height);
|
- }
|
||||||
! Xscl = (int) ((float)ww * 0.85 * scl);
|
+ iscl = max(xmax-xmin,ymax-ymin);
|
||||||
! Xxoff = (int) ww * xoff ;
|
+ if (iscl != 0.0) {
|
||||||
! Xyoff = (int) ww * yoff;
|
+ if(state > HAVE_NOTHING) {
|
||||||
! Xxoff += (int) (width - ( Xscl*xmax +Xxoff))/2 + (id+nx-1)%nx *width;
|
+/* These are recalculated ??
|
||||||
! Xyoff += (int) (height - ( Xscl*ymax +Xyoff))/2 + (int)(id/(nx+.5)) *height;
|
+ xoff = .5-(xmin+.5*(xmax-xmin))/iscl;
|
||||||
! }
|
+ yoff = .5-(ymin+.5*(ymax-ymin))/iscl;
|
||||||
|
+*/
|
||||||
SetDrawArea(drawWindow);
|
+ xoff = - xmin*.85/iscl;
|
||||||
if(device == PS)
|
+ yoff = - ymin*.85/iscl;
|
||||||
psGetScale();
|
+ ww = min(width, height);
|
||||||
}
|
+ Xscl = (int) ((float)ww * 0.85 / iscl);
|
||||||
|
+ Xxoff = (int) ww * xoff ;
|
||||||
void getBoundaryScale(Widget w, void *data)
|
+ Xyoff = (int) ww * yoff;
|
||||||
--- 633,659 ----
|
+ Xxoff += (int) (width - ( Xscl*xmax +Xxoff))/2 + (id+nx-1)%nx *width;
|
||||||
width = width / nx;
|
+ Xyoff += (int) (height - ( Xscl*ymax +Xyoff))/2 + (int)(id/(nx+.5)) *height;
|
||||||
height = height / ny;
|
|
||||||
|
|
||||||
! iscl = max(xmax-xmin,ymax-ymin);
|
|
||||||
! if (iscl != 0.0) {
|
|
||||||
! if(state > HAVE_NOTHING) {
|
|
||||||
! /* These are recalculated ??
|
|
||||||
! xoff = .5-(xmin+.5*(xmax-xmin))/iscl;
|
|
||||||
! yoff = .5-(ymin+.5*(ymax-ymin))/iscl;
|
|
||||||
! */
|
|
||||||
! xoff = - xmin*.85/iscl;
|
|
||||||
! yoff = - ymin*.85/iscl;
|
|
||||||
! ww = min(width, height);
|
|
||||||
! Xscl = (int) ((float)ww * 0.85 / iscl);
|
|
||||||
! Xxoff = (int) ww * xoff ;
|
|
||||||
! Xyoff = (int) ww * yoff;
|
|
||||||
! Xxoff += (int) (width - ( Xscl*xmax +Xxoff))/2 + (id+nx-1)%nx *width;
|
|
||||||
! Xyoff += (int) (height - ( Xscl*ymax +Xyoff))/2 + (int)(id/(nx+.5)) *height;
|
|
||||||
! }
|
|
||||||
|
|
||||||
SetDrawArea(drawWindow);
|
|
||||||
if(device == PS)
|
|
||||||
psGetScale();
|
|
||||||
+ }
|
+ }
|
||||||
}
|
|
||||||
|
SetDrawArea(drawWindow);
|
||||||
void getBoundaryScale(Widget w, void *data)
|
if(device == PS)
|
||||||
|
psGetScale();
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
void getBoundaryScale(Widget w, void *data)
|
||||||
|
|
11
math/femlab/files/patch-fsource_makepoisson
Normal file
11
math/femlab/files/patch-fsource_makepoisson
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- fsource/makepoisson.orig Thu Sep 14 09:47:27 1995
|
||||||
|
+++ fsource/makepoisson Wed Jul 24 00:06:17 2002
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-FFLAGS= -O
|
||||||
|
+FFLAGS= -O -fno-globals
|
||||||
|
|
||||||
|
FFILES= dwm1.f startpo.f preproc.f rhslhs.f poisson.f output.f
|
||||||
|
|
14
math/femlab/files/patch-fsource_y.tab.c
Normal file
14
math/femlab/files/patch-fsource_y.tab.c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- fsource/y.tab.c.orig Wed Jul 24 00:14:46 2002
|
||||||
|
+++ fsource/y.tab.c Wed Jul 24 00:14:56 2002
|
||||||
|
@@ -38,7 +38,7 @@
|
||||||
|
#include <memory.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#include <values.h>
|
||||||
|
+#include <float.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
14
math/femlab/files/patch-source_y.tab.c
Normal file
14
math/femlab/files/patch-source_y.tab.c
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- source/y.tab.c.orig Wed Jul 24 00:01:34 2002
|
||||||
|
+++ source/y.tab.c Wed Jul 24 00:01:44 2002
|
||||||
|
@@ -38,7 +38,7 @@
|
||||||
|
#include <memory.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#include <values.h>
|
||||||
|
+#include <float.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Add table
Reference in a new issue