Files
2026-03-30 21:08:23 -04:00

75 lines
2.6 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup github 1.0
PortGroup php 1.1
name php-phalcon4
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
license BSD
php.branches 7.2 7.3 7.4
if {[vercmp ${php.branch} >= 7.4]} {
conflicts-append ${php}-phalcon5
}
if {[vercmp ${php.branch} <= 7.4]} {
conflicts-append ${php}-phalcon3
}
if {[vercmp ${php.branch} >= 7.3]} {
github.setup phalcon cphalcon 4.1.2 v
revision 0
checksums rmd160 5a1c46931794db0a5d95972b870d0ade4c30d34d \
sha256 5dddb6bc6bc7f48e53f5121662007357efdf22639d2fde69d3f4b0b28fdd3646 \
size 7079715
} elseif {[vercmp ${php.branch} >= 7.2]} {
github.setup phalcon cphalcon 4.1.1 v
revision 0
checksums rmd160 01cd262b893717326eb243f3496ea9a999518933 \
sha256 6ceb5105abe199c2805c8a743e8f66c917ea416f39348ac17419e7fdf7e29f3b \
size 7080268
}
description full stack PHP framework written as an extension
long_description Phalcon is an open source full stack framework for \
PHP, written as a C-extension. Phalcon is optimized \
for high performance. Its unique architecture allows \
the framework to always be memory resident, offering \
its functionality whenever it's needed, without \
expensive file stats and file reads that traditional \
PHP frameworks employ.
homepage https://phalcon.io
github.tarball_from archive
dist_subdir php-phalcon
if {${name} ne ${subport}} {
depends_lib-append port:${php}-psr \
port:pcre
# The build/install script makes all sorts of assumptions I don't like
# so I'm ignoring it.
set phpmajor [lindex [split ${php.branch} .] 0]
set build build/php${phpmajor}
if {[string match *64 ${build_arch}]} {
set build ${build}/64bits
} else {
set build ${build}/32bits
}
worksrcdir ${worksrcdir}/${build}
# Separate dir for each arch means using the muniversal portgroup
# but it doesn't get along with the php portgroup.
universal_variant no
configure.args --enable-phalcon
}
livecheck.type none