Commit d7e813cf authored by xoviat's avatar xoviat Committed by GitHub
Browse files

ENH: allow omission of .tar.gz

parent 74e38f33
...@@ -57,6 +57,10 @@ function build_simple { ...@@ -57,6 +57,10 @@ function build_simple {
local url=$3 local url=$3
local ext=${4:-tar.gz} local ext=${4:-tar.gz}
local configure_args=${@:5} local configure_args=${@:5}
if [[ $ext == --* ]]; then
configure_args="$ext $configure_args"
ext=".tar.gz"
fi
if [ -e "${name}-stamp" ]; then if [ -e "${name}-stamp" ]; then
return return
fi fi
...@@ -177,7 +181,7 @@ function build_libwebp { ...@@ -177,7 +181,7 @@ function build_libwebp {
build_tiff build_tiff
build_giflib build_giflib
build_simple libwebp $LIBWEBP_VERSION \ build_simple libwebp $LIBWEBP_VERSION \
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/ tar.gz \ https://storage.googleapis.com/downloads.webmproject.org/releases/webp/ \
--enable-libwebpmux --enable-libwebpdemux --enable-libwebpmux --enable-libwebpdemux
} }
...@@ -195,7 +199,7 @@ function build_szip { ...@@ -195,7 +199,7 @@ function build_szip {
# Build szip without encoding (patent restrictions) # Build szip without encoding (patent restrictions)
build_zlib build_zlib
build_simple szip $SZIP_VERSION \ build_simple szip $SZIP_VERSION \
https://www.hdfgroup.org/ftp/lib-external/szip/ tar.gz \ https://www.hdfgroup.org/ftp/lib-external/szip/ \
--enable-encoding=no --enable-encoding=no
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment