Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2016 19:36:04 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423691 - head/cad/NASTRAN-95
Message-ID:  <201610101936.u9AJa465034562@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Oct 10 19:36:04 2016
New Revision: 423691
URL: https://svnweb.freebsd.org/changeset/ports/423691

Log:
  - Switch to options helpers

Modified:
  head/cad/NASTRAN-95/Makefile

Modified: head/cad/NASTRAN-95/Makefile
==============================================================================
--- head/cad/NASTRAN-95/Makefile	Mon Oct 10 19:34:10 2016	(r423690)
+++ head/cad/NASTRAN-95/Makefile	Mon Oct 10 19:36:04 2016	(r423691)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610101936.u9AJa465034562>