2016-08-11 16:22:55 +00:00
|
|
|
# Created by: Pedro Giffuni
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= NASTRAN-95
|
2017-08-17 11:15:05 +00:00
|
|
|
PORTVERSION= 20160908
|
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
2019-07-26 20:46:53 +00:00
|
|
|
PORTREVISION= 6
|
2016-08-11 16:22:55 +00:00
|
|
|
CATEGORIES= cad science
|
|
|
|
|
2017-08-17 11:15:05 +00:00
|
|
|
MAINTAINER= pfg@FreeBSD.org
|
2016-08-11 16:22:55 +00:00
|
|
|
COMMENT= NASA Structural Analysis System
|
|
|
|
|
2016-09-05 17:25:16 +00:00
|
|
|
LICENSE= NOSA
|
2016-10-10 19:36:04 +00:00
|
|
|
LICENSE_NAME= NASA OPEN SOURCE AGREEMENT VERSION 1.3
|
2016-08-11 16:22:55 +00:00
|
|
|
LICENSE_FILE= ${FILESDIR}/NASTRAN95-license.txt
|
2016-10-10 19:36:04 +00:00
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
2016-08-11 16:22:55 +00:00
|
|
|
|
2020-07-30 17:05:23 +00:00
|
|
|
BROKEN= Produces bogus files on newer versions of GCC fortran
|
|
|
|
|
|
|
|
USES= fortran gmake dos2unix
|
|
|
|
|
2016-08-11 16:22:55 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= twuerfl
|
2017-08-17 11:15:05 +00:00
|
|
|
GH_TAGNAME= a73c57a
|
2016-08-11 16:22:55 +00:00
|
|
|
|
|
|
|
ALL_TARGET= # empty
|
2016-10-10 19:36:04 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2016-08-11 16:22:55 +00:00
|
|
|
|
2017-08-17 11:15:05 +00:00
|
|
|
NASTHOME= ${PREFIX}/libexec/${PORTNAME}
|
2016-08-11 16:22:55 +00:00
|
|
|
PLIST_SUB= NASTHOME=${NASTHOME}
|
|
|
|
|
2016-10-10 19:36:04 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
cad/NASTRAN-95: Unbreak build with GCC 10
bufchk.f:16:28:
16 | 1 '1'X , '2'X , '3'X , '4'X , '8'X /
| 1
Error: BOZ constant at (1) uses nonstandard postfix syntax [see '-fno-allow-invalid-boz']
bufchk.f:18:32:
18 | 1 'F1111'X, 'F2222'X , 'FAAAA'X, 'FBBBB'X /
| 1
Error: BOZ constant at (1) uses nonstandard postfix syntax [see '-fno-allow-invalid-boz']
bufchk.f:20:32:
20 | 1 'F5555'X, 'F7777'X , 'F8888'X, 'F9999'X /
| 1
Error: BOZ constant at (1) uses nonstandard postfix syntax [see '-fno-allow-invalid-boz']
http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/NASTRAN-95-20160908_6.log
PR: 246700
2020-06-28 04:29:19 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${FORTRAN_DEFAULT} == gfortran && ${GCC_DEFAULT} >= 10
|
|
|
|
FFLAGS+= -fallow-invalid-boz
|
|
|
|
.endif
|
|
|
|
|
2016-08-11 16:22:55 +00:00
|
|
|
pre-build:
|
|
|
|
@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%FFLAGS%%+${FFLAGS}+g;' \
|
2017-08-17 11:15:05 +00:00
|
|
|
${WRKSRC}/src/Makefile \
|
2016-08-11 16:22:55 +00:00
|
|
|
${WRKSRC}/um/Makefile
|
2017-08-17 11:15:05 +00:00
|
|
|
# Version string limited to 7 characters
|
2016-08-23 02:29:44 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+LINUX +FREEBSD+g;' \
|
2017-08-17 11:15:05 +00:00
|
|
|
${WRKSRC}/src/btstrp.f
|
2016-08-11 16:22:55 +00:00
|
|
|
|
|
|
|
do-build:
|
2017-08-17 11:15:05 +00:00
|
|
|
@(cd ${WRKSRC}/src; ${MAKE_CMD} ${ALL_TARGET})
|
2016-08-11 16:22:55 +00:00
|
|
|
@(cd ${WRKSRC}/um; ${MAKE_CMD} ${ALL_TARGET})
|
|
|
|
@(cd ${WRKSRC}/utility; ${FC} -o chkfil.exe ${FFLAGS} chkfil.f ${LDFLAGS})
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${REINPLACE_CMD} -e 's+%%NASTHOME%%+${NASTHOME}+g' \
|
|
|
|
${WRKSRC}/bin/nastran
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/nastran ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
@${MKDIR} ${STAGEDIR}${NASTHOME}/bin
|
2017-08-17 11:15:05 +00:00
|
|
|
${INSTALL} ${WRKSRC}/src/nastran.exe ${STAGEDIR}${NASTHOME}/bin/nastrn.exe
|
2016-08-11 16:22:55 +00:00
|
|
|
${INSTALL} ${WRKSRC}/utility/chkfil.exe ${STAGEDIR}${NASTHOME}/bin/
|
2016-10-10 19:36:04 +00:00
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "rf" ${STAGEDIR}${NASTHOME})
|
2016-08-11 16:22:55 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${NASTHOME}/um/
|
|
|
|
${INSTALL} ${WRKSRC}/um/nasthelp.exe ${STAGEDIR}${NASTHOME}/um/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/um/*.TXT ${STAGEDIR}${NASTHOME}/um/
|
2016-10-10 19:36:04 +00:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
2017-08-17 11:15:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
|
2016-10-10 19:36:04 +00:00
|
|
|
|
|
|
|
do-install-EXAMPLES-on:
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "demoout inp test" ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
|
2016-08-11 16:22:55 +00:00
|
|
|
.include <bsd.port.mk>
|