1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/www/sarg/Makefile
Renato Botelho a9308be9a9 Fix www/sarg build without NLS
PR:		211238
Submitted by:	w.schwarzenfeld@utanet.at
Reported by:	vas@mpeks.tomsk.su
MFH:		2016Q3
2016-09-05 17:27:11 +00:00

51 lines
1.2 KiB
Makefile

# Created by: mt@primats.org.ua
# $FreeBSD$
PORTNAME= sarg
PORTVERSION= 2.3.10
PORTREVISION= 2
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 PCRE LDAP ICONV
OPTIONS_SUB= yes
PHP_DESC= Install PHP for reporting generating
USES= autoreconf gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir="${ETCDIR}" \
--enable-fontdir="${ETCDIR}/fonts" \
--enable-imagedir="${ETCDIR}/images"
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
NLS_USES= gettext
NLS_USES_OFF= gettext-tools
NLS_CONFIGURE_ENABLE= nls
NLS_LIBS= -lintl
GD_CONFIGURE_WITH= gd
GD_LIB_DEPENDS= libgd.so:graphics/gd
PHP_CONFIGURE_ON= --enable-sargphp="${ETCDIR}"
PHP_CONFIGURE_OFF= --disable-sargphp
PCRE_CONFIGURE_WITH= pcre
PCRE_LIB_DEPENDS= libpcre.so: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
.include <bsd.port.mk>