blob: 868470cc1a4f24d0970671071486b3d2903e97f9 (
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
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: sarg
# Date created: 23.02.2003
# Whom: mt@primats.org.ua
#
# $FreeBSD$
#
PORTNAME= sarg
PORTVERSION= 2.3.1
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= Squid log analyzer and HTML report generator
OPTIONS= GD "Enable GD support" on
USE_GCC= 4.2+
USE_ICONV= yes
USE_GMAKE= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --sysconfdir="${PREFIX}/etc/${PORTNAME}" \
--enable-sargphp="${PREFIX}/etc/${PORTNAME}" \
--enable-fontdir="${PREFIX}/etc/${PORTNAME}/fonts" \
--enable-imagedir="${PREFIX}/etc/${PORTNAME}/images"
MAN1= sarg.1
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
.include <bsd.port.pre.mk>
.if ${CC} == "cc"
CC= gcc
.endif
.if !defined(WITHOUT_GD)
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
.endif
pre-install:
${STRIP_CMD} ${WRKSRC}/sarg
post-install:
@${RM} ${WRKSRC}/languages/.new
@${MKDIR} ${PREFIX}/etc/${PORTNAME}/languages
${INSTALL_DATA} ${WRKSRC}/languages/* ${PREFIX}/etc/${PORTNAME}/languages
.include <bsd.port.post.mk>
|