aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/graffer/Makefile
blob: 86820c4b289b7caa1b3a48acc10601506eb42d3a (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
# Created by: Nikola Kolev <koue@chaosophia.net>
# $FreeBSD$

PORTNAME=   graffer
PORTVERSION=    1.1
CATEGORIES= sysutils
MASTER_SITES=   http://chaosophia.net/downloads/graffer/ \
        http://ns1.chaosophia.net/downloads/graffer/

MAINTAINER= koue@chaosophia.net
COMMENT=    Utility to render graphical statistics

LIB_DEPENDS=    libjpeg.so:${PORTSDIR}/graphics/jpeg \
        libpng15.so:${PORTSDIR}/graphics/png \
        libfreetype.so:${PORTSDIR}/print/freetype2

PLIST_FILES=    bin/graffer \
        etc/graffer/graffer.conf.example \
        man/man8/graffer.8.gz

post-patch:
    @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \
        ${WRKSRC}/graffer.[c8]
    @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \
        ${WRKSRC}/graffer.conf.example

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/graffer ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/graffer.8 ${STAGEDIR}${PREFIX}/man/man8
    @${MKDIR} ${STAGEDIR}${PREFIX}/etc/graffer
    ${INSTALL_DATA} ${WRKSRC}/graffer.conf.example ${STAGEDIR}${PREFIX}/etc/graffer

.include <bsd.port.mk>