aboutsummaryrefslogtreecommitdiffstats
path: root/www/srg/Makefile
blob: 9a65c47efd824ed587f4efe32316544fbb53aa15 (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
# New ports collection makefile for:    srg
# Date created:     28 June 2004
# Whom:         Dmitry Semkin <lslarry@gmail.com>
#
# $FreeBSD$
#

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


MAINTAINER= ds@tic-tac.ru
COMMENT=    A Squid Report Generator

USE_GMAKE=  yes
USE_BISON=  build
USE_BZIP2=  yes
NO_INSTALL_MANPAGES=    yes
MAKE_ENV=   CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

post-patch:
    ${REINPLACE_CMD} -e 's|-g |${CFLAGS} ${CPPFLAGS} |' ${WRKSRC}/Makefile \
        ${WRKSRC}/lib/Makefile
    ${REINPLACE_CMD} -e 's|^\(LDFLAGS\)=|\1+=|' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/srg ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>