mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 09:55:37 +08:00
add libiconv compiler
This commit is contained in:
@@ -111,7 +111,7 @@ function check_in_configure() {
|
|||||||
7.3.*|7.2.*) php_configure="$php_configure --enable-hash" ;;
|
7.3.*|7.2.*) php_configure="$php_configure --enable-hash" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
iconv) php_configure="$php_configure --with-iconv" ;;
|
iconv) php_configure="$php_configure --with-iconv=/usr" ;;
|
||||||
inotify) php_configure="$php_configure --enable-inotify" ;;
|
inotify) php_configure="$php_configure --enable-inotify" ;;
|
||||||
json)
|
json)
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|||||||
@@ -43,8 +43,20 @@ function do_curl_compiler() {
|
|||||||
echo "curl compiled!"
|
echo "curl compiled!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function do_iconv_compiler() {
|
||||||
|
cd $self_dir/source/libiconv-* && \
|
||||||
|
./configure --enable-static=yes --prefix=/usr && \
|
||||||
|
make -j$(cat /proc/cpuinfo | grep processor | wc -l) && \
|
||||||
|
make install && \
|
||||||
|
echo "libiconv compiled!"
|
||||||
|
}
|
||||||
|
|
||||||
if [ ! -f "$self_dir/source/.deps-compiled" ]; then
|
if [ ! -f "$self_dir/source/.deps-compiled" ]; then
|
||||||
do_xml_compiler && do_curl_compiler && do_libzip_compiler && touch "$self_dir/source/.deps-compiled"
|
do_xml_compiler && \
|
||||||
|
do_curl_compiler && \
|
||||||
|
do_libzip_compiler && \
|
||||||
|
do_iconv_compiler && \
|
||||||
|
touch "$self_dir/source/.deps-compiled"
|
||||||
else
|
else
|
||||||
echo "Skip compilation for dependencies"
|
echo "Skip compilation for dependencies"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -52,5 +52,10 @@
|
|||||||
"version": "1.8.0",
|
"version": "1.8.0",
|
||||||
"link": "https://mirrors.zhamao.xin/library/libzip/libzip-{version}.tar.gz",
|
"link": "https://mirrors.zhamao.xin/library/libzip/libzip-{version}.tar.gz",
|
||||||
"link_2": "https://libzip.org/download/libzip-{version}.tar.gz"
|
"link_2": "https://libzip.org/download/libzip-{version}.tar.gz"
|
||||||
|
},
|
||||||
|
"libiconv": {
|
||||||
|
"version": "1.17",
|
||||||
|
"link": "https://mirrors.zhamao.xin/library/libiconv/libiconv-{version}.tar.gz",
|
||||||
|
"link_2": "https://ftp.gnu.org/gnu/libiconv/libiconv-{version}.tar.gz"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user