# -*- 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 53568 2009-07-08 13:38:47Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup pecl_http 1.6.3 pecl
revision        3

name            php5-http
categories      php www
platforms       darwin
maintainers     nox openmaintainer
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       md5     988d2c81147e10c97887bd481d5f8655 \
                sha1    df4aae8aed39b9e0604b083e1789eda43091e2b2 \
                rmd160  06975c840ca83705dee64a0b083f168a066d6978

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

set php5extension.extension http
