Files

91 lines
3.2 KiB
Tcl
Raw Permalink Normal View History

# -*- 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-mysql_xdevapi
categories-append databases
platforms darwin freebsd openbsd
2026-03-28 06:59:28 +01:00
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
license PHP-3.01
homepage https://dev.mysql.com/doc/x-devapi-userguide/en/
php.branches 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
php.pecl yes
if {[vercmp ${php.branch} >= 7.1]} {
2020-10-27 07:13:38 -05:00
if {${os.platform} ne "darwin" || ${os.major} >= 17} {
2022-08-06 16:41:03 -05:00
version 8.0.30
revision 2
2022-08-06 16:41:03 -05:00
checksums rmd160 a227c5fe61cb4c40542fad86eb80844503c7ab8f \
sha256 4a1f7ac8fc59579194548365d3fcc380372749e9cc50895d8e065ea7f4717cfd \
size 587966
2020-10-27 07:13:38 -05:00
} else {
version 8.0.21
revision 5
2020-10-27 07:13:38 -05:00
checksums rmd160 800b5659227a3cf5d2148d549a1c3de30fefa270 \
2020-07-16 17:56:32 -05:00
sha256 5415e11b20821a837807cdbeb7da198d714b229b5374f891821349788cc13e8d \
size 587301
2020-10-27 07:13:38 -05:00
}
}
description MySQL X DevAPI for PHP
long_description The X DevAPI is the new common API for MySQL Connectors built on the X Protocol introduced in MySQL 5.7.12.
if {${name} ne ${subport}} {
2021-06-10 14:38:25 +01:00
PortGroup boost 1.0
boost.depends_type build
2020-07-16 17:56:32 -05:00
depends_lib-append port:lz4 \
port:protobuf3-cpp \
port:zlib \
port:zstd
if {[vercmp ${version} >= 8.0.22]} {
2020-10-27 07:13:38 -05:00
set cxxver 17
} else {
set cxxver 14
}
compiler.cxx_standard \
20${cxxver}
2020-07-16 17:56:32 -05:00
# Blacklist old Clangs that implement a deprecated part of C++14 that this
# code is not compatible with. See https://bugs.mysql.com/bug.php?id=98049
# <= 800 doesn't work; >= 900 does; 802 untested
compiler.blacklist-append {clang < 900}
2020-07-16 17:56:32 -05:00
# Allow configure to verify the presence of the protobuf3-cpp headers.
# (protobuf3-cpp requires C++11 or newer.)
configure.env-append \
2020-10-27 07:13:38 -05:00
"CXXCPP=${configure.cxx} -E -std=c++${cxxver}"
2020-07-16 17:56:32 -05:00
# Allow configure to verify the usability of the protobuf3-cpp headers.
configure.cxxflags-append \
2020-10-27 07:13:38 -05:00
-std=c++${cxxver}
2020-07-16 17:56:32 -05:00
2021-06-13 01:07:41 -05:00
configure.args --with-boost=[boost::include_dir] \
2020-07-16 17:56:32 -05:00
--with-protobuf=${prefix}/include \
--with-lz4=${prefix}/include \
--with-zlib=${prefix}/include \
--with-zstd=${prefix}/include \
ac_cv_path_GIT_EXEC_PATH=
platform darwin {
if {(${os.major} == 10 || ${os.major} == 11) && [vercmp ${php.branch} >= 7.1] && [vercmp ${php.branch} < 7.4]} {
# Need to investigate how this was fixed for php 7.4 and
# possibly backport the fix.
# https://bugs.php.net/bug.php?id=76826
known_fail yes
}
}
2020-10-27 07:13:38 -05:00
platform darwin 17 {
# fatal error: 'optional' file not found
compiler.blacklist-append clang
}
}