blob: 55f1b96323aefac6fa4e286998466c2768fc0da4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# New ports collection makefile for: sarg
# Date created: 23.02.2003
# Whom: mt@primats.org.ua
#
# $FreeBSD$
#
PORTNAME= sarg
PORTVERSION= 2.2.3.1
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= SF
MAINTAINER= garga@FreeBSD.org
COMMENT= Squid log analyzer and HTML report generator
OPTIONS= GD "Enable GD support" on
USE_ICONV= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CC=gcc CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-bindir="${PREFIX}/bin" \
--enable-sysconfdir="${PREFIX}/etc/${PORTNAME}" \
--enable-htmldir="${PREFIX}/www/${PORTNAME}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= sarg.1
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_GD)
GD_PORT?= graphics/gd
LIB_DEPENDS+= gd.4:${PORTSDIR}/${GD_PORT}
.endif
post-extract:
@${CHMOD} +x ${WRKSRC}/sarg-php/locale
post-patch:
@${REINPLACE_CMD} -e '/^LDFLAGS=/d' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.post.mk>
|