2006-02-06 16:34:44 +01:00
|
|
|
# Ports collection makefile for: pecl-pecl_http
|
|
|
|
# Date created: 2005-12-19
|
|
|
|
# Whom: Alexander Zhuravlev <zaa@zaa.pp.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pecl_http
|
2007-02-27 09:24:54 +01:00
|
|
|
DISTVERSION= 1.5.2
|
2006-03-19 23:24:53 +01:00
|
|
|
CATEGORIES= www pear
|
2006-02-06 16:34:44 +01:00
|
|
|
MASTER_SITES= http://pecl.php.net/get/
|
|
|
|
PKGNAMEPREFIX= pecl-
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
DIST_SUBDIR= PECL
|
|
|
|
|
|
|
|
MAINTAINER= zaa@zaa.pp.ru
|
|
|
|
COMMENT= A PHP extension which provides extended HTTP request/response handling
|
|
|
|
|
2006-03-19 23:24:53 +01:00
|
|
|
USE_PHP= session hash iconv
|
2006-02-06 16:34:44 +01:00
|
|
|
USE_PHPIZE= yes
|
|
|
|
USE_PHPEXT= yes
|
2006-03-19 23:24:53 +01:00
|
|
|
USE_PHP_BUILD= yes
|
2006-02-06 16:34:44 +01:00
|
|
|
DEFAULT_PHP_VER=5
|
|
|
|
PHP_MODNAME= http
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --enable-http
|
|
|
|
|
|
|
|
OPTIONS= CURL "Enable cURL HTTP requests" on \
|
2006-06-11 17:05:16 +02:00
|
|
|
MAGIC_MIME "Enable response content type guessing" on \
|
2006-03-19 23:24:53 +01:00
|
|
|
ZLIB_COMPRESSION "Enable support for encoded message bodies" off
|
2006-02-06 16:34:44 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_CURL)
|
2006-12-13 13:41:35 +01:00
|
|
|
LIB_DEPENDS+= curl.4:${PORTSDIR}/ftp/curl
|
2006-02-06 16:34:44 +01:00
|
|
|
CONFIGURE_ARGS+=--with-http-curl-requests=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-http-curl-requests
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MAGIC_MIME)
|
2006-06-11 17:05:16 +02:00
|
|
|
. if ${OSVERSION} < 502128
|
2006-02-06 16:34:44 +01:00
|
|
|
LIB_DEPENDS+= magic.1:${PORTSDIR}/sysutils/file
|
2006-06-11 17:05:16 +02:00
|
|
|
MAGICBASE= ${LOCALBASE}
|
|
|
|
. else
|
|
|
|
MAGICBASE= /usr
|
|
|
|
. endif
|
|
|
|
CONFIGURE_ARGS+=--with-http-magic-mime=${MAGICBASE}
|
2006-02-06 16:34:44 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-http-magic-mime
|
|
|
|
.endif
|
|
|
|
|
2006-10-31 07:40:04 +01:00
|
|
|
.if defined(WITH_ZLIB_COMPRESSION) && ${OSVERSION} > 500000
|
2006-02-06 16:34:44 +01:00
|
|
|
CONFIGURE_ARGS+=--with-http-zlib-compression=/usr
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-http-zlib-compression
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|