-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
43 lines (33 loc) · 1.46 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup php 1.1
name php-event
categories-append devel
maintainers {ryandesign @ryandesign} openmaintainer
license PHP-3.01
php.branches 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
php.pecl yes
# This extension must load after the sockets extension.
php.extension_ini ~${php.extension_ini}
if {[vercmp ${php.branch} >= 5.4]} {
version 3.1.4
revision 0
checksums rmd160 633e3b14b3b415de9c483177478055c760694c37 \
sha256 5c4caa73bc2dceee31092ff9192139df28e9a80f1147ade0dfe869db2e4ddfd3 \
size 205220
}
description efficiently schedule I/O, time and signal based events
long_description PECL extension to ${description} using libevent.
if {${name} ne ${subport}} {
depends_lib-append port:libevent \
path:lib/libssl.dylib:openssl \
port:${php}-sockets
configure.args-append \
--with-event-libevent-dir=${prefix}
if {[vercmp ${php.branch} < 7.4]} {
configure.args-append \
--with-openssl-dir=${prefix}
} else {
depends_build-append path:bin/pkg-config:pkgconfig
}
}