aboutsummaryrefslogtreecommitdiff
path: root/math/gri/Makefile
blob: 48fc1fc1586b5f1969e4d1de4edb623b6ad42911 (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
# New ports collection makefile for: gri
# Date created:		14 Oct 2000
# Whom:			M. L. Dodson, <bdodson@scms.utmb.edu>
#
# $FreeBSD$
#

PORTNAME=	gri
PORTVERSION=	2.10.1
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	gri
DISTNAME=	gri-${PORTVERSION}-arch-indep

MAINTAINER=	bdodson@scms.utmb.edu

LIB_DEPENDS=	netcdf.1:${PORTSDIR}/math/netcdf
BUILD_DEPENDS=	gawk:${PORTSDIR}/lang/gawk

WRKSRC=		${WRKDIR}/gri-${PORTVERSION}
GNU_CONFIGURE=	YES
MAKE_ENV+=	PREFIX=${PREFIX}
ALL_TARGET=	gri
MAN1=		gri.1

post-extract:
	${CP} ${WRKSRC}/doc/gri-manpage.1 ${WRKSRC}/gri.1

post-install:
.if defined(NOPORTDOCS)
	${RM} -rf ${PREFIX}/share/gri/doc
.endif
	${CHMOD} 555 ${PREFIX}/bin/gri_merge
	${CHMOD} 555 ${PREFIX}/bin/gri_unpage
	${INSTALL_MAN} ${WRKSRC}/gri.1 ${PREFIX}/man/man1
	@-${RM} ${PREFIX}/share/gri/${PORTVERSION}/license.txt

.include <bsd.port.mk>