# -*- 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 118737 2014-04-10 05:58:37Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               github 1.0
PortGroup               php 1.1

github.setup            phalcon cphalcon 1.3.1 phalcon-v
name                    php-phalcon
platforms               darwin
maintainers             ryandesign openmaintainer
license                 BSD

php.branches            5.3 5.4 5.5

description             full stack PHP framework written as an extension

long_description        Phalcon is an open source, full stack framework for \
                        PHP 5 written as a C extension, optimized for high \
                        performance. Phalcon is a loosely coupled set of PHP \
                        classes, allowing you to use its objects as glue \
                        components based on the needs of your application. \
                        Phalcon is not only about performance\; the goal is \
                        to make it robust, rich in features and easy to use!

homepage                http://www.phalconphp.com/

checksums               rmd160  6334022af99693a41702a18e83c64841cfc801bf \
                        sha256  609f1432ddc6643a9779df5ac88643b15efe045ed7c6cb39f40c71cfd1eca650

if {${name} ne ${subport}} {
    # The build/install script makes all sorts of assumptions I don't like
    # so I'm ignoring it.

    # Ugh... separate 32-bit and 64-bit source trees.
    if {[string match *64 ${build_arch}]} {
        worksrcdir      ${worksrcdir}/build/64bits
    } else {
        worksrcdir      ${worksrcdir}/build/32bits
    }

    # Separate source trees means using the muniversal portgroup
    # but it doesn't get along with the php portgroup.
    universal_variant   no

    configure.args      --enable-phalcon
}
