[90669] users/ryandesign/ports/lang/php54

ryandesign at macports.org ryandesign at macports.org
Sun Mar 11 18:20:25 PDT 2012


Revision: 90669
          http://trac.macports.org/changeset/90669
Author:   ryandesign at macports.org
Date:     2012-03-11 18:20:25 -0700 (Sun, 11 Mar 2012)
Log Message:
-----------
php54: add bundled extensions

Modified Paths:
--------------
    users/ryandesign/ports/lang/php54/Portfile

Added Paths:
-----------
    users/ryandesign/ports/lang/php54/files/patch-iODBC.diff
    users/ryandesign/ports/lang/php54/files/patch-unixODBC.diff

Modified: users/ryandesign/ports/lang/php54/Portfile
===================================================================
--- users/ryandesign/ports/lang/php54/Portfile	2012-03-12 01:19:52 UTC (rev 90668)
+++ users/ryandesign/ports/lang/php54/Portfile	2012-03-12 01:20:25 UTC (rev 90669)
@@ -44,7 +44,11 @@
     
     depends_build       port:pkgconfig
     
-    depends_lib         path:bin/gsed:gsed \
+    if {${subport} != ${php}} {
+        depends_lib     port:${php}
+    }
+    
+    depends_lib-append  path:bin/gsed:gsed \
                         port:libiconv \
                         port:libtool \
                         port:libxml2 \
@@ -140,9 +144,18 @@
     if {${subport} != ${php}} {
         notes-append "If this is your first install, you need to enable ${subport} in your web server."
     }
+    
+} else {
+    
+    ### Bundled extensions ###
+    
+    PortGroup               php 1.0
+    
 }
 
-if {${subport} == ${php}} {
+### CLI SAPI ###
+
+subport ${php} {
     configure.args-delete   --disable-cli
     configure.args-append   --enable-cli
     
@@ -182,12 +195,14 @@
     livecheck.type          regex
     livecheck.url           ${homepage}downloads.php
     livecheck.regex         get/php-(5\\.\[0-9.\]+)\\.tar
-} else {
-    depends_lib-append      port:${php}
-    
+}
+
+if {${subport} != ${php}} {
     livecheck.type          none
 }
 
+### Apache 2 handler SAPI ###
+
 subport ${php}-apache2handler {
     description             ${php} Apache 2 Handler SAPI
     
@@ -229,6 +244,8 @@
 "
 }
 
+### CGI SAPI ###
+
 subport ${php}-cgi {
     description             ${php} CGI SAPI
     
@@ -242,6 +259,8 @@
     destroot.target         install-cgi
 }
 
+### FPM SAPI ###
+
 subport ${php}-fpm {
     description             ${php} FPM SAPI
     
@@ -292,3 +311,570 @@
 "
     }
 }
+
+### Bundled extensions ###
+
+subport ${php}-calendar {
+    description             a PHP extension for converting between different \
+                            calendar formats
+    
+    long_description        ${description}
+}
+
+subport ${php}-curl {
+    categories-append       net www
+    
+    description             a PHP interface to the curl library, which lets you \
+                            download files from servers with a variety of protocols
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:curl
+    
+    configure.args-append   --with-curl=${prefix}
+}
+
+subport ${php}-dba {
+    categories-append       databases
+    
+    description             a PHP interface for accessing DBM databases such as \
+                            BerkeleyDB
+    
+    long_description        ${description}
+    
+    variant gdbm conflicts qdbm description {Add GDBM support} {
+        depends_lib-append      port:gdbm
+        configure.args-append   --with-gdbm=${prefix}
+    }
+    
+    variant qdbm conflicts gdbm description {Add QDBM support} {
+        depends_lib-append      port:qdbm
+        configure.args-append   --with-qdbm=${prefix}
+    }
+}
+
+subport ${php}-exif {
+    categories-append       graphics
+    
+    description             a PHP interface to the EXIF image metadata functions
+    
+    long_description        ${description}
+}
+
+subport ${php}-ftp {
+    categories-append       net
+    
+    description             a PHP extension for accessing file servers using the \
+                            File Transfer Protocol
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:openssl
+    
+    configure.args-append   --with-openssl-dir=${prefix}
+}
+
+subport ${php}-gd {
+    categories-append       graphics
+    
+    description             a PHP interface to the gd library
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:freetype \
+                            port:jpeg \
+                            port:libpng \
+                            port:zlib
+    
+    configure.args-append   --with-freetype-dir=${prefix} \
+                            --with-jpeg-dir=${prefix} \
+                            --with-png-dir=${prefix} \
+                            --with-zlib-dir=${prefix} \
+                            --enable-gd-native-ttf
+    
+    variant t1lib description {Add PostScript Type 1 font support with t1lib} {
+        depends_lib-append      port:t1lib
+        configure.args-append   --with-t1lib=${prefix}
+    }
+}
+
+subport ${php}-gettext {
+    categories-append       devel
+    
+    description             a PHP interface to the gettext natural language \
+                            support functions
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:gettext
+    
+    configure.args-append   --with-gettext=${prefix}
+}
+
+subport ${php}-gmp {
+    categories-append       devel math
+    
+    description             a PHP interface to GMP, the GNU multiprocessing \
+                            library through which you can work with \
+                            arbitrary-length integers
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:gmp
+    
+    configure.args-append   --with-gmp=${prefix}
+}
+
+subport ${php}-iconv {
+    categories-append       textproc
+    
+    description             a PHP interface to the libiconv character encoding \
+                            conversion functions
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:libiconv
+    
+    configure.args-append   --with-iconv=${prefix}
+}
+
+subport ${php}-imap {
+    categories-append       mail
+    
+    description             a PHP interface to the IMAP protocol
+    
+    long_description        ${description}
+    
+    depends_build-append    port:cclient
+    
+    configure.args-append   --with-imap=${prefix} \
+                            --with-imap-ssl=${prefix}
+    
+    platform macosx {
+        configure.args-append   --with-kerberos=/usr
+    }
+}
+
+subport ${php}-intl {
+    categories-append       devel
+    
+    description             internationalization extension for PHP
+    
+    long_description        Internationalization extension implements ICU \
+                            library functionality in PHP.
+    
+    depends_lib-append      port:icu
+}
+
+subport ${php}-ldap {
+    categories-append       databases
+    
+    description             a PHP interface to LDAP
+    
+    long_description        ${name} is ${description}, the Lightweight Directory \
+                            Access Protocol, which is used to access Directory \
+                            Servers.
+    
+    depends_lib-append      port:openldap \
+                            port:cyrus-sasl2
+    
+    configure.args-append   --with-ldap=${prefix} \
+                            --with-ldap-sasl=${prefix}
+}
+
+subport ${php}-mbstring {
+    categories-append       textproc
+    
+    description             a PHP extension for manipulating strings in multibyte \
+                            encodings
+    
+    long_description        ${description}
+}
+
+subport ${php}-mcrypt {
+    categories-append       security
+    
+    description             a PHP interface to the mcrypt library, which offers \
+                            a wide variety of algorithms
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:libmcrypt \
+                            port:libtool
+    
+    configure.args-append   --with-mcrypt=${prefix}
+}
+
+subport ${php}-mssql {
+    php.extensions          mssql pdo_dblib
+    
+    categories-append       databases
+    
+    description             a PHP interface to MSSQL using FreeTDS, including \
+                            the mssql and pdo_dblib extensions
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:freetds
+    
+    configure.args-append   --with-mssql=${prefix} \
+                            --with-pdo-dblib=${prefix}
+}
+
+subport ${php}-mysql {
+    php.extensions          mysql mysqli pdo_mysql
+    
+    categories-append       databases
+    
+    description             a PHP interface to MySQL databases, including the \
+                            mysql, mysqli and pdo_mysql extensions
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:zlib
+    
+    configure.args-append   --with-zlib-dir=${prefix}
+    
+    variant mysqlnd conflicts mysql4 mysql5 description {Use MySQL Native Driver} {
+        configure.args-append   --with-mysql=mysqlnd \
+                                --with-mysqli=mysqlnd \
+                                --with-pdo-mysql=mysqlnd
+        
+        configure.cppflags-append   -I${worksrcpath}
+        
+        post-install {
+            set phpini ${prefix}/etc/${php}/php.ini
+            if {1} {
+                ui_msg "To use mysqlnd with a local MySQL server, edit ${phpini} and set"
+                ui_msg "mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket"
+                ui_msg "to ${prefix}/var/run/mysql5/mysqld.sock"
+            }
+        }
+    }
+    
+    variant mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} {
+        depends_lib-append      port:mysql4
+        
+        configure.args-append   --with-mysql=${prefix} \
+                                --with-pdo-mysql=${prefix}
+    }
+    
+    variant mysql5 conflicts mysql4 mysqlnd description {Use MySQL 5 libraries} {
+        depends_lib-append      path:bin/mysql_config5:mysql5
+        
+        post-extract {
+            file mkdir ${workpath}/mysql5
+            file link -symbolic ${workpath}/mysql5/lib ${prefix}/lib/mysql5
+            file link -symbolic ${workpath}/mysql5/include ${prefix}/include/mysql5
+        }
+        
+        configure.args-append   --with-mysql=${workpath}/mysql5 \
+                                --with-mysqli=${prefix}/bin/mysql_config5 \
+                                --with-pdo-mysql=${prefix}/bin/mysql_config5 \
+                                --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock
+    }
+    
+    if {![variant_isset mysql4] && ![variant_isset mysql5]} {
+        default_variants +mysqlnd
+    }
+}
+
+subport ${php}-odbc {
+    php.extensions          odbc pdo_odbc
+    
+    categories-append       databases
+    
+    description             a PHP interface for accessing databases via Open \
+                            DataBase Connectivity (ODBC)
+    
+    long_description        ${description}
+    
+    variant iodbc conflicts unixodbc description {Use iODBC} {
+        depends_lib-append      port:libiodbc
+        
+        patchfiles-append       patch-iODBC.diff
+        
+        configure.args-append   --with-iODBC=${prefix} \
+                                --with-pdo-odbc=iODBC,${prefix}
+    }
+    
+    variant unixodbc conflicts iodbc description {Use unixODBC} {
+        depends_lib-append      port:unixODBC
+        
+        patchfiles-append       patch-unixODBC.diff
+        
+        configure.args-append   --with-unixODBC=${prefix} \
+                                --with-pdo-odbc=unixODBC,${prefix}
+    }
+    
+    if {![variant_isset iodbc] && ![variant_isset unixodbc]} {
+        default_variants +unixodbc
+    }
+}
+
+subport ${php}-openssl {
+    categories-append       devel security
+    
+    description             a PHP interface to OpenSSL signature-generation \
+                            and -verification and data-encryption and \
+                            -decryption functions
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:openssl
+    
+    post-extract {
+        move ${build.dir}/config0.m4 ${build.dir}/config.m4
+    }
+    
+    configure.args-append   --with-openssl=${prefix}
+    
+    platform macosx {
+        configure.args-append   --with-kerberos=/usr
+    }
+}
+
+subport ${php}-oracle {
+    php.extensions          oci8 pdo_oci
+    
+    categories-append       databases
+    
+    description             a PHP interface to Oracle, including the oci8 and \
+                            pdo_oci extensions
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:oracle-instantclient
+    
+    configure.args-append   --with-oci8=instantclient,${prefix}/lib/oracle \
+                            --with-pdo-oci=instantclient,${prefix}/lib/oracle,10.1
+}
+
+subport ${php}-pcntl {
+    categories-append       sysutils
+    
+    description             a PHP interface to Unix-style process creation, \
+                            program execution, signal handling and process \
+                            termination functions
+    
+    long_description        ${description}
+    
+    notes "
+${subport} should not be enabled within a web server environment.\
+Unexpected results may occur if any process control functions are used within\
+a web server environment.
+"
+}
+
+subport ${php}-posix {
+    categories-append       sysutils
+    
+    description             a PHP interface to additional POSIX functions
+    
+    long_description        a PHP interface to those functions defined in the \
+                            IEEE 1003.1 (POSIX.1) standards document which are \
+                            not accessible through other means
+}
+
+subport ${php}-postgresql {
+    php.extensions          pgsql pdo_pgsql
+    
+    categories-append       databases
+    
+    homepage                http://www.php.net/pgsql
+    
+    description             a PHP interface to PostgreSQL, including \
+                            the pgsql and pdo_pgsql extensions
+    
+    long_description        ${description}
+    
+    variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 postgresql91 description {Use PostgreSQL 8.2 libraries} {
+        depends_lib-append      port:postgresql82
+        
+        configure.args-append   --with-pgsql=${prefix}/lib/postgresql82/bin \
+                                --with-pdo-pgsql=${prefix}/lib/postgresql82/bin
+    }
+    
+    variant postgresql83 conflicts postgresql82 postgresql84 postgresql90 postgresql91 description {Use PostgreSQL 8.3 libraries} {
+        depends_lib-append      port:postgresql83
+        
+        configure.args-append   --with-pgsql=${prefix}/lib/postgresql83/bin \
+                                --with-pdo-pgsql=${prefix}/lib/postgresql83/bin
+    }
+    
+    variant postgresql84 conflicts postgresql82 postgresql83 postgresql90 postgresql91 description {Use PostgreSQL 8.4 libraries} {
+        depends_lib-append      port:postgresql84
+        
+        configure.args-append   --with-pgsql=${prefix}/lib/postgresql84/bin \
+                                --with-pdo-pgsql=${prefix}/lib/postgresql84/bin
+    }
+    
+    variant postgresql90 conflicts postgresql82 postgresql83 postgresql84 postgresql91 description {Use PostgreSQL 9.0 libraries} {
+        depends_lib-append      port:postgresql90
+        
+        configure.args-append   --with-pgsql=${prefix}/lib/postgresql90/bin \
+                                --with-pdo-pgsql=${prefix}/lib/postgresql90/bin
+    }
+    
+    variant postgresql91 conflicts postgresql82 postgresql83 postgresql84 postgresql90 description {Use PostgreSQL 9.1 libraries} {
+        depends_lib-append      port:postgresql91
+        
+        configure.args-append   --with-pgsql=${prefix}/lib/postgresql91/bin \
+                                --with-pdo-pgsql=${prefix}/lib/postgresql91/bin
+    }
+    
+    if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91]} {
+        default_variants +postgresql91
+    }
+}
+
+subport ${php}-pspell {
+    categories-append       textproc
+    
+    description             a PHP interface to the aspell library, which lets you \
+                            check spelling and offer spelling suggestions
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:aspell
+    
+    configure.args-append   --with-pspell=${prefix}
+}
+
+subport ${php}-snmp {
+    categories-append       sysutils
+    
+    description             a PHP interface to the Simple Network Management \
+                            Protocol (SNMP)
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:net-snmp
+    
+    configure.args-append   --with-snmp=${prefix}
+}
+
+subport ${php}-soap {
+    categories-append       net
+    
+    description             a PHP extension for writing SOAP clients and servers
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:libxml2
+    
+    configure.args-append   --with-libxml-dir=${prefix}
+}
+
+subport ${php}-sockets {
+    categories-append       net
+    
+    description             a PHP interface to BSD socket communication \
+                            functions
+    
+    long_description        ${description}
+}
+
+subport ${php}-sqlite {
+    php.extensions          sqlite3 pdo_sqlite
+    
+    categories-append       databases
+    
+    description             a PHP interface to SQLite, including the sqlite3 \
+                            and pdo_sqlite extensions
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:sqlite3
+    
+    post-extract {
+        move ${worksrcpath}/ext/sqlite3/config0.m4 ${worksrcpath}/ext/sqlite3/config.m4
+    }
+    
+    configure.args-append   --with-sqlite3=${prefix} \
+                            --with-pdo-sqlite=${prefix} \
+                            --enable-sqlite-utf8
+}
+
+subport ${php}-tidy {
+    categories-append       www
+    
+    description             a PHP interface to tidy, the HTML cleaning and \
+                            repair utility
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:tidy
+    
+    configure.args-append   --with-tidy=${prefix}
+}
+
+subport ${php}-wddx {
+    categories-append       textproc
+    
+    description             a PHP interface to Web Distributed Data Exchange
+    
+    long_description        ${description}
+    
+    depends_build-append    port:expat \
+                            port:libxml2
+    
+    configure.args-append   --with-libexpat-dir=${prefix} \
+                            --with-libxml-dir=${prefix}
+}
+
+subport ${php}-xmlrpc {
+    categories-append       textproc
+    
+    description             a PHP extension for writing XML-RPC clients and servers
+    
+    long_description        ${description}
+    
+    depends_build-append    port:libiconv \
+                            port:libxml2
+    
+    depends_lib-append      port:expat
+    
+    configure.args-append   --with-iconv-dir=${prefix} \
+                            --with-libexpat-dir=${prefix} \
+                            --with-libxml-dir=${prefix}
+    
+    pre-configure {
+        configure.cppflags-append [exec ${prefix}/bin/xml2-config --cflags]
+    }
+}
+
+subport ${php}-xsl {
+    categories-append       textproc
+    
+    description             a PHP interface to libxslt, which implements the XSL \
+                            standard and lets you perform XSL transformations
+    
+    long_description        ${description}
+    
+    depends_lib-append      port:libxslt
+    
+    configure.args-append   --with-xsl=${prefix}
+    
+    configure.cppflags-append   -I${prefix}/include/${php}/php/ext/dom
+}
+
+subport ${php}-zip {
+    categories-append       archivers
+    
+    description             PHP zip functions
+    
+    long_description        ${description}
+    
+    depends_build-append    port:pcre
+    
+    depends_lib-append      port:zlib
+}
+
+if {${subport} != "${php}" && ${subport} != "${php}-apache2handler" && ${subport} != "${php}-cgi" && ${subport} != "${php}-fpm"} {
+    php.rootname [regsub "^${php}-" ${subport} ""]
+    if {![info exists php.extensions]} {
+        php.extensions ${php.rootname}
+    }
+    php.setup ${php.extensions} ${version}
+}

Copied: users/ryandesign/ports/lang/php54/files/patch-iODBC.diff (from rev 90635, trunk/dports/php/php5-odbc/files/patch-iODBC.diff)
===================================================================
--- users/ryandesign/ports/lang/php54/files/patch-iODBC.diff	                        (rev 0)
+++ users/ryandesign/ports/lang/php54/files/patch-iODBC.diff	2012-03-12 01:20:25 UTC (rev 90669)
@@ -0,0 +1,18 @@
+--- ext/odbc/config.m4.orig	2007-07-31 08:02:00.000000000 -0500
++++ ext/odbc/config.m4	2010-08-05 21:21:54.000000000 -0500
+@@ -99,6 +99,7 @@
+ dnl
+ dnl configure options
+ dnl
++:<<'MACPORTS_DISABLED'
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(adabas,,
+ [  --with-adabas[=DIR]     Include Adabas D support [/usr/local]])
+@@ -363,6 +364,7 @@
+     AC_MSG_RESULT([$ext_ouput])
+   fi
+ fi
++MACPORTS_DISABLED
+ 
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(iodbc,,

Copied: users/ryandesign/ports/lang/php54/files/patch-unixODBC.diff (from rev 90635, trunk/dports/php/php5-odbc/files/patch-unixODBC.diff)
===================================================================
--- users/ryandesign/ports/lang/php54/files/patch-unixODBC.diff	                        (rev 0)
+++ users/ryandesign/ports/lang/php54/files/patch-unixODBC.diff	2012-03-12 01:20:25 UTC (rev 90669)
@@ -0,0 +1,18 @@
+--- ext/odbc/config.m4.orig	2007-07-31 08:02:00.000000000 -0500
++++ ext/odbc/config.m4	2009-12-12 20:32:00.000000000 -0600
+@@ -99,6 +99,7 @@
+ dnl
+ dnl configure options
+ dnl
++:<<'MACPORTS_DISABLED'
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(adabas,,
+ [  --with-adabas[=DIR]     Include Adabas D support [/usr/local]])
+@@ -404,6 +405,7 @@
+     AC_MSG_RESULT([$ext_output])
+   fi
+ fi
++MACPORTS_DISABLED
+ 
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(unixODBC,,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120311/18d7e5c3/attachment-0001.html>


More information about the macports-changes mailing list