2019-07-12 20:50:46 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.30 2019/07/12 20:51:05 sthen Exp $
|
2005-09-27 13:03:45 +00:00
|
|
|
|
2007-09-15 20:38:20 +00:00
|
|
|
COMMENT= Squid Analysis Report Generator
|
2005-09-27 13:03:45 +00:00
|
|
|
|
2018-01-21 09:27:25 +00:00
|
|
|
DISTNAME= sarg-2.3.11
|
2005-09-27 13:03:45 +00:00
|
|
|
CATEGORIES= www
|
2019-05-20 22:15:00 +00:00
|
|
|
REVISION= 1
|
2005-09-27 13:03:45 +00:00
|
|
|
|
2014-03-17 23:21:26 +00:00
|
|
|
HOMEPAGE= http://sarg.sourceforge.net/
|
2005-09-27 13:03:45 +00:00
|
|
|
|
2008-12-08 08:35:46 +00:00
|
|
|
# GPLv2+
|
2019-07-12 20:50:46 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2005-09-27 13:03:45 +00:00
|
|
|
|
2017-11-16 22:23:42 +00:00
|
|
|
WANTLIB= c gd iconv intl m pcre
|
2012-11-21 21:42:07 +00:00
|
|
|
|
2008-12-08 08:35:46 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sarg/}
|
2005-09-27 13:03:45 +00:00
|
|
|
|
2019-05-20 22:15:00 +00:00
|
|
|
LIB_DEPENDS= devel/gettext,-runtime \
|
2017-11-16 22:23:42 +00:00
|
|
|
devel/pcre \
|
2012-11-21 21:42:07 +00:00
|
|
|
graphics/gd
|
2005-09-27 13:03:45 +00:00
|
|
|
|
2008-12-08 08:35:46 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2012-11-21 21:42:07 +00:00
|
|
|
CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR}/sarg \
|
2013-07-05 09:34:35 +00:00
|
|
|
--enable-sargphp=${VARBASE}/www/htdocs/sarg-php \
|
2012-11-21 21:42:07 +00:00
|
|
|
--enable-fontdir=${SYSCONFDIR}/sarg/fonts \
|
|
|
|
--enable-imagedir=${SYSCONFDIR}/sarg/images
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -liconv -lintl"
|
|
|
|
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/cfgaux
|
|
|
|
|
|
|
|
FLAVORS= ldap
|
|
|
|
FLAVOR?=
|
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mldap}
|
2012-11-21 21:42:07 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
LIB_DEPENDS+= databases/openldap
|
|
|
|
WANTLIB+= ldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ldap
|
|
|
|
.endif
|
2005-09-27 13:03:45 +00:00
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST= Yes
|
2005-09-27 13:03:45 +00:00
|
|
|
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/sarg
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sarg ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/sarg.1 ${PREFIX}/man/man1/sarg.1
|
2014-03-09 22:43:25 +00:00
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}/{images,fonts,sarg-php}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/{css.tpl,exclude_codes,sarg.conf} \
|
|
|
|
${EXAMPLESDIR}/
|
2012-11-21 21:42:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/fonts/*.ttf ${EXAMPLESDIR}/fonts/
|
2014-03-09 22:43:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/images/* ${EXAMPLESDIR}/images/
|
|
|
|
cp -R ${WRKSRC}/sarg-php/{locale,*.php} ${EXAMPLESDIR}/sarg-php/
|
2005-09-27 13:03:45 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|