# -*- 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 78496 2011-05-10 06:54:30Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup pecl_http 1.7.1 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       sha1    898635c9606433a9d1f800f9e461e236b6fd76bf \
                rmd160  4039d5e76962599d46910c129c757951b3611b8f

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
