aboutsummaryrefslogtreecommitdiffstats
path: root/www/srg/Makefile
blob: fb593fc70ee6e080f33297de67b3a2c3e8c877e3 (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
# Created by: Dmitry Semkin <lslarry@gmail.com>
# $FreeBSD$

PORTNAME=   srg
PORTVERSION=    1.3.6
CATEGORIES= www
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
        http://mirror.crc.net.nz/pub/srg/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Squid Report Generator

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

.if defined(.PARSEDIR)
USE_GMAKE=  yes
.endif

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes

MAN1=       srg.1

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e \
        '/CPPFLAGS/s|-I/usr/local/include|| ; \
         /LDFLAGS/s|-L/usr/local/lib||' ${WRKSRC}/configure

post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${EXAMPLESDIR}
.for ex in srg.daily srg.monthly srg.weekly
    ${INSTALL_DATA} ${WRKSRC}/examples/${ex} ${EXAMPLESDIR}
.endfor
.endif

.include <bsd.port.mk>