mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
- Enable GD support for nice graphs
PR: ports/74819 Submitted by: Renato Botelho <renato@galle.com.br> Approved by: maintainer timeout (2 weeks)
This commit is contained in:
parent
4b4d0998a1
commit
379403084a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125071
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user