aboutsummaryrefslogtreecommitdiffstats
path: root/math/bargraph/Makefile
blob: bcb5cd085aedda263cd6655db12fcdf85100ae1f (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
# Created by: Dereckson <dereckson@gmail.com>
# $FreeBSD$

PORTNAME=   bargraph
PORTVERSION=    4.7
PORTREVISION=   1
CATEGORIES= math
MASTER_SITES=   http://bargraphgen.googlecode.com/files/
DISTNAME=   bargraphgen-${PORTVERSION}

MAINTAINER= dereckson@gmail.com
COMMENT=    Scriptable bar graph generator

LICENSE=    GPLv2

RUN_DEPENDS=    ${LOCALBASE}/bin/fig2dev:${PORTSDIR}/print/transfig \
        ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot

USES=       perl5 shebangfix tar:tgz
NO_WRKSUBDIR=   yes
NO_BUILD=   yes
SHEBANG_FILES=  bargraph.pl

OPTIONS_DEFINE= DOCS EXAMPLES

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/bargraph.pl ${STAGEDIR}${PREFIX}/bin/bargraph

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${CP} ${WRKSRC}/samples/*.perf  ${WRKSRC}/samples/*.png ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>