summaryrefslogtreecommitdiff
path: root/science/fvcom/Makefile
blob: d5f0f26656032dac4730329a61c900099a1db341 (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
# Created by: Jason Bacon <jwbacon@tds.net>
# $FreeBSD$

PORTNAME=	fvcom
PORTVERSION=	2.7.1
PORTREVISION=	1
CATEGORIES=	science
MASTER_SITES=	http://fvcom.smast.umassd.edu/FVCOM/index.html/
DISTNAME=	sourcecode1
DIST_SUBDIR=	fvcom

MAINTAINER=	jwbacon@tds.net
COMMENT=	Unstructured Grid Finite Volume Coastal Ocean Model

# Check netcdf lib for Fortran support!
LIB_DEPENDS+=	netcdff:${PORTSDIR}/science/netcdf-ftn \
		lapack:${PORTSDIR}/math/lapack \
		blas:${PORTSDIR}/math/lapack

USES=		fortran
WRKSRC=		${WRKDIR}/FVCOM2.7.1/FVCOM_source

PLIST_FILES=	bin/${PORTNAME}${PKGNAMESUFFIX}

RESTRICTED=	may not be redistributed because of licensing reasons

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTFILES})
IGNORE=	may not be redistributed because of licensing reasons.\
	Please register at http://fvcom.smast.umassd.edu/FVCOM/index.html\
	in order to download the source code ${DISTFILES}\
	and place it in ${DISTDIR}/${DIST_SUBDIR}/
.endif

post-extract:
	${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile

pre-build:
	(cd ${WRKSRC}/../METIS_source && make)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/fvcom \
		${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}

.include <bsd.port.post.mk>