aboutsummaryrefslogtreecommitdiffstats
path: root/math/nsc2ke/Makefile
blob: 3100f894e456bf6834c8eb83331f7013b4fe9eb0 (plain) (blame)
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
# New ports collection makefile for:    nsc2ke
# Date created:        16 December 2003
# Whom:                thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=   nsc2ke
PORTVERSION=    1.0
PORTREVISION=   2
CATEGORIES= math science
MASTER_SITES=   http://pauillac.inria.fr/cdrom_a_graver/ftp/nsc2ke/
DISTNAME=   ${PORTNAME}
.if !defined(NOPORTDOCS)
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} nsc2ke.ps.gz
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
.endif

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Navier-Stokes solver

RESTRICTED= No resale, contact author for commercial usage

USE_FORTRAN=    yes
FFLAGS+=    -O2

NO_WRKSUBDIR=   yes
MAKEFILE=   makefile
ALL_TARGET= NSC2KE

EXEMPLES=   DATA MESH gnu.data
TESTDIR?=   /tmp/testnsc2ke

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/NSC2KE ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/READ_ME ${DOCSDIR}
    @${INSTALL_DATA} ${DISTDIR}/nsc2ke.ps.gz ${DOCSDIR}
    @${ECHO_MSG} "===>  Documentation installed in ${DOCSDIR}."
    @${MKDIR} ${EXAMPLESDIR}
.for fich in ${EXEMPLES}
    @${INSTALL_DATA} ${WRKSRC}/${fich} ${EXAMPLESDIR}
.endfor
    @${ECHO_MSG} "===>  Examples installed in ${EXAMPLESDIR}."
.endif

post-install:
    @${ECHO}
    @${CAT} ${PKGMESSAGE}
    @${ECHO}

.if defined(MAINTAINER_MODE)
test:   install
    ${MKDIR} ${TESTDIR}
.for fich in ${EXEMPLES}
    ${INSTALL_DATA} ${WRKSRC}/${fich} ${TESTDIR}
.endfor
    (cd ${TESTDIR}; \
    NSC2KE;     \
    gnuplot < gnu.data)
.endif

.include <bsd.port.mk>