mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 12:15:32 +00:00
Fix compile.sh things
This commit is contained in:
parent
e999de22d5
commit
bb680e6e67
@ -178,10 +178,11 @@ download_file "http://php.net/get/php-$PHP_VERSION.tar.gz/from/this/mirror" | ta
|
|||||||
mv php-$PHP_VERSION php
|
mv php-$PHP_VERSION php
|
||||||
echo " done!"
|
echo " done!"
|
||||||
|
|
||||||
if [ "$1" == "crosscompile" ] || [ "$1" == "rpi" ]; then
|
if [ "$1" == "crosscompile" ] || [ "$1" == "rpi" ] || [ "$1" == "mac" ]; then
|
||||||
HAVE_LIBEDIT="--without-libedit"
|
HAVE_LIBEDIT="--without-libedit"
|
||||||
else
|
else
|
||||||
#libedit
|
#libedit
|
||||||
|
set +e
|
||||||
echo -n "[libedit] downloading $LIBEDIT_VERSION..."
|
echo -n "[libedit] downloading $LIBEDIT_VERSION..."
|
||||||
download_file "http://download.sourceforge.net/project/libedit/libedit/libedit-$LIBEDIT_VERSION/libedit-$LIBEDIT_VERSION.tar.gz" | tar -zx >> "$DIR/install.log" 2>&1
|
download_file "http://download.sourceforge.net/project/libedit/libedit/libedit-$LIBEDIT_VERSION/libedit-$LIBEDIT_VERSION.tar.gz" | tar -zx >> "$DIR/install.log" 2>&1
|
||||||
echo -n " checking..."
|
echo -n " checking..."
|
||||||
@ -203,6 +204,7 @@ else
|
|||||||
cd ..
|
cd ..
|
||||||
rm -r -f ./libedit
|
rm -r -f ./libedit
|
||||||
echo " done!"
|
echo " done!"
|
||||||
|
set -e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#zlib
|
#zlib
|
||||||
@ -212,8 +214,7 @@ mv zlib-$ZLIB_VERSION zlib
|
|||||||
echo -n " checking..."
|
echo -n " checking..."
|
||||||
cd zlib
|
cd zlib
|
||||||
RANLIB=$RANLIB ./configure --prefix="$DIR/install_data/php/ext/zlib" \
|
RANLIB=$RANLIB ./configure --prefix="$DIR/install_data/php/ext/zlib" \
|
||||||
--static \
|
--static >> "$DIR/install.log" 2>&1
|
||||||
$CONFIGURE_FLAGS >> "$DIR/install.log" 2>&1
|
|
||||||
echo -n " compiling..."
|
echo -n " compiling..."
|
||||||
make -j $THREADS >> "$DIR/install.log" 2>&1
|
make -j $THREADS >> "$DIR/install.log" 2>&1
|
||||||
echo -n " installing..."
|
echo -n " installing..."
|
||||||
@ -285,35 +286,35 @@ else
|
|||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
$CONFIGURE_FLAGS >> "$DIR/install.log" 2>&1
|
$CONFIGURE_FLAGS >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" Makefile
|
sed -i "s#static,$DIR#$DIR#g" Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/Solaris/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/Solaris/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/Win32/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/Win32/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/Win32/cygwin/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/Win32/cygwin/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/Linux/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/Linux/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/Linux/RPM/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/Linux/RPM/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/vms/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/vms/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/AIX/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/AIX/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/AIX/RPM/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/AIX/RPM/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" packages/EPM/Makefile
|
sed -i "s#static,$DIR#$DIR#g" packages/EPM/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" config.status
|
sed -i "s#static,$DIR#$DIR#g" config.status >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" ltmain.sh
|
sed -i "s#static,$DIR#$DIR#g" ltmain.sh >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" lib/Makefile
|
sed -i "s#static,$DIR#$DIR#g" lib/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" docs/examples/Makefile
|
sed -i "s#static,$DIR#$DIR#g" docs/examples/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" docs/examples/Makefile.netware
|
sed -i "s#static,$DIR#$DIR#g" docs/examples/Makefile.netware >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" docs/libcurl/Makefile
|
sed -i "s#static,$DIR#$DIR#g" docs/libcurl/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" docs/Makefile
|
sed -i "s#static,$DIR#$DIR#g" docs/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" tests/data/Makefile
|
sed -i "s#static,$DIR#$DIR#g" tests/data/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" tests/certs/scripts/Makefile
|
sed -i "s#static,$DIR#$DIR#g" tests/certs/scripts/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" tests/certs/Makefile
|
sed -i "s#static,$DIR#$DIR#g" tests/certs/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" tests/Makefile
|
sed -i "s#static,$DIR#$DIR#g" tests/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" tests/unit/Makefile
|
sed -i "s#static,$DIR#$DIR#g" tests/unit/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" tests/libtest/Makefile
|
sed -i "s#static,$DIR#$DIR#g" tests/libtest/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" tests/server/Makefile
|
sed -i "s#static,$DIR#$DIR#g" tests/server/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" src/Makefile
|
sed -i "s#static,$DIR#$DIR#g" src/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" include/curl/Makefile
|
sed -i "s#static,$DIR#$DIR#g" include/curl/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" include/Makefile
|
sed -i "s#static,$DIR#$DIR#g" include/Makefile >> "$DIR/install.log" 2>&1
|
||||||
sed -i "s#static,$DIR/install_data/php/ext/openssl#$DIR/install_data/php/ext/openssl#g" curl-config
|
sed -i "s#static,$DIR#$DIR#g" curl-config >> "$DIR/install.log" 2>&1
|
||||||
echo -n " compiling..."
|
echo -n " compiling..."
|
||||||
make -j $THREADS >> "$DIR/install.log" 2>&1
|
make -j $THREADS >> "$DIR/install.log" 2>&1
|
||||||
echo -n " installing..."
|
echo -n " installing..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user