Files

91 lines
3.9 KiB
Tcl

# -*- 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 legacysupport 1.1
PortGroup php 1.1
# strnlen
legacysupport.newest_darwin_requires_legacy 10
name php-sqlsrv
categories-append databases
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
license MIT
php.branches 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5
php.pecl yes
description Microsoft sqlsrv drivers for PHP
long_description \
The Microsoft Drivers for PHP for SQL Server are PHP extensions \
that allow for the reading and writing of SQL Server data from within PHP scripts. \
The SQLSRV extension provides a procedural interface \
while the PDO_SQLSRV extension implements PDO for accessing data \
in all editions of SQL Server 2012 and later (including Azure SQL DB). \
These drivers rely on the Microsoft ODBC Driver for SQL Server \
to handle the low-level communication with SQL Server. \
*This package contains only the SQLSRV driver.*
long_description ${description}
if {[vercmp ${php.branch} >= 8.3]} {
version 5.13.1
revision 0
checksums rmd160 e7f9975f44992125b1a88308e3da20113eee4252 \
sha256 7c4ea8f25ebbc8999084239e7e0ef75315097e013df0e290fcef76c3d977b9d8 \
size 199271
} elseif {[vercmp ${php.branch} >= 8.1]} {
version 5.12.0
revision 1
checksums rmd160 6b307e55af04354f862eb805ed5761287683bce4 \
sha256 a9ebb880b2a558d3d6684f6e6802c53c5bffa49e1ee60d1473a7124fc9cb72ad \
size 193767
} elseif {[vercmp ${php.branch} >= 8.0]} {
version 5.11.1
revision 1
checksums rmd160 c7b5cbbdd8dd0db1a85666008f12d8ea773e9513 \
sha256 678ab60174be56b09c6916307700e716a4ff266ad53e43990a9d9740d4728463 \
size 192830
} elseif {[vercmp ${php.branch} >= 7.4]} {
version 5.10.1
revision 1
checksums rmd160 071bcabc68b28995482bb9c43b2a6dd9f51f3cee \
sha256 5cdaedb4d8a286343e6b3b99992d9fcb44a8fb69dd02aa5d7bc20eb2ea5e59d2 \
size 193661
} elseif {[vercmp ${php.branch} >= 7.3]} {
version 5.9.0
revision 0
checksums rmd160 6a0e569f7f5575d2db164cac09144ccfb3098b07 \
sha256 0a108e0408e8b984e5ae8bc52824ed32872d72e3a571cd2a5d2b63b200215ab3 \
size 189701
} elseif {[vercmp ${php.branch} >= 7.2]} {
version 5.8.1
revision 0
checksums rmd160 36f76974cf9653273b429d5bf08ad0e7256fe541 \
sha256 39c5c07989d8b53e9ccdd79e8dc5eb6159632be89b1c01e23ea308c8e0332a31 \
size 186879
} elseif {[vercmp ${php.branch} >= 7.1]} {
version 5.6.1
revision 1
checksums rmd160 2ef591fa12fc8829ef7c2736adba10c45c6f9b78 \
sha256 0ab48ae7a9957586f5ec3ea1c19c528951517529078679a0dc3fd9fe83305445 \
size 183396
} elseif {[vercmp ${php.branch} >= 7.0]} {
version 5.3.0
revision 0
checksums rmd160 ab9e9d47f6385fb0a57f489933859def1b6761fc \
sha256 dfcacbaf5ea505d11a057c673544ff923e74c78f16cc95ee57808a44ee20967a \
size 173492
}
if {${subport} ne ${name}} {
depends_lib-append port:msodbcsql
if {[vercmp ${version} < 5.9.0]} {
patchfiles-append \
${php}-deployment_target.patch
}
compiler.cxx_standard 2011
}