From: <jbo...@li...> - 2006-05-17 17:09:40
|
Author: jfr...@jb... Date: 2006-05-17 13:09:34 -0400 (Wed, 17 May 2006) New Revision: 4288 Modified: labs/jbossweb/trunk/src/share/native/build/buildphp.sh Log: Build on dev13 (Solaris 10 i386 with Sun Studio). Modified: labs/jbossweb/trunk/src/share/native/build/buildphp.sh =================================================================== --- labs/jbossweb/trunk/src/share/native/build/buildphp.sh 2006-05-17 17:06:06 UTC (rev 4287) +++ labs/jbossweb/trunk/src/share/native/build/buildphp.sh 2006-05-17 17:09:34 UTC (rev 4288) @@ -21,6 +21,9 @@ OSSLVER="0.9.8b" OSSLURL=http://www.openssl.org/source/openssl-${OSSLVER}.tar.gz +LPNGVER="1.2.10" +LPNGURL=http://kent.dl.sourceforge.net/sourceforge/libpng/libpng-${LPNGVER}.tar.gz + # Platfrom directory and cache TOOLS=$HOME/`uname -s`_`uname -p`_tools CACHE=`uname -s`_`uname -p`_cache @@ -29,6 +32,7 @@ BUILDXML2=false BUILDPSQL=false BUILDOSSL=false +BUILDLPNG=false CC=gcc COMPILER="" @@ -43,13 +47,14 @@ BASE=$1 URL=$2 VER=$3 -if [ ! -f ${BASE}-${VER}.tar.gz ] +FILE=`basename $URL` +if [ ! -f ${FILE} ] then wget ${URL} fi if [ ! -d ${BASE}-${VER} ] then - gzip -dc ${BASE}-${VER}.tar.gz | tar xvf - + gzip -dc ${FILE} | tar xvf - # Check if patches available. if [ -f patch/${BASE}-${VER}.patch ] then @@ -114,7 +119,6 @@ # Solaris dynamic ld exports the symbols so build shared extensions. EXTTYPE=shared ADDCONF="\ - --enable-all=$EXTTYPE \ --with-libxml-dir=$TOOLS/LIBXML2 \ --with-libexpat-dir=/usr/local \ --with-curl=no \ @@ -158,6 +162,9 @@ --with-tidy=no \ --with-curl \ --with-openssl \ + --with-mysqli \ + --with-mysql \ + --with-pdo-mysql \ " ADDFLAGS="-fPIC" ;; @@ -203,6 +210,9 @@ --with-t1lib=no \ --with-curl \ --with-openssl \ + --with-mysqli \ + --with-mysql \ + --with-pdo-mysql \ " ADDFLAGS="-I $JAVA_HOME/include/linux" ;; @@ -210,14 +220,15 @@ BUILDXML2=true BUILDPSQL=true BUILDOSSL=true + BUILDLPNG=true CC=cc export CC COMPILER=solaris-x86-cc ADDCONF="\ --with-libxml-dir=$TOOLS/LIBXML2 \ --with-jpeg-dir \ - --with-png-dir \ - --with-freetype-dir \ + --with-png-dir=$TOOLS/LPNG \ + --with-freetype-dir=/usr/sfw \ --with-t1lib \ \ --with-xpm-dir=no \ @@ -227,6 +238,8 @@ --with-openssl=shared,$TOOLS/SSL \ --with-openssl-dir=$TOOLS/SSL \ --with-curl=no \ + --with-imap=no \ + --with-pspell=no \ " ;; *) @@ -236,11 +249,24 @@ --with-png-dir \ --with-freetype-dir \ --with-t1lib \ + --with-xpm-dir \ + --with-mysqli \ + --with-mysql \ + --with-pdo-mysql \ " ;; esac # +# build lib png if required +if ${BUILDLPNG} +then + Extract libpng ${LPNGURL} ${LPNGVER} + Build libpng-${LPNGVER} ${TOOLS}/LPNG "" +fi + + +# # build libxml2 if required if ${BUILDXML2} then @@ -308,7 +334,6 @@ --with-gd \ --with-zlib-dir \ --enable-gd-native-ttf \ - --with-xpm-dir \ --with-ttf \ --with-bz2 \ --enable-bcmath \ @@ -321,9 +346,6 @@ --with-gettext \ --with-ldap \ --enable-mbstring \ - --with-mysqli \ - --with-mysql \ - --with-pdo-mysql \ --enable-shmop \ --enable-soap \ --enable-sockets \ @@ -333,6 +355,7 @@ --enable-wddx \ --with-xmlrpc \ \ + --with-ncurses=no \ --with-fbsql=no \ --with-fdftk=no \ --with-gmp=no \ |