mirror of
https://github.com/jlengrand/asdf-php.git
synced 2026-03-10 08:01:22 +00:00
Sort libs paths, enable pear/pecl, add --enable-gd (#47)
* Sort libs paths, enable pear/pecl, add some compile flags * update before install
This commit is contained in:
48
bin/install
48
bin/install
@@ -68,7 +68,43 @@ install_composer() {
|
||||
construct_configure_options() {
|
||||
local install_path=$1
|
||||
|
||||
global_config="--prefix=$install_path --sysconfdir=$install_path --with-config-file-path=$install_path --with-config-file-scan-dir=$install_path/conf.d --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-gd-native-ttf --enable-intl --enable-mbregex --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-zip --with-gd --with-mhash --with-xmlrpc --with-curl --without-gmp --without-snmp --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-mysqlnd --enable-pcntl --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data"
|
||||
global_config="--prefix=$install_path \
|
||||
--sysconfdir=$install_path \
|
||||
--with-config-file-path=$install_path \
|
||||
--with-config-file-scan-dir=$install_path/conf.d \
|
||||
--enable-bcmath \
|
||||
--enable-calendar \
|
||||
--enable-dba \
|
||||
--enable-exif \
|
||||
--enable-ftp \
|
||||
--enable-gd-native-ttf \
|
||||
--enable-intl \
|
||||
--enable-mbregex \
|
||||
--enable-mbstring \
|
||||
--enable-shmop \
|
||||
--enable-soap \
|
||||
--enable-sockets \
|
||||
--enable-sysvmsg \
|
||||
--enable-sysvsem \
|
||||
--enable-sysvshm \
|
||||
--enable-wddx \
|
||||
--enable-zip \
|
||||
--with-zip \
|
||||
--with-gd \
|
||||
--enable-gd \
|
||||
--with-mhash \
|
||||
--with-xmlrpc \
|
||||
--with-curl \
|
||||
--without-gmp \
|
||||
--without-snmp \
|
||||
--with-mysql=mysqlnd \
|
||||
--with-mysqli=mysqlnd \
|
||||
--with-pdo-mysql=mysqlnd \
|
||||
--enable-mysqlnd \
|
||||
--enable-pcntl \
|
||||
--enable-fpm \
|
||||
--with-fpm-user=www-data \
|
||||
--with-fpm-group=www-data"
|
||||
|
||||
if [ "$PHP_CONFIGURE_OPTIONS" = "" ]; then
|
||||
local configure_options="$(os_based_configure_options) $global_config"
|
||||
@@ -78,6 +114,8 @@ construct_configure_options() {
|
||||
|
||||
if [ "${PHP_WITHOUT_PEAR:-no}" != "no" ]; then
|
||||
configure_options="$configure_options --without-pear"
|
||||
else
|
||||
configure_options="$configure_options --with-pear"
|
||||
fi
|
||||
|
||||
echo "$configure_options"
|
||||
@@ -204,20 +242,20 @@ os_based_configure_options() {
|
||||
configure_options="$configure_options --without-iconv"
|
||||
fi
|
||||
else
|
||||
local jpeg_path=$(locate libjpeg.so | head -n 1)
|
||||
local libpng_path=$(locate libpng.so | head -n 1)
|
||||
local jpeg_path=$(locate libjpeg.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1)
|
||||
local libpng_path=$(locate libpng.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1)
|
||||
configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext"
|
||||
|
||||
if [ "$jpeg_path" = "" ]; then
|
||||
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING jpeg"
|
||||
else
|
||||
configure_options="$configure_options --with-jpeg-dir=$jpeg_path"
|
||||
configure_options="$configure_options --with-jpeg-dir=$jpeg_path --with-jpeg"
|
||||
fi
|
||||
|
||||
if [ "$libpng_path" = "" ]; then
|
||||
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libpng"
|
||||
else
|
||||
configure_options="$configure_options --with-png-dir=$libpng_path"
|
||||
configure_options="$configure_options --with-png-dir=$libpng_path --with-png"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user