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:
Andreas Franzén
2020-02-25 10:49:36 +01:00
committed by GitHub
parent 0fb46e7f82
commit 5ceaa81504
2 changed files with 44 additions and 6 deletions

View File

@@ -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