[53651] trunk/dports/_resources/port1.0/group/php5extension-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Fri Jul 10 16:52:27 PDT 2009


Revision: 53651
          http://trac.macports.org/changeset/53651
Author:   ryandesign at macports.org
Date:     2009-07-10 16:52:27 -0700 (Fri, 10 Jul 2009)
Log Message:
-----------
php5extension-1.0.tcl: add infrastructure to support building bundled PHP extensions; see #19091

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/php5extension-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/php5extension-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/php5extension-1.0.tcl	2009-07-10 22:53:21 UTC (rev 53650)
+++ trunk/dports/_resources/port1.0/group/php5extension-1.0.tcl	2009-07-10 23:52:27 UTC (rev 53651)
@@ -64,8 +64,10 @@
     
     depends_lib                 path:bin/phpize:php5
     
-    pre-configure {
-        system "cd ${worksrcpath} && ${prefix}/bin/phpize"
+    if {"bundled" != ${source}} {
+        pre-configure {
+            system "cd ${worksrcpath} && ${prefix}/bin/phpize"
+        }
     }
     
     destroot.destdir            INSTALL_ROOT=${destroot}
@@ -123,6 +125,35 @@
         livecheck.check             regexm
         livecheck.url               ${php5extension.homepage}
         livecheck.regex             {>([0-9.]+)</a></th>\s*<[^>]+>stable<}
+    } elseif {"bundled" == ${source}} {
+        homepage                    http://www.php.net/${php5extension.extension}
+        master_sites                http://www.php.net/distributions/ \
+                                    http://it.php.net/distributions/ \
+                                    http://fi.php.net/distributions/ \
+                                    http://de.php.net/distributions/ \
+                                    http://gr.php.net/distributions/ \
+                                    http://fr.php.net/distributions/ \
+                                    http://es.php.net/distributions/ \
+                                    http://se.php.net/distributions/
+        
+        dist_subdir                 php5
+        distname                    php-${version}
+        use_bzip2                   yes
+        
+        configure.args              --disable-cgi \
+                                    --without-pear
+        
+        build.target                build-modules
+        
+        destroot {
+            set extensiondir [php5extension.extension_dir]
+            xinstall -d ${destroot}${extensiondir}
+            xinstall -m 644 ${worksrcpath}/modules/${php5extension.extension}.so ${destroot}${extensiondir}
+        }
+        
+        livecheck.check             regex
+        livecheck.url               http://www.php.net/downloads.php
+        livecheck.regex             get/php-(5\\.\[0-9.\]+)\\.tar
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090710/a015ed25/attachment-0001.html>


More information about the macports-changes mailing list