mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
* Migrate to gfortran.
* Bump port revision. * Approved by: portmgr(kris)
This commit is contained in:
parent
d4259fe6e4
commit
f7661791b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182489
2 changed files with 25 additions and 4 deletions
|
@ -15,6 +15,7 @@ MAINTAINER= laszlof@FreeBSD.org
|
||||||
COMMENT= A programming language for numerical analysis
|
COMMENT= A programming language for numerical analysis
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
|
USE_AUTOTOOLS= autoconf:259
|
||||||
|
|
||||||
ALGAE_VERSION= ${PORTVERSION}
|
ALGAE_VERSION= ${PORTVERSION}
|
||||||
PLIST_SUB= ALGAE_VERSION=${ALGAE_VERSION}
|
PLIST_SUB= ALGAE_VERSION=${ALGAE_VERSION}
|
||||||
|
@ -22,20 +23,29 @@ PLIST_SUB= ALGAE_VERSION=${ALGAE_VERSION}
|
||||||
MAN1= algae.1
|
MAN1= algae.1
|
||||||
INFO= algae
|
INFO= algae
|
||||||
|
|
||||||
|
WANT_FORTRAN= yes #dummy but future use
|
||||||
|
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
|
||||||
|
FC= gfortran42
|
||||||
|
F77= gfortran42
|
||||||
|
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}" LDFLAGS="${LDFLAGS} -L`${CAT} ${WRKSRC}/LIBDIR`/../../.. -L`${CAT} ${WRKSRC}/LIBDIR` -L${LOCALBASE}/lib"
|
||||||
|
FORTRANLIBS= gfortranbegin gfortran
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,g' \
|
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,g' \
|
||||||
${WRKSRC}/src/mem.h \
|
${WRKSRC}/src/mem.h \
|
||||||
${WRKSRC}/superlu/sp_coletree.c \
|
${WRKSRC}/superlu/sp_coletree.c \
|
||||||
${WRKSRC}/superlu/util.h
|
${WRKSRC}/superlu/util.h
|
||||||
|
|
||||||
|
@${REINPLACE_CMD} -e 's,%%FORTRANLIBS%%,${FORTRANLIBS},g' \
|
||||||
|
${WRKSRC}/configure.in
|
||||||
|
|
||||||
|
pre-configure:
|
||||||
|
@${DIRNAME} `${LOCALBASE}/bin/${F77} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if ( ${ARCH} == "alpha" && ${OSVERSION} > 502102 ) || ${ARCH} == "sparc64"
|
.if ( ${ARCH} == "alpha" && ${OSVERSION} > 502102 ) || ${ARCH} == "sparc64"
|
||||||
BROKEN= Configure fails on alpha 5.x and sparc64
|
BROKEN= Configure fails on alpha 5.x and sparc64
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${OSVERSION} >= 700000
|
|
||||||
WITH_FORTRAN= yes
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
11
math/algae/files/patch-configure.in
Normal file
11
math/algae/files/patch-configure.in
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- configure.in~ Sat Dec 13 10:38:07 2003
|
||||||
|
+++ configure.in Tue Jan 16 14:12:07 2007
|
||||||
|
@@ -415,7 +415,7 @@
|
||||||
|
*-unicos* ) f77_lib_names="F77 I77 sci f" ;;
|
||||||
|
* ) f77_lib_names="F77 I77" ;;
|
||||||
|
esac]
|
||||||
|
-f77_lib_names="$f77_lib_names g2c f2c"
|
||||||
|
+f77_lib_names="%%FORTRANLIBS%%"
|
||||||
|
for f in $f77_lib_names; do reversed_names="$f $reversed_names"; done
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------
|
Loading…
Add table
Reference in a new issue