aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/dataplot/Makefile
blob: 570a367b36b73a23640e0c9d71f64665faf5e824 (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
# New ports collection makefile for:    dataplot
# Date created:     20 July 2003
# Whom:         Pedro F. Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#

PORTNAME=   dataplot
PORTVERSION=    20050128
CATEGORIES= graphics
MASTER_SITES=   ftp://ftp.nist.gov/pub/dataplot/unix/:source \
        http://www.itl.nist.gov/div898/software/dataplot.html/:doc
DISTFILES=  dpsrc_1_2005${EXTRACT_SUFX}:source \
        dpsnapsh.pdf:doc
DIST_SUBDIR=    dataplot
EXTRACT_ONLY=   dpsrc_1_2005${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A free software system for statistical visualization

BROKEN=     Size mismatch

#FORBIDDEN= checksum mismatch due to extensive changes to distfile
LIB_DEPENDS=    gd:${PORTSDIR}/graphics/gd \
        png:${PORTSDIR}/graphics/png \
        jpeg:${PORTSDIR}/graphics/jpeg

USE_XLIB=   yes
USE_REINPLACE=  yes
NO_WRKSUBDIR=   yes
MAXOBV?=    20000   # Make bigger if you need more observations/variable

post-extract:
    @${INSTALL_DATA} ${FILESDIR}/Makefile.tmpl ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g ; \
    s;%%X11BASE%%;${X11BASE};g' \
    ${WRKSRC}/Makefile
    @${MV} ${WRKSRC}/gl_src.c ${WRKSRC}/gl_src.c.bogus
pre-patch:
    @${REINPLACE_CMD} -e 's/MAXOBV=100000/MAXOBV=${MAXOBV}/' \
    ${WRKSRC}/DPCOPA.INC

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR}  ${DOCSDIR}
    @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/dpsnapsh.pdf \
        ${DOCSDIR}
.endif

.include    <bsd.port.mk>