# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 92227 2012-04-22 08:36:00Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup pecl_http 1.7.4 pecl
php5extension.extensions http
name            php5-http
categories      php www
platforms       darwin
maintainers     nomaintainer
description     Extended HTTP Support

long_description \
    This HTTP extension aims to provide a convenient and powerful \
    set of functionality for one of PHPs major applications. \
    It eases handling of HTTP urls, dates, redirects, headers and \
    messages, provides means for negotiation of clients preferred \
    language and charset, as well as a convenient way to send any \
    arbitrary data with caching and resuming capabilities. \
    It provides powerful request functionality, if built with CURL \
    support. Parallel requests are available for PHP 5 and greater.

checksums       rmd160  f5a80df53a13a16a218e5057c705596821fb97c0 \
                sha256  9006122f45a96754a417fd5afb00a7b6ad1aa125dd2158e56ca1b2d334421e03

depends_lib-append \
    port:curl \
    port:zlib

configure.args  --with-http-curl-requests=${prefix} \
                --with-http-zlib-compression=${prefix} \
                --without-http-curl-libevent

use_parallel_build  yes
