diff options
author | miwi <miwi@FreeBSD.org> | 2007-07-06 18:20:56 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-07-06 18:20:56 +0800 |
commit | 4fb5108c7ce76e10f9f42927b2d7527475310564 (patch) | |
tree | c015f8a90e9f78a3b8cd050d98d7d6acb2ed7cb4 /science | |
parent | 280a7e2e09225bd7004ac0d606340c4a0d05b800 (diff) | |
download | freebsd-ports-gnome-4fb5108c7ce76e10f9f42927b2d7527475310564.tar.gz freebsd-ports-gnome-4fb5108c7ce76e10f9f42927b2d7527475310564.tar.zst freebsd-ports-gnome-4fb5108c7ce76e10f9f42927b2d7527475310564.zip |
- Fix build with gcc 4.2
- USE gfortran
PR: 114307
Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu> (maintainer)
Diffstat (limited to 'science')
-rw-r--r-- | science/vis5d+/Makefile | 12 | ||||
-rw-r--r-- | science/vis5d+/files/patch-util::kludge.f | 15 |
2 files changed, 24 insertions, 3 deletions
diff --git a/science/vis5d+/Makefile b/science/vis5d+/Makefile index 81e14fae1c74..47aa02dde4a6 100644 --- a/science/vis5d+/Makefile +++ b/science/vis5d+/Makefile @@ -14,7 +14,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= vis5d MAINTAINER= stephen@math.missouri.edu -COMMENT= An OpenGL-based volumetric visualization program for scientific datasets +COMMENT= OpenGL-based volumetric visualization program for scientific datasets BUILD_DEPENDS= ${LOCALBASE}/lib/libmix.a:${PORTSDIR}/graphics/qslim \ convert:${PORTSDIR}/graphics/ImageMagick @@ -22,15 +22,21 @@ LIB_DEPENDS= netcdf.4:${PORTSDIR}/science/netcdf \ gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick +WANT_FORTRAN= yes #dummy but future use +BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42 +FC= gfortran42 +F77= gfortran42 +MAKE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}" + USE_AUTOTOOLS= libtool:15 USE_GL= yes USE_GNOME= gnometarget gtk12 USE_ICONV= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" F77="${F77}" FFLAGS="-fno-range-check" CONFIGURE_ARGS= --enable-gtk --enable-threads --with-netcdf \ --with-mixkit=${LOCALBASE}/lib/libmix.a --with-x -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS} diff --git a/science/vis5d+/files/patch-util::kludge.f b/science/vis5d+/files/patch-util::kludge.f new file mode 100644 index 000000000000..ec9624030ab4 --- /dev/null +++ b/science/vis5d+/files/patch-util::kludge.f @@ -0,0 +1,15 @@ +--- util/kludge.f.orig 2007-07-04 17:50:16.000000000 -0500 ++++ util/kludge.f 2007-07-04 17:51:45.000000000 -0500 +@@ -53,7 +53,11 @@ + INTEGER MTBL(12) + DATA MTBL/0,31,59,90,120,151,181,212,243,273,304,334/ + C +- CALL IDATE(MON,IDAY,IYEAR) ++ INTEGER IAR(3) ++ CALL IDATE(IAR) ++ MON=IAR(1) ++ IDAY=IAR(2) ++ IYEAR=IAR(3) + IF (IDAY.LT.1.OR.IDAY.GT.31) RETURN + IF (MON.LT.1.OR.MON.GT.12) RETURN + IDDD=IDAY+MTBL(MON) |