1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/www/sarg/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

46 lines
1015 B
Makefile

# 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>