freebsd-ports/www/sarg/Makefile
Renato Botelho a05bfb9082 Add a patch to css.c, to fix an overflow if you are using external css and
have a lot of html to proccess. The external css file is open so many times
and never closed.

PR:		ports/95022
Submitted by:	Eugene M. Zheganin <emz@norma.perm.ru>
2006-03-28 10:46:44 +00:00

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: sarg
# Date created: 23.02.2003
# Whom: mt@primats.org.ua
#
# $FreeBSD$
#
PORTNAME= sarg
PORTVERSION= 2.1
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= garga@FreeBSD.org
COMMENT= Squid log analyzer and HTML report generator
PATCH_SITES= http://sarg.sourceforge.net/
PATCHFILES= datafile.patch lastlog.patch
GNU_CONFIGURE= yes
CONFIGURE_ENV= CC=gcc
CONFIGURE_ARGS= --enable-bindir="${PREFIX}/bin" \
--enable-sysconfdir="${PREFIX}/etc/${PORTNAME}" \
--enable-htmldir="${PREFIX}/www/${PORTNAME}" \
--enable-mandir="${MAN1PREFIX}/man/man1"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if !defined(WITHOUT_GD)
GD_PORT?= graphics/gd
LIB_DEPENDS+= gd.4:${PORTSDIR}/${GD_PORT}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
.endif
MAN1= sarg.1
post-extract:
@${CHMOD} +x ${WRKSRC}/sarg-php/locale
post-patch:
@${REINPLACE_CMD} -e '/^LDFLAGS/d' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>