From: <jbo...@li...> - 2006-05-05 15:25:27
|
Author: jfr...@jb... Date: 2006-05-05 11:25:23 -0400 (Fri, 05 May 2006) New Revision: 4104 Added: labs/jbossweb/trunk/src/share/native/build/buildphp.sh Log: First version of buildphp.sh (for debian only). Added: labs/jbossweb/trunk/src/share/native/build/buildphp.sh =================================================================== --- labs/jbossweb/trunk/src/share/native/build/buildphp.sh 2006-05-05 15:10:40 UTC (rev 4103) +++ labs/jbossweb/trunk/src/share/native/build/buildphp.sh 2006-05-05 15:25:23 UTC (rev 4104) @@ -0,0 +1,75 @@ +#/bin/sh +# +# JBoss, the OpenSource J2EE webOS +# +# Distributable under LGPL license. +# See terms of license at gnu.org. +# +# Build php and its extensions +# There are windoze binaries +# + +PHPVER=5.1.4 +URL=http://de.php.net/distributions/php-${PHPVER}.tar.gz + +# get and extract php +wget $URL +tar zxf php-${PHPVER}.tar.gz +(cd php-${PHPVER} + ./configure --prefix=$HOME/PHP \ + --with-tsrm-pthreads --enable-shared \ + --enable-embed=shared \ + --with-kerberos \ + --with-imap-ssl \ + --enable-all=shared \ + --enable-gd-native-ttf \ + --with-jpeg-dir \ + --with-png-dir \ + --with-zlib-dir \ + --with-xpm-dir \ + --with-ttf \ + --with-freetype-dir \ + --with-t1lib \ + --with-fbsql=no \ + --with-fdftk=no \ + --with-gmp=no \ + --with-hwapi=no \ + --with-informix=no \ + --with-interbase=no \ + --with-ming=no \ + --with-mssql=no \ + --with-oci8=no \ + --with-pdo-oci=no \ + --with-pdo-dblib=no \ + --with-pdo-firebird=no \ + --with-pdo-odbc=no \ + --with-libedit=no \ + --disable-reflection \ + --with-snmp=no \ + --disable-spl \ + --with-sybase=no \ + --with-sybase-ct=no \ + --with-recode=no \ + \ + --with-msql=no \ + \ + --enable-maintainer-zts +make +make install +) +rm php-${PHPVER}.tar.gz + +# Now build the native part of the php5servlet +#-DZTS is the php Thread Safe Resource Manager +#-DPTHREADS to use pthreads. +# + +(cd ../php5servlet + gcc -c -I $HOME/PHP/include/php/main \ + -I $HOME/PHP/include/php/Zend \ + -I $HOME/PHP/include/php/TSRM \ + -I $HOME/PHP/include/php \ + -DZTS -DPTHREADS \ + php5servlet.c + gcc -shared -o libphp5servlet.so php5servlet.o -L $HOME/PHP/lib -lphp5 +) |