1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/cad/NASTRAN-95/Makefile
Pedro F. Giffuni 77fefb9b0b cad/NASTRAN-95: mark broken
Recent changes in gfortran seem to have broken this port so that it doesn't
produce valid results anymore. See [1] for more details.

This port would likely be a good candidate for LLVM Fortran but I currently
don't have time for to try (patches welcome).

Use dos2unix, as it seems necessary but not sufficient for a future fix.
Pet portlint while here.

Approved by:	therry (mentor)

[1] https://github.com/nasa/NASTRAN-95/issues/15
2020-07-30 17:05:23 +00:00

73 lines
2.1 KiB
Makefile

# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= NASTRAN-95
PORTVERSION= 20160908
PORTREVISION= 6
CATEGORIES= cad science
MAINTAINER= pfg@FreeBSD.org
COMMENT= NASA Structural Analysis System
LICENSE= NOSA
LICENSE_NAME= NASA OPEN SOURCE AGREEMENT VERSION 1.3
LICENSE_FILE= ${FILESDIR}/NASTRAN95-license.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BROKEN= Produces bogus files on newer versions of GCC fortran
USES= fortran gmake dos2unix
USE_GITHUB= yes
GH_ACCOUNT= twuerfl
GH_TAGNAME= a73c57a
ALL_TARGET= # empty
INSTALL_TARGET= install-strip
NASTHOME= ${PREFIX}/libexec/${PORTNAME}
PLIST_SUB= NASTHOME=${NASTHOME}
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${FORTRAN_DEFAULT} == gfortran && ${GCC_DEFAULT} >= 10
FFLAGS+= -fallow-invalid-boz
.endif
pre-build:
@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%FFLAGS%%+${FFLAGS}+g;' \
${WRKSRC}/src/Makefile \
${WRKSRC}/um/Makefile
# Version string limited to 7 characters
@${REINPLACE_CMD} -e 's+LINUX +FREEBSD+g;' \
${WRKSRC}/src/btstrp.f
do-build:
@(cd ${WRKSRC}/src; ${MAKE_CMD} ${ALL_TARGET})
@(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
${INSTALL} ${WRKSRC}/src/nastran.exe ${STAGEDIR}${NASTHOME}/bin/nastrn.exe
${INSTALL} ${WRKSRC}/utility/chkfil.exe ${STAGEDIR}${NASTHOME}/bin/
(cd ${WRKSRC} && ${COPYTREE_SHARE} "rf" ${STAGEDIR}${NASTHOME})
@${MKDIR} ${STAGEDIR}${NASTHOME}/um/
${INSTALL} ${WRKSRC}/um/nasthelp.exe ${STAGEDIR}${NASTHOME}/um/
${INSTALL_DATA} ${WRKSRC}/um/*.TXT ${STAGEDIR}${NASTHOME}/um/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
(cd ${WRKSRC} && ${COPYTREE_SHARE} "demoout inp test" ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>