1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/science/isaac-cfd/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

58 lines
1.6 KiB
Makefile

# Created by: Pedro F. Giffuni
# $FreeBSD$
PORTNAME= isaac
PORTVERSION= 4.2
PORTREVISION= 13
CATEGORIES= science
MASTER_SITES= SF/${PORTNAME}-cfd/${PORTNAME}-cfd/ISAAC%20Version%20${PORTVERSION}
DISTFILES= ${PORTNAME}src.4_2${EXTRACT_SUFX} ${PORTNAME}mk.4_2${EXTRACT_SUFX}
DIST_SUBDIR= isaac-cfd
EXTRACT_ONLY= ${PORTNAME}src.4_2${EXTRACT_SUFX} ${PORTNAME}mk.4_2${EXTRACT_SUFX}
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.
USES= fortran gmake
PLIST_FILES= bin/isaac
PORTDOCS= man.4_2.ps.gz
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES OPTIMIZED_FFLAGS
DOCS_DISTFILES= man.4_2.ps.gz
EXAMPLES_DISTFILES= example_cases${EXTRACT_SUFX}
OPTIMIZED_FFLAGS_DESC= Use extra compiler (fortran) optimizations
OPTIMIZED_FFLAGS_VARS= FFLAGS+="-O2 -ffast-math"
pre-configure:
@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%FFLAGS%%+${FFLAGS}+;' \
${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
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} ${DISTDIR}/${DIST_SUBDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/example_cases${EXTRACT_SUFX} \
-C ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>