refactored out dependencies

This commit is contained in:
wiredfool 2014-03-26 13:22:37 -07:00
parent d4ecef390f
commit 31b84f41bc
3 changed files with 39 additions and 12 deletions

View File

@ -20,20 +20,11 @@ install:
# enables pypy to compile
# - "sudo apt-get install python-tk"
# webp UNDONE -- refactor
- date
- "wget 'https://webp.googlecode.com/files/libwebp-0.4.0.tar.gz' -O /tmp/libwebp-0.4.0.tar.gz"
- date
- "tar -C /tmp -xvzf /tmp/libwebp-0.4.0.tar.gz"
- "pushd /tmp/libwebp-0.4.0 && ./configure --prefix=/usr --enable-libwebpmux --enable-libwebpdemux && make && sudo make install && popd"
- date
# webp
- pushd depends && ./install_web[.sh && popd
# openjpeg
- "wget 'https://openjpeg.googlecode.com/files/openjpeg-2.0.0.tar.gz' -O /tmp/openjpeg-2.0.0.tar.gz"
- "tar -C /tmp -xvzf /tmp/openjpeg-2.0.0.tar.gz"
- date
- "pushd /tmp/openjpeg-2.0.0 && cmake -DCMAKE_INSTALL_PREFIX=/usr . && make && sudo make install && popd"
- date
- pushd depends && ./install_openjpeg.sh && popd
script:
- python setup.py clean

18
depends/install_openjpeg.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# install openjpeg
if [ ! -f openjpeg-2.0.0.tar.gz ]; then
wget 'https://openjpeg.googlecode.com/files/openjpeg-2.0.0.tar.gz'
fi
rm -r openjpeg-2.0.0
tar -xvzf openjpeg-2.0.0.tar.gz
pushd openjpeg-2.0.0
cmake -DCMAKE_INSTALL_PREFIX=/usr . && make && sudo make install
popd

18
depends/install_webp.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# install webp
if [ ! -f libwebp-0.4.0.tar.gz ]; then
wget 'https://webp.googlecode.com/files/libwebp-0.4.0.tar.gz'
fi
rm -r libwebp-0.4.0
tar -xvzf libwebp-0.4.0.tar.gz
pushd libwebp-0.4.0
./configure --prefix=/usr --enable-libwebpmux --enable-libwebpdemux && make && sudo make install
popd