2014-12-14 15:37:43 +01:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2014-12-16 16:35:46 +01:00
|
|
|
mkdir -p $HOME$BUILD_SRC_DIR
|
|
|
|
mkdir -p $HOME$BUILD_INSTALL_DIR/conf.d
|
2014-12-14 15:37:43 +01:00
|
|
|
|
2014-12-16 16:35:46 +01:00
|
|
|
git clone --depth=1 --branch=$PHP_TARGET_REF https://github.com/php/php-src $HOME$BUILD_SRC_DIR/php-src
|
|
|
|
|
|
|
|
cd $HOME$BUILD_SRC_DIR/php-src
|
2014-12-14 15:37:43 +01:00
|
|
|
./buildconf --force
|
2014-12-16 16:35:46 +01:00
|
|
|
./configure --quiet \
|
|
|
|
--prefix=$HOME$BUILD_INSTALL_DIR \
|
|
|
|
--with-config-file-scan-dir=$HOME$BUILD_INSTALL_DIR/conf.d \
|
|
|
|
--disable-all \
|
|
|
|
$PHP_CONFIGURE_OPTS \
|
|
|
|
$PHP_EXTENSIONS
|
2014-12-14 15:37:43 +01:00
|
|
|
|
|
|
|
make -j2 --quiet install
|