Pillow/depends/install_webp.sh

16 lines
382 B
Bash
Raw Normal View History

2014-03-27 00:22:37 +04:00
#!/bin/bash
# install webp
2016-11-19 09:29:59 +03:00
if [ ! -f libwebp-0.5.1.tar.gz ]; then
wget -O 'libwebp-0.5.1.tar.gz' 'https://github.com/python-pillow/pillow-depends/blob/master/libwebp-0.5.1.tar.gz?raw=true'
2014-03-27 00:22:37 +04:00
fi
2016-11-19 09:29:59 +03:00
rm -r libwebp-0.5.1
tar -xvzf libwebp-0.5.1.tar.gz
2014-03-27 00:22:37 +04:00
2016-11-19 09:29:59 +03:00
pushd libwebp-0.5.1
2014-03-27 00:22:37 +04:00
./configure --prefix=/usr --enable-libwebpmux --enable-libwebpdemux && make -j4 && sudo make -j4 install
2014-03-27 00:22:37 +04:00
popd