1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/www/sarg/Makefile
Renato Botelho 8df4b4fda7 - Update to 2.3.9 [1]
- Use @sample [1]
- Remove @dirrm and @dirrmtry

PR:		193914 [1]
Submitted by:	takefu@airport.fm [1]
2014-10-06 10:25:34 +00:00

50 lines
1.2 KiB
Makefile

# Created by: mt@primats.org.ua
# $FreeBSD$
PORTNAME= sarg
PORTVERSION= 2.3.9
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= Squid log analyzer and HTML report generator
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
OPTIONS_DEFINE= GD PHP NLS PCRE LDAP ICONV
OPTIONS_DEFAULT=GD PHP NLS PCRE LDAP ICONV
PHP_DESC= Install PHP for reporting generating
USES= gmake
USE_AUTOTOOLS= autoconf aclocal
OPTIONS_SUB= yes
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= CPPFLAGS=-I${LOCALBASE}/include \
--sysconfdir="${ETCDIR}" \
--enable-fontdir="${ETCDIR}/fonts" \
--enable-imagedir="${ETCDIR}/images"
NLS_USES= gettext
NLS_LDFLAGS= -lintl
NLS_CONFIGURE_ENABLE= nls
GD_CONFIGURE_WITH= gd
GD_LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
PHP_CONFIGURE_ON= --enable-sargphp="${ETCDIR}"
PHP_CONFIGURE_OFF= --disable-sargphp
PCRE_CONFIGURE_WITH= pcre
PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
LDAP_USE= USE_OPENLDAP=yes
LDAP_CONFIGURE_WITH= ldap
ICONV_USES= iconv
ICONV_CONFIGURE_WITH= iconv
ICONV_LDFLAGS= ${ICONV_LIB}
post-patch:
@${REINPLACE_CMD} -e '/test .*==/ s/==/=/' \
${WRKSRC}/configure.in
.include <bsd.port.mk>