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

PORTNAME=   gri
PORTVERSION=    2.12.18
PORTREVISION=   3
CATEGORIES= math
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= christopher.illies@ki.se
COMMENT=    An extensible plotting language for producing scientific graphs

LIB_DEPENDS=    netcdf.4:${PORTSDIR}/science/netcdf

.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick    \
        dvips:${PORTSDIR}/print/dvipsk-tetex
.endif

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-FreeBSD
USE_GMAKE=  yes
REINPLACE_ARGS= -Ei.bak
MAKE_ENV+=  MAKEINFOFLAGS=--no-split

MAN1=   gri.1 gri_merge.1 gri_unpage.1
INFO=   gri

.if defined(NOPORTDOCS)
post-patch:
    ${REINPLACE_CMD} -e '/^(DIST_)?SUBDIRS/s/doc//' ${WRKSRC}/Makefile.in
.endif

.if defined(NOPORTDOCS)
post-install:
    ${INSTALL_MAN} ${WRKSRC}/doc/gri-manpage.1 ${MANPREFIX}/man/man1/gri.1
    ${INSTALL_MAN} ${WRKSRC}/doc/gri_merge.1-skel ${MANPREFIX}/man/man1/gri_merge.1
    ${INSTALL_MAN} ${WRKSRC}/doc/gri_unpage.1-skel ${MANPREFIX}/man/man1/gri_unpage.1
    cd ${WRKSRC}/doc && makeinfo gri.texi
    ${INSTALL_DATA} ${WRKSRC}/doc/gri.info* ${PREFIX}/info
.endif

.include <bsd.port.mk>