Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
#!/bin/bash set -e curl -O http://www.zlib.net/zlib-1.2.3.tar.gz curl -O http://www.very-clever.com/download/nongnu/freetype/freetype-2.3.7.tar.bz2 curl -O ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/delegates/libjpeg-6b.tar.bz2 curl -O ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.34.tar.bz2 curl -O ftp://ftp.imagemagick.org:21/pub/ImageMagick/ImageMagick-6.4.9-3.tar.bz2 curl -LO http://rubyforge.org/frs/download.php/47872/RMagick-2.8.0.tar.bz2 tar xjvf ImageMagick-6.4.9-3.tar.bz2 tar xzvf zlib-1.2.3.tar.gz -C ImageMagick-6.4.9-3/ tar xjvf freetype-2.3.7.tar.bz2 -C ImageMagick-6.4.9-3/ tar xjvf libjpeg-6b.tar.bz2 -C ImageMagick-6.4.9-3/ tar xjvf libpng-1.2.34.tar.bz2 -C ImageMagick-6.4.9-3/ cd ImageMagick-6.4.9-3 export MAGICBUILD=`pwd` export CPPFLAGS="-Os -pipe -I$MAGICBUILD/deps/include" export LDFLAGS="-L$MAGICBUILD/deps/lib" export CPP=/usr/bin/cpp-4.2 export PATH="$MAGICBUILD/deps/bin:$PATH" mv zlib-1.2.3 zlib mv freetype-2.3.7 freetype mv libjpeg-6b jpeg mv libpng-1.2.34 png cd zlib ./configure --prefix=$MAGICBUILD/deps make install cd .. cd freetype ./configure --disable-shared --enable-static --without-zlib --prefix=$MAGICBUILD/deps make install cd .. cd jpeg ./configure --disable-shared --enable-static --prefix=$MAGICBUILD/deps --disable-dependency-tracking make install cd .. cd png ./configure --disable-shared --enable-static --without-binconfigs --without-libpng-compat --disable-dependency-tracking --prefix=$MAGICBUILD/deps make install cd .. export CPPFLAGS="-Os -pipe -I$MAGICBUILD/deps/include" export LDFLAGS="-L$MAGICBUILD/deps/lib" # probably not all of these are necessary but I'm being extra-cautious ./configure --disable-shared --disable-installed --enable-embeddable --without-magick-plus-plus --without-perl --without-x --disable-dependency-tracking --with-quantum-depth=8 --without-gvc --prefix=$MAGICBUILD/deps make install cd .. tar xjvf RMagick-2.8.0.tar.bz2 cd RMagick-2.8.0 ruby setup.rb config --disable-htmldoc ruby setup.rb setup cp ext/RMagick/RMagick2.bundle lib/ # now copy the contents of the RMagick-2.8.0/lib directory to your # *.app/Contents/Resources directory, alongside gosu.bundle
This paste will be private.
From the Design Piracy series on my blog: