diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-10-11 03:36:04 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-10-11 03:36:04 +0800 |
commit | 29e98fda03a61a22e24f6d026d0d91f041e59921 (patch) | |
tree | 2ca09ccde3825a1a9f2a86d3410cf6ad2d75d8e0 /cad/NASTRAN-95 | |
parent | f6246ae04ff966d26970b810f3d5bd2c91691dd6 (diff) | |
download | freebsd-ports-gnome-29e98fda03a61a22e24f6d026d0d91f041e59921.tar.gz freebsd-ports-gnome-29e98fda03a61a22e24f6d026d0d91f041e59921.tar.zst freebsd-ports-gnome-29e98fda03a61a22e24f6d026d0d91f041e59921.zip |
- Switch to options helpers
Diffstat (limited to 'cad/NASTRAN-95')
-rw-r--r-- | cad/NASTRAN-95/Makefile | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/cad/NASTRAN-95/Makefile b/cad/NASTRAN-95/Makefile index 8a6ba5df17ca..c051807a3c2c 100644 --- a/cad/NASTRAN-95/Makefile +++ b/cad/NASTRAN-95/Makefile @@ -10,9 +10,9 @@ MAINTAINER= ports@FreeBSD.org COMMENT= NASA Structural Analysis System LICENSE= NOSA -LICENSE_NAME= NASA OPEN SOURCE AGREEMENT VERSION 1.3 +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 +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept USE_GITHUB= yes GH_ACCOUNT= twuerfl @@ -21,11 +21,13 @@ GH_TAGNAME= 0e77a84 USES= fortran gmake ALL_TARGET= # empty -INSTALL_TARGET=install-strip +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}/sb/Makefile \ @@ -47,16 +49,17 @@ do-install: @${MKDIR} ${STAGEDIR}${NASTHOME}/bin ${INSTALL} ${WRKSRC}/sb/nastran.exe ${STAGEDIR}${NASTHOME}/bin/nastrn.exe ${INSTALL} ${WRKSRC}/utility/chkfil.exe ${STAGEDIR}${NASTHOME}/bin/ - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/*.pdf ${STAGEDIR}${DOCSDIR} -.for dir in rf - (cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${NASTHOME}) -.endfor + (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/ -.for dir in demoout inp test - (cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${EXAMPLESDIR}) -.endfor + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/*.pdf ${STAGEDIR}${DOCSDIR} + +do-install-EXAMPLES-on: + (cd ${WRKSRC} && ${COPYTREE_SHARE} "demoout inp test" ${STAGEDIR}${EXAMPLESDIR}) + .include <bsd.port.mk> |