Ticket #20119: php5.diff

File php5.diff, 5.8 KB (added by simon+macports@…, 15 years ago)
  • (a) Portfile-1.txt vs. (b) (clipboard)

    a b  
    44
    55name                    php5
    66epoch                   1
    7 version                 5.2.10
     7version                 5.3.0
    88revision                1
    99set major               [lindex [split ${version} .] 0]
    1010set my_name             php${major}
    1111dist_subdir             ${my_name}
    1212categories              lang php www
    1313maintainers             ryandesign jwa
    14 homepage                http://www.php.net/
     14homepage                http://qa.php.net/
    1515distname                php-${version}
    16 use_bzip2               yes
     16use_bzip2               no
    1717platforms               darwin freebsd
    1818use_parallel_build      yes
    1919
     
    2626    be used for command-line scripting.
    2727
    2828master_sites \
    29     ${homepage}distributions/ \
    30     http://it.php.net/distributions/ \
    31     http://fi.php.net/distributions/ \
    32     http://de.php.net/distributions/ \
    33     http://gr.php.net/distributions/ \
    34     http://fr.php.net/distributions/ \
    35     http://es.php.net/distributions/ \
    36     http://se.php.net/distributions/
     29    http://downloads.php.net/ilia/ \
     30    http://downloads.php.net/johannes/
    3731
    3832checksums \
    39     md5     15c7b5a87f57332d6fc683528e28247b \
    40     sha1    9a287e2791d28928fb1ee1a1167290c5005feccd \
    41     rmd160  9a9ec823eda9d6b3c085967e7a71f776071fc78f
     33    md5     f4905eca4497da3f0beb5c96863196b4 \
     34    sha1    a4bc5f2bf9d42f5932d8467fba4b0024d957adf4 \
     35    rmd160  ce5abd751a0cbf4e3745376053eb2053c4b56339
    4236
    4337depends_build \
    4438    port:pkgconfig \
     
    6458    port:libpng \
    6559    port:freetype
    6660
    67 patchfiles \
    68     patch-ext-date-php_date.c.diff \
    69     patch-bind.diff
    70 
    7161use_autoconf            yes
    7262autoconf.cmd            ${prefix}/bin/autoconf213
    7363
     
    10393    --with-openssl=${prefix} \
    10494    --with-mhash=${prefix} \
    10595    --with-mcrypt=${prefix} \
    106     --with-mime-magic \
    10796    --with-xsl=${prefix} \
    10897    --with-curl=${prefix} \
    10998    --with-pcre-regex=${prefix} \
     
    148137variant apache conflicts apache2 no_web description {Add Apache 1 web server module} {
    149138    if { ! [variant_isset macosx] } {
    150139        depends_lib-append \
    151             path:sbin/apxs:apache
     140            port:apache
    152141        configure.args-append \
    153142            --with-apxs=${prefix}/sbin/apxs
    154143    } else {
     
    168157    }
    169158    destroot.violate_mtree yes
    170159    depends_lib-append \
    171         path:apache2/bin/apxs:apache2
     160        port:apache2
    172161    configure.args-append \
    173162        --with-apxs2=${prefix}/apache2/bin/apxs
    174163}
     
    200189variant imap description {enable operation with IMAP protocol} {
    201190    depends_lib-append \
    202191        port:cclient
     192    configure.cppflags-append \
     193        -I${prefix}/include/c-client
    203194    configure.args-append \
    204195        --with-imap=${prefix} \
    205196        --with-imap-ssl=${prefix}
     
    250241        --with-snmp=${prefix}
    251242}
    252243
    253 variant mysql3 conflicts mysql4 mysql5 description {build MySQL 3 support} {
     244variant mysql3 conflicts mysql4 mysql5 mysqlnd description {build MySQL 3 support} {
    254245    depends_lib-append \
    255246        port:mysql3
    256247    configure.args-delete \
     
    260251        --with-pdo-mysql=${prefix}
    261252}
    262253
    263 variant mysql4 conflicts mysql3 mysql5 description {build MySQL 4 support} {
     254variant mysql4 conflicts mysql3 mysql5 mysqlnd description {build MySQL 4 support} {
    264255    depends_lib-append \
    265256        port:mysql4
    266257    configure.args-delete \
     
    270261        --with-pdo-mysql=${prefix}
    271262}
    272263
    273 variant mysql5 conflicts mysql3 mysql4 description {build MySQL 5 support} {
     264variant mysql5 conflicts mysql3 mysql4 mysqlnd description {build MySQL 5 support} {
    274265    depends_lib-append \
    275266        path:bin/mysql_config5:mysql5
    276267    configure.args-delete \
     
    287278    }
    288279}
    289280
     281variant mysqlnd conflicts mysql3 mysql4 mysql5 description {build MySQL Native Driver support for MySQL 4.1 and up} {
     282    configure.args-delete \
     283        --without-mysql
     284    configure.args-append \
     285        --with-mysql=mysqlnd \
     286        --with-mysqli=mysqlnd \
     287        --with-pdo-mysql=mysqlnd
     288}
     289
    290290variant oracle description {Add Oracle oci8 database functions with the Oracle Instant Client} {
    291291    patchfiles-append \
    292292        patch-ext-pdo_oci-config.m4.diff
     
    454454    # Copy the default php.ini files.
    455455    xinstall -m 755 -d ${destroot}${phpinidir}
    456456    xinstall -m 644 -W ${worksrcpath} \
    457         php.ini-dist \
    458         php.ini-recommended \
     457        php.ini-development \
     458        php.ini-production \
    459459        ${destroot}${phpinidir}
    460460}
    461461
     
    467467    }
    468468    if {![file exists ${phpinidir}/php.ini]} {
    469469        ui_msg "To customize php, copy"
    470         ui_msg "${phpinidir}/php.ini-dist (if this is a development server) or"
    471         ui_msg "${phpinidir}/php.ini-recommended (if this is a production server) to"
     470        ui_msg "${phpinidir}/php.ini-development (if this is a development server) or"
     471        ui_msg "${phpinidir}/php.ini-production (if this is a production server) to"
    472472        ui_msg "${phpinidir}/php.ini and then make changes."
    473473    } else {
    474474        ui_msg "You may need to update your php.ini for any changes that have been made"
    475475        ui_msg "in this version of php. Compare ${phpinidir}/php.ini with"
    476         ui_msg "${phpinidir}/php.ini-dist (if this is a development server) or"
    477         ui_msg "${phpinidir}/php.ini-recommended (if this is a production server)."
     476        ui_msg "${phpinidir}/php.ini-development (if this is a development server) or"
     477        ui_msg "${phpinidir}/php.ini-production (if this is a production server)."
    478478    }
    479479   
    480480    if {![variant_isset no_web]} {
     
    506506test.run                yes
    507507
    508508livecheck.check         regex
    509 livecheck.url           ${homepage}downloads.php
    510 livecheck.regex         get/php-(5\\.\[0-9.\]+)\\.tar
     509livecheck.url           ${homepage}
     510livecheck.regex         php-?(5\\.\[0-9.\]+(?:(?:alpha|beta|RC)\\d+|-latest))\\.tar