# New ports collection makefile for:	mod_encoding
# Date created:		Thursday 13 November 2003
# Whom:			edwin@mavetju.org
#
# $FreeBSD: www/mod_encoding/Makefile 324744 2013-08-14 22:35:50Z ak $
#

PORTNAME=	mod_encoding
PORTVERSION=	20021209
PORTREVISION=	3
CATEGORIES=	www
MASTER_SITES=	http://webdav.todo.gr.jp/download/
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}

MAINTAINER=	apache@FreeBSD.org
COMMENT=	Apache module for non-ASCII filename interoperability


# This port will work with the following version of Apache and anything newer.
# Mostly because of the dependency of mod_dav.
#APACHE_VERSION=	1.3.6

USE_APACHE=	22+
USES=		iconv
HAS_CONFIGURE=	yes
USE_GMAKE=	yes

CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--bindir=${PREFIX}/bin \
		--sbindir=${PREFIX}/sbin \
		--libexecdir=${APACHEMODDIR} \
		--sysconfdir=${APACHEETCDIR} \
		--includedir=${APACHEINCLUDEDIR} \
		--with-apxs=${APXS}

CONFIGURE_ENV=	LIBS='-L${LOCALBASE}/lib' \
		PATH="${PREFIX}/bin:${PREFIX}/sbin:${PATH}"
CPPFLAGS+=	-I${APACHEINCLUDEDIR} -I${LOCALBASE}/include

PLIST_FILES=	${APACHEMODDIR}/mod_encoding.so

EXTRA_PATCHES=	${PATCHDIR}/apache22_patch

.if !defined(WITHOUT_ICONV_FIX)
EXTRA_PATCHES+=	${PATCHDIR}/iconv_hook-20040430.patch
.endif

.if defined(WITH_QUERYSTRING_FIX)
EXTRA_PATCHES+=	${PATCHDIR}/queryfix-patch22
.endif

.include <bsd.port.mk>
