blob: b81fe472c92b7caea528632c2ad7205fc6fb43fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= NASTRAN-95
PORTVERSION= 20160908
PORTREVISION= 5
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
USE_GITHUB= yes
GH_ACCOUNT= twuerfl
GH_TAGNAME= a73c57a
USES= fortran gmake
ALL_TARGET= # empty
INSTALL_TARGET= install-strip
NASTHOME= ${PREFIX}/libexec/${PORTNAME}
PLIST_SUB= NASTHOME=${NASTHOME}
OPTIONS_DEFINE= DOCS EXAMPLES
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>
|