Fixed Mac compilation

This commit is contained in:
Shoghi Cervantes 2013-05-29 14:03:39 +02:00
parent f6ab39a526
commit 2271d45fd9

View File

@ -93,33 +93,38 @@ cd ..
rm -r -f ./zlib rm -r -f ./zlib
echo " done!" echo " done!"
#curl if [[ "$(uname -s)" == "Darwin" ]]; then
echo -n "[cURL] downloading $CURL_VERSION..." WITH_CURL="--with-curl=shared,/usr/local"
wget https://github.com/bagder/curl/archive/$CURL_VERSION.tar.gz --no-check-certificate -q -O - | tar -zx >> "$DIR/install.log" 2>&1 else
mv curl-$CURL_VERSION curl #curl
echo -n " checking..." echo -n "[cURL] downloading $CURL_VERSION..."
cd curl wget https://github.com/bagder/curl/archive/$CURL_VERSION.tar.gz --no-check-certificate -q -O - | tar -zx >> "$DIR/install.log" 2>&1
./buildconf >> "$DIR/install.log" 2>&1 mv curl-$CURL_VERSION curl
./configure --enable-ipv6 \ echo -n " checking..."
--disable-dict \ cd curl
--disable-file \ ./buildconf >> "$DIR/install.log" 2>&1
--disable-gopher \ ./configure --enable-ipv6 \
--disable-imap \ --disable-dict \
--disable-pop3 \ --disable-file \
--disable-rtsp \ --disable-gopher \
--disable-smtp \ --disable-imap \
--disable-telnet \ --disable-pop3 \
--disable-tftp \ --disable-rtsp \
--prefix="$DIR/install_data/php/ext/curl" \ --disable-smtp \
--disable-shared >> "$DIR/install.log" 2>&1 --disable-telnet \
echo -n " compiling..." --disable-tftp \
make -j $THREADS >> "$DIR/install.log" 2>&1 --prefix="$DIR/install_data/php/ext/curl" \
echo -n " installing..." --disable-shared >> "$DIR/install.log" 2>&1
make install >> "$DIR/install.log" 2>&1 echo -n " compiling..."
echo -n " cleaning..." make -j $THREADS >> "$DIR/install.log" 2>&1
cd .. echo -n " installing..."
rm -r -f ./curl make install >> "$DIR/install.log" 2>&1
echo " done!" echo -n " cleaning..."
cd ..
rm -r -f ./curl
echo " done!"
WITH_CURL="--with-curl=\"$DIR/install_data/php/ext/curl\""
fi
#pthreads #pthreads
echo -n "[PHP pthreads] downloading $PTHREADS_VERSION..." echo -n "[PHP pthreads] downloading $PTHREADS_VERSION..."
@ -151,7 +156,7 @@ rm -f ./configure >> "$DIR/install.log" 2>&1
./buildconf --force >> "$DIR/install.log" 2>&1 ./buildconf --force >> "$DIR/install.log" 2>&1
./configure $OPTIMIZATION--prefix="$DIR/php5" \ ./configure $OPTIMIZATION--prefix="$DIR/php5" \
--exec-prefix="$DIR/php5" \ --exec-prefix="$DIR/php5" \
--with-curl="$DIR/install_data/php/ext/curl" \ "$WITH_CURL" \
--with-zlib="$DIR/install_data/php/ext/zlib" \ --with-zlib="$DIR/install_data/php/ext/zlib" \
"$HAVE_LIBEDIT" \ "$HAVE_LIBEDIT" \
--disable-libxml \ --disable-libxml \