From owner-svn-ports-all@freebsd.org Wed Jun 21 09:01:28 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBBD7D8A571; Wed, 21 Jun 2017 09:01:28 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7FE5A17F5; Wed, 21 Jun 2017 09:01:28 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v5L91RW7034388; Wed, 21 Jun 2017 09:01:27 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v5L91RVh034387; Wed, 21 Jun 2017 09:01:27 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201706210901.v5L91RVh034387@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Wed, 21 Jun 2017 09:01:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r444019 - head/science/isaac-cfd X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 09:01:28 -0000 Author: amdmi3 Date: Wed Jun 21 09:01:27 2017 New Revision: 444019 URL: https://svnweb.freebsd.org/changeset/ports/444019 Log: - Add LICENSE - Switch to options helpers Modified: head/science/isaac-cfd/Makefile Modified: head/science/isaac-cfd/Makefile ============================================================================== --- head/science/isaac-cfd/Makefile Wed Jun 21 08:21:55 2017 (r444018) +++ head/science/isaac-cfd/Makefile Wed Jun 21 09:01:27 2017 (r444019) @@ -13,6 +13,11 @@ EXTRACT_ONLY= ${PORTNAME}src.4_2${EXTRACT_SUFX} ${PORT MAINTAINER= ports@FreeBSD.org COMMENT= Integrated Solution Algorithm for Arbitrary Configuration +LICENSE= ISAAC +LICENSE_NAME= ISAAC_LICENSE +LICENSE_FILE= ${WRKSRC}/license.txt +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + NO_WRKSUBDIR= yes MAKEFILE= makefile MAKE_ARGS= CPPFLAGS=-I. @@ -23,34 +28,30 @@ PORTDOCS= man.4_2.ps.gz PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES OPTIMIZED_FFLAGS -OPTIMIZED_FFLAGS_DESC= Use extra compiler (fortran) optimizations DOCS_DISTFILES= man.4_2.ps.gz EXAMPLES_DISTFILES= example_cases${EXTRACT_SUFX} -.include +OPTIMIZED_FFLAGS_DESC= Use extra compiler (fortran) optimizations +OPTIMIZED_FFLAGS_VARS= FFLAGS+="-O2 -ffast-math" -.if ${PORT_OPTIONS:MOPTIMIZED_FFLAGS} -FFLAGS+= -O2 -ffast-math -.endif - pre-configure: @${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%FFLAGS%%+${FFLAGS}+;' \ - ${WRKSRC}/makefile - ${FIND} ${WRKSRC} -name "*.mk" -exec \ + ${WRKSRC}/makefile + @${FIND} ${WRKSRC} -name "*.mk" -exec \ ${REINPLACE_CMD} -e 's|SRC= $$(HOME)/ISAAC/src|SRC= ${WRKSRC}|; \ s|$$(FFLAGS)|${FFLAGS} -I.|' {} \; do-install: ${INSTALL_PROGRAM} ${WRKSRC}/isaac ${STAGEDIR}${PREFIX}/bin/isaac -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${STAGEDIR}${DOCSDIR} + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${CP} ${DISTDIR}/${DIST_SUBDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + +do-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/example_cases${EXTRACT_SUFX} \ -C ${STAGEDIR}${EXAMPLESDIR} -.endif .include