aboutsummaryrefslogtreecommitdiff
path: root/www/mod_encoding/Makefile
blob: d978c98aedd135f85b569788fb9993ce85bf1344 (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
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:	mod_encoding
# Date created:		Thursday 13 November 2003
# Whom:			edwin@mavetju.org
#
# $FreeBSD$
#

PORTNAME=	mod_encoding
PORTVERSION=	20021209
PORTREVISION=	2
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

MAKE_JOBS_SAFE=  yes

# 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=	1.3+
USE_ICONV=	yes
HAS_CONFIGURE=	yes
USE_GMAKE=	yes

.include <bsd.port.pre.mk>

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

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

PLIST_FILES=	${APACHEMODDIR}/mod_encoding.so

.if ${APACHE_VERSION} == 20
EXTRA_PATCHES=	${PATCHDIR}/apache20_patch
.elif ${APACHE_VERSION} >= 21
EXTRA_PATCHES=	${PATCHDIR}/apache22_patch
.endif

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

.if defined(WITH_QUERYSTRING_FIX)
.if ${APACHE_VERSION} <= 20
EXTRA_PATCHES+=	${PATCHDIR}/queryfix-patch13
.elif ${APACHE_VERSION} >= 21
EXTRA_PATCHES+=	${PATCHDIR}/queryfix-patch22
.endif
.endif

.include <bsd.port.post.mk>