diff --git a/www/sarg/Makefile b/www/sarg/Makefile index 9600a0cbde37..3e7caeb2a075 100644 --- a/www/sarg/Makefile +++ b/www/sarg/Makefile @@ -7,6 +7,7 @@ PORTNAME= sarg PORTVERSION= 2.0.2 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -14,12 +15,25 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= mt@primats.org.ua COMMENT= Squid log analyzer and HTML report generator +.if !defined(WITHOUT_GD) +LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd +.endif + GNU_CONFIGURE= yes CONFIGURE_ARGS= CC=gcc --enable-bindir="${PREFIX}/bin" --enable-sysconfdir="${PREFIX}/etc/${PORTNAME}" --enable-htmldir=${PREFIX}/www/${PORTNAME} +.if !defined(WITHOUT_GD) +CFLAGS+= -I ${LOCALBASE}/include -L ${LOCALBASE}/lib +.endif + MAN1= sarg.1 post-extract: @${CHMOD} +x ${WRKSRC}/sarg-php/locale +post-configure: +.if !defined(WITHOUT_GD) + @${SED} -i .orig 's|^\(LDFLAGS.*\)|\1 -I ${LOCALBASE}/include -L ${LOCALBASE}/lib|g' ${WRKSRC}/Makefile +.endif + .include