-
-
Save jpsilvashy/298458 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd ~/Downloads | |
echo ":::::::::: WGET" | |
# install wget, which is cleverer than curl | |
curl -O http://ftp.gnu.org/gnu/wget/wget-1.11.tar.gz | |
tar zxvf wget-1.11.tar.gz | |
cd wget-1.11 | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd ~/Downloads | |
echo "::::::::::: FreeType" | |
# prerequisite packages | |
wget http://nongnu.askapache.com/freetype/freetype-2.3.9.tar.gz | |
tar zxvf freetype-2.3.9.tar.gz | |
cd freetype-2.3.9 | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd ~/Downloads | |
echo ":::::::::::: LibPNG" | |
wget ftp://ftp.simplesystems.org/pub/png/src/libpng-1.4.0.tar.gz | |
tar xvfz libpng-1.4.0.tar.gz | |
cd libpng-1.4.0 | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd ~/Downloads | |
echo ":::::::::::::::: JPEG" | |
wget http://www.ijg.org/files/jpegsrc.v8.tar.gz | |
tar xvfz jpegsrc.v8.tar.gz | |
cd jpeg-8 | |
ln -s `which glibtool` ./libtool | |
export MACOSX_DEPLOYMENT_TARGET=10.6 | |
./configure --enable-shared --prefix=/usr/local | |
make | |
sudo make install | |
cd ~/Downloads | |
echo "::::::::::::::::: LibTiff" | |
wget ftp://ftp.remotesensing.org/libtiff/tiff-3.9.1.tar.gz | |
tar xzvf tiff-3.9.1.tar.gz | |
cd tiff-3.9.1 | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd ~/Downloads | |
echo ":::::::::::::::: LibWMF" | |
wget http://superb-west.dl.sourceforge.net/sourceforge/wvware/libwmf-0.2.8.4.tar.gz | |
tar xzvf libwmf-0.2.8.4.tar.gz | |
cd libwmf-0.2.8.4 | |
make clean | |
./configure | |
make | |
sudo make install | |
cd ~/Downloads | |
echo "::::::::::::::::: LCMS" | |
wget http://www.littlecms.com/lcms-1.17.tar.gz | |
tar xzvf lcms-1.17.tar.gz | |
cd lcms-1.17 | |
make clean | |
./configure | |
make | |
sudo make install | |
cd ~/Downloads | |
echo "::::::::::::::::: Ghostscript" | |
tar zxvf ghostscript-8.70.tar.gz | |
cd ghostscript-8.70 | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd ~/Downloads | |
echo ":::::::::::::::: Ghostscript-fonts" | |
wget http://sourceforge.net/projects/gs-fonts/files/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz/download | |
tar zxvf ghostscript-fonts-std-8.11.tar.gz | |
sudo mv fonts /usr/local/share/ghostscript | |
echo "::::::::::::::::: ImageMagick" | |
wget ftp://ftp.fifi.org/pub/ImageMagick/ImageMagick.tar.gz | |
tar xzvf ImageMagick.tar.gz | |
cd `ls | grep ImageMagick-` | |
export CPPFLAGS=-I/usr/local/include | |
export LDFLAGS=-L/usr/local/lib | |
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=/usr/local/share/ghostscript/fonts --disable-openmp | |
make | |
sudo make install | |
cd ~/Downloads | |
# RMagick | |
sudo gem install rmagick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment