| git.druid.rocks | index | druid520 | ports | ports/ | languages/ | php/ | add.sh |
ports/languages/php/add.sh
set -e
git clone --depth 1 https://github.com/php/php-src.git php
cd php
./buildconf
PKG_CONFIG_PATH=$MP_PREFIX/lib/pkgconfig ./configure --prefix=$MP_PREFIX/php-git
make -j$MP_JOBS
make install
mkdir -p $MP_PREFIX/bin
ln -sf $MP_PREFIX/php-git/bin/php $MP_PREFIX/bin/php
ln -sf $MP_PREFIX/php-git/bin/php-config $MP_PREFIX/bin/php-config
ln -sf $MP_PREFIX/php-git/bin/phpize $MP_PREFIX/bin/phpize
make clean || true