aboutsummaryrefslogtreecommitdiff
path: root/www/pecl-pecl_http/Makefile
blob: 435090bd13ccf2dda39835baf1a5195e77ffdd3c (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
# Ports collection makefile for:  pecl-pecl_http
# Date created:			  2005-12-19
# Whom:				  Alexander Zhuravlev <zaa@zaa.pp.ru>
#
# $FreeBSD$
#

PORTNAME=	pecl_http
DISTVERSION=	1.6.2
PORTREVISION=	1
CATEGORIES=	www pear
MASTER_SITES=	http://pecl.php.net/get/
PKGNAMEPREFIX=	pecl-
EXTRACT_SUFX=	.tgz
DIST_SUBDIR=	PECL

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A PHP extension which provides extended HTTP request/response handling

USE_PHP=	session hash iconv
USE_PHPIZE=	yes
USE_PHPEXT=	yes
USE_PHP_BUILD=	yes
DEFAULT_PHP_VER=5
PHP_MODNAME=	http

CONFIGURE_ARGS=	--enable-http

OPTIONS=	CURL			"Enable cURL HTTP requests"	on \
		MAGIC_MIME		"Enable response content type guessing"	on \
		ZLIB_COMPRESSION	"Enable support for encoded message bodies"	off

.include <bsd.port.pre.mk>

.if defined(WITH_CURL)
LIB_DEPENDS+=	curl.5:${PORTSDIR}/ftp/curl \
		event-1.4:${PORTSDIR}/devel/libevent
CONFIGURE_ARGS+=--with-http-curl-requests=${LOCALBASE} --with-http-curl-libevent=${LOCALBASE}
.else
CONFIGURE_ARGS+=--without-http-curl-requests
.endif

.if defined(WITH_MAGIC_MIME)
CONFIGURE_ARGS+=--with-http-magic-mime=/usr
.else
CONFIGURE_ARGS+=--without-http-magic-mime
.endif

.if defined(WITH_ZLIB_COMPRESSION)
CONFIGURE_ARGS+=--with-http-zlib-compression=/usr
.else
CONFIGURE_ARGS+=--without-http-zlib-compression
.endif

.include <bsd.port.post.mk>