[20949] trunk/dports/www/php5/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Tue Dec 12 23:06:41 PST 2006
Revision: 20949
http://trac.macosforge.org/projects/macports/changeset/20949
Author: ryandesign at macports.org
Date: 2006-12-12 23:06:41 -0800 (Tue, 12 Dec 2006)
Log Message:
-----------
adjust whitespace
Modified Paths:
--------------
trunk/dports/www/php5/Portfile
Modified: trunk/dports/www/php5/Portfile
===================================================================
--- trunk/dports/www/php5/Portfile 2006-12-13 02:01:29 UTC (rev 20948)
+++ trunk/dports/www/php5/Portfile 2006-12-13 07:06:41 UTC (rev 20949)
@@ -14,17 +14,17 @@
embedded into HTML.
platforms darwin freebsd
-master_sites http://www.php.net/distributions/:release \
- http://it.php.net/distributions/:release \
- http://fi.php.net/distributions/:release \
- http://de.php.net/distributions/:release \
- http://gr.php.net/distributions/:release \
- http://fr.php.net/distributions/:release \
- http://es.php.net/distributions/:release \
- http://se.php.net/distributions/:release \
- http://downloads.php.net/ilia/:rc \
- http://downloads.php.net/jani/:rc
-
+master_sites http://www.php.net/distributions/:release \
+ http://it.php.net/distributions/:release \
+ http://fi.php.net/distributions/:release \
+ http://de.php.net/distributions/:release \
+ http://gr.php.net/distributions/:release \
+ http://fr.php.net/distributions/:release \
+ http://es.php.net/distributions/:release \
+ http://se.php.net/distributions/:release \
+ http://downloads.php.net/ilia/:rc \
+ http://downloads.php.net/jani/:rc
+
distfiles php-${version}.tar.bz2:release
worksrcdir php-${version}
checksums md5 e6029fafcee029edcfa2ceed7a005333 \
@@ -32,74 +32,74 @@
use_bzip2 yes
depends_lib port:libxml2 \
- port:libxslt \
- port:openssl \
- port:tidy \
- port:zlib \
- port:libiconv \
- port:expat \
- port:gettext \
- port:tiff \
- lib:libmhash:mhash \
- port:libmcrypt \
- lib:c-client:cclient \
- port:curl \
- port:jpeg \
- port:libpng \
- port:freetype
+ port:libxslt \
+ port:openssl \
+ port:tidy \
+ port:zlib \
+ port:libiconv \
+ port:expat \
+ port:gettext \
+ port:tiff \
+ lib:libmhash:mhash \
+ port:libmcrypt \
+ lib:c-client:cclient \
+ port:curl \
+ port:jpeg \
+ port:libpng \
+ port:freetype
configure.args \
- --mandir=${prefix}/share/man \
- --infodir=${prefix}/share/info \
- --with-config-file-path=${prefix}/etc \
- --enable-calendar \
- --with-iconv=${prefix} \
- --enable-exif \
- --enable-ftp \
- --enable-wddx\
- --with-zlib=${prefix} \
- --without-mysql \
- --with-libxml-dir=${prefix} \
- --with-gettext=${prefix} \
- --with-libxml-dir=${prefix} \
- --with-xml \
- --with-expat-dir=${prefix} \
- --with-xmlrpc \
- --enable-filepro \
- --enable-bcmath \
- --enable-trans-sid \
- --enable-mbstring \
- --enable-dbx \
- --enable-dba \
- --with-openssl=${prefix} \
- --with-mhash=${prefix} \
- --with-mcrypt=${prefix} \
- --with-tidy=${prefix} \
- --with-xsl=${prefix} \
- --with-imap=${prefix} \
- --with-imap-ssl=${prefix} \
- --with-curl=${prefix} \
- --with-gd \
- --with-jpeg-dir=${prefix} \
- --with-png-dir=${prefix} \
- --enable-gd-native-ttf \
- --without-pear \
- --with-freetype-dir=${prefix}
-
+ --mandir=${prefix}/share/man \
+ --infodir=${prefix}/share/info \
+ --with-config-file-path=${prefix}/etc \
+ --enable-calendar \
+ --with-iconv=${prefix} \
+ --enable-exif \
+ --enable-ftp \
+ --enable-wddx\
+ --with-zlib=${prefix} \
+ --without-mysql \
+ --with-libxml-dir=${prefix} \
+ --with-gettext=${prefix} \
+ --with-libxml-dir=${prefix} \
+ --with-xml \
+ --with-expat-dir=${prefix} \
+ --with-xmlrpc \
+ --enable-filepro \
+ --enable-bcmath \
+ --enable-trans-sid \
+ --enable-mbstring \
+ --enable-dbx \
+ --enable-dba \
+ --with-openssl=${prefix} \
+ --with-mhash=${prefix} \
+ --with-mcrypt=${prefix} \
+ --with-tidy=${prefix} \
+ --with-xsl=${prefix} \
+ --with-imap=${prefix} \
+ --with-imap-ssl=${prefix} \
+ --with-curl=${prefix} \
+ --with-gd \
+ --with-jpeg-dir=${prefix} \
+ --with-png-dir=${prefix} \
+ --enable-gd-native-ttf \
+ --without-pear \
+ --with-freetype-dir=${prefix}
+
configure.env CFLAGS=-I${prefix}/include/c-client
platform darwin 6 {
depends_lib-append lib:libdl:dlcompat
configure.env-append LDFLAGS=-L${prefix}/lib \
- CPPFLAGS="-I${prefix}/include -no-cpp-precomp -DBIND_8_COMPAT" \
- LIBS=-ldl
+ CPPFLAGS="-I${prefix}/include -no-cpp-precomp -DBIND_8_COMPAT" \
+ LIBS=-ldl
configure.args-append --enable-sqlite-utf8
}
platform darwin 7 {
configure.env-append LDFLAGS="-L${prefix}/lib" \
- CPPFLAGS="-I${prefix}/include -no-cpp-precomp" \
- LIBS=-ldl
+ CPPFLAGS="-I${prefix}/include -no-cpp-precomp" \
+ LIBS=-ldl
configure.args-append --enable-sqlite-utf8
}
@@ -110,7 +110,7 @@
platform freebsd {
configure.env-append LDFLAGS=-L${prefix}/lib \
- CPPFLAGS="-I${prefix}/include
+ CPPFLAGS="-I${prefix}/include
}
variant macosx {
@@ -120,7 +120,7 @@
variant apache conflicts apache2 fastcgi {
if { ! [variant_isset macosx] } {
depends_lib-append path:${prefix}/sbin/apxs:apache
- configure.args-append --with-apxs=${prefix}/sbin/apxs
+ configure.args-append --with-apxs=${prefix}/sbin/apxs
} else {
configure.args-append --with-apxs=/usr/sbin/apxs
}
@@ -133,42 +133,42 @@
variant fastcgi conflicts apache apache2 {
configure.args-append --enable-fastcgi \
- --enable-force-cgi-redirect \
- --enable-memory-limit
+ --enable-force-cgi-redirect \
+ --enable-memory-limit
}
variant snmp conflicts macports_snmp {
# This compiles PHP5 with SNMP linked against Apple's included NET-SNMP.
- configure.args-append --with-snmp=/usr
+ configure.args-append --with-snmp=/usr
}
variant macports_snmp conflicts snmp {
# This compiles PHP with SNMP linked against MacPorts' NET-SNMP.
- depends_lib-append port:net-snmp
- configure.args-append --with-snmp=${prefix}
+ depends_lib-append port:net-snmp
+ configure.args-append --with-snmp=${prefix}
}
variant mysql3 conflicts mysql4 mysql5 {
depends_lib-append port:mysql
configure.args-delete --without-mysql
configure.args-append --with-mysql=${prefix} \
- --with-pdo-mysql=${prefix}
+ --with-pdo-mysql=${prefix}
}
variant mysql4 conflicts mysql3 mysql5 {
depends_lib-append port:mysql4
configure.args-delete --without-mysql
configure.args-append --with-mysql=${prefix} \
- --with-pdo-mysql=${prefix}
+ --with-pdo-mysql=${prefix}
}
variant mysql5 conflicts mysql3 mysql4 {
depends_lib-append port:mysql5
configure.args-delete --without-mysql
configure.args-append --with-mysql=${workpath}/mysql5 \
- --with-pdo-mysql=${prefix}/bin/mysql_config5 \
- --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock \
- --with-mysqli=${prefix}/bin/mysql_config5
+ --with-pdo-mysql=${prefix}/bin/mysql_config5 \
+ --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock \
+ --with-mysqli=${prefix}/bin/mysql_config5
post-extract {
file mkdir "${workpath}/mysql5"
file link -symbolic "${workpath}/mysql5/lib" "${prefix}/lib/mysql5"
@@ -179,7 +179,7 @@
variant postgresql {
depends_lib-append port:postgresql81
configure.args-append --with-pgsql=${prefix}/lib/postgresql81/bin \
- --with-pdo-pgsql=${prefix}/lib/postgresql81/bin
+ --with-pdo-pgsql=${prefix}/lib/postgresql81/bin
}
# if no apache/apache2/fastcgi variant is set, we set it (need better default variant management)
@@ -193,20 +193,20 @@
}
variant pear {
- configure.args-delete --without-pear
- configure.args-append --with-pear=${prefix}/lib/php
- destroot.target-append install-pear
- destroot.args-append PHP_PEAR_INSTALL_DIR=${prefix}/lib/php
- post-destroot {
- #nuke pear-stuff in ${destroot}
- system "cd ${destroot} && rm -rf .channels .depdb .depdblock .filemap .lock"
-
- system "if \[ -f ${prefix}/lib/php/.depdblock \]; then rm -f ${destroot}${prefix}/lib/php/.depdblock; fi"
- system "if \[ -f ${prefix}/lib/php/.depdb \]; then rm -f ${destroot}${prefix}/lib/php/.depdb; fi"
- system "if \[ -f ${prefix}/lib/php/.filemap \]; then rm -f ${destroot}${prefix}/lib/php/.filemap; fi"
- system "if \[ -f ${prefix}/lib/php/.lock \]; then rm -f ${destroot}${prefix}/lib/php/.lock; fi"
- system "if \[ -d ${prefix}/lib/php/.channels \]; then rm -rf ${destroot}${prefix}/lib/php/.channels; fi"
- }
+ configure.args-delete --without-pear
+ configure.args-append --with-pear=${prefix}/lib/php
+ destroot.target-append install-pear
+ destroot.args-append PHP_PEAR_INSTALL_DIR=${prefix}/lib/php
+ post-destroot {
+ #nuke pear-stuff in ${destroot}
+ system "cd ${destroot} && rm -rf .channels .depdb .depdblock .filemap .lock"
+
+ system "if \[ -f ${prefix}/lib/php/.depdblock \]; then rm -f ${destroot}${prefix}/lib/php/.depdblock; fi"
+ system "if \[ -f ${prefix}/lib/php/.depdb \]; then rm -f ${destroot}${prefix}/lib/php/.depdb; fi"
+ system "if \[ -f ${prefix}/lib/php/.filemap \]; then rm -f ${destroot}${prefix}/lib/php/.filemap; fi"
+ system "if \[ -f ${prefix}/lib/php/.lock \]; then rm -f ${destroot}${prefix}/lib/php/.lock; fi"
+ system "if \[ -d ${prefix}/lib/php/.channels \]; then rm -rf ${destroot}${prefix}/lib/php/.channels; fi"
+ }
}
destroot.args INSTALL_ROOT=${destroot}
@@ -218,10 +218,10 @@
if { [variant_isset fastcgi] } {
xinstall -m 755 ${worksrcpath}/sapi/cgi/php ${destroot}${prefix}/bin/php-fcgi
}
-
+
#copy module
if { [variant_isset apache] } {
-
+
xinstall -m 755 -d ${destroot}${prefix}/libexec/apache \
${destroot}${prefix}/etc/apache/extras-conf
xinstall -m 755 ${worksrcpath}/libs/libphp5.so ${destroot}${prefix}/libexec/apache/
@@ -234,9 +234,9 @@
xinstall -m 755 ${worksrcpath}/libs/libphp5.so ${destroot}${prefix}/apache2/modules/
xinstall -m 755 -c ${filespath}/mod_php.conf ${destroot}${prefix}/apache2/conf/extras-conf
}
-
+
# file rename ${destroot}${prefix}/etc/pear.conf ${destroot}${prefix}/etc/pear.conf.sample
-
+
#copy php.ini
xinstall -m 755 -d ${destroot}${prefix}/etc
xinstall -m 755 ${workpath}/${worksrcdir}/php.ini-dist ${destroot}${prefix}/etc/php.ini-dist
@@ -246,21 +246,21 @@
post-install {
ui_msg "\nIf this is your first install, you might want"
-
+
if { [variant_isset apache] } {
ui_msg " * enable php in apache :\n"
-
+
ui_msg "cd ${prefix}/libexec/apache"
ui_msg "${prefix}/apache/bin/apxs -a -e -n \"php5\" libphp5.so\n"
ui_msg "* copy ${prefix}/etc/php.ini-dist to ${prefix}/etc/php.ini"
}
-
+
if { [variant_isset apache2] } {
ui_msg "cd ${prefix}/apache2/modules"
ui_msg "${prefix}/apache2/bin/apxs -a -e -n \"php5\" libphp5.so\n"
ui_msg "* copy ${prefix}/etc/php.ini-dist to ${prefix}/etc/php.ini"
}
-
+
# ui_msg "* copy ${prefix}/etc/pear.conf.sample to ${prefix}/etc/pear.conf"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061212/c2c91011/attachment.html
More information about the macports-changes
mailing list