diff options
author | pav <pav@FreeBSD.org> | 2004-12-24 14:20:09 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-12-24 14:20:09 +0000 |
commit | ac3b28465c1321e0cb45a415f2bce66413a19ae4 (patch) | |
tree | 9791b2df6a022d151202b93865798c8ddb6dcdc3 /www | |
parent | f9ffc79763b9a74bd8f15cb0ae7f5f19fd4d8c4d (diff) | |
download | FreeBSD-ports-ac3b28465c1321e0cb45a415f2bce66413a19ae4.zip FreeBSD-ports-ac3b28465c1321e0cb45a415f2bce66413a19ae4.tar.gz |
- Enable GD support for nice graphs
PR: ports/74819
Submitted by: Renato Botelho <renato@galle.com.br>
Approved by: maintainer timeout (2 weeks)
Diffstat (limited to 'www')
-rw-r--r-- | www/sarg/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/sarg/Makefile b/www/sarg/Makefile index 9600a0c..3e7caeb 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 <bsd.port.mk> |