Skip to content

Commit

Permalink
Updated vips and added imagemagick
Browse files Browse the repository at this point in the history
  • Loading branch information
alex88 committed Oct 1, 2014
1 parent 8a6f299 commit e437b7b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 6 deletions.
48 changes: 44 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ heroku-buildpack-vips

Heroku buildpack with [libvips](https://github.com/jcupitt/libvips) installed.

Current vips version is 7.40.8 with webp 0.4.0, orc 0.4.18, fftw 3.3.4 and libgsf 1.14.30
Current vips version is 7.40.10 with webp 0.4.0, orc 0.4.18, fftw 3.3.4, libgsf 1.14.30 and imagemagick 6.8.9

## Usage

Expand Down Expand Up @@ -37,7 +37,7 @@ This is the script used to build vips on `heroku run bash`
#!/bin/bash

# Set vips version
export VIPS_VERSION=7.40.8
export VIPS_VERSION=7.40.10
export WEBP_VERSION=0.4.0
export ORC_VERSION=0.4.18
export FFTW_VERSION=3.3.4
Expand Down Expand Up @@ -224,9 +224,49 @@ tar -xvf libgsf.tar.xz
cd libgsf-1.14.30
# Configure build
./configure --prefix $OUT_PATH
# Make fftw
# Make gsf
make
# Install fftw
# Install gsf
make install

# Build path
cd $BUILD_PATH

###############
# CFITSIO #
###############

# Download CFITSIO dependency
curl -L ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3370.tar.gz -o cfitsio.tar.gz
# Unzip
tar -xvf cfitsio.tar.gz
# Get into CFITSIO folder
cd cfitsio
# Configure build
./configure --prefix $OUT_PATH
# Make cfitsio
make
# Install cfitsio
make install

# Build path
cd $BUILD_PATH

###############
# Imagemagick #
###############

# Download Imagemagick dependency
curl -L http://www.imagemagick.org/download/ImageMagick-6.8.9-8.tar.xz -o ImageMagick.tar.xz
# Unzip
tar -xvf ImageMagick.tar.xz
# Get into Imagemagick folder
cd ImageMagick-6.8.9-8
# Configure build
./configure --prefix $OUT_PATH
# Make Imagemagick
make
# Install Imagemagick
make install

# Build path
Expand Down
4 changes: 2 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ mkdir -p $output_dir
mkdir -p $temp_app_dir

echo "Downloading libvips and unpacking" | indent
curl -s https://s3-eu-west-1.amazonaws.com/visup-misc/heroku-buildpack-vips/201409151000.tar.gz | tar xz -C $output_dir
curl -s https://s3-eu-west-1.amazonaws.com/visup-misc/heroku-buildpack-vips/201410011500.tar.gz | tar xz -C $output_dir

if [ $? != 0 ]; then
echo "Error downloading vips and unpacking to build dir" | indent
exit 1
fi

curl -s https://s3-eu-west-1.amazonaws.com/visup-misc/heroku-buildpack-vips/201409151000.tar.gz | tar xz -C $temp_app_dir
curl -s https://s3-eu-west-1.amazonaws.com/visup-misc/heroku-buildpack-vips/201410011500.tar.gz | tar xz -C $temp_app_dir

if [ $? != 0 ]; then
echo "Error downloading vips and unpacking to app dir" | indent
Expand Down

0 comments on commit e437b7b

Please sign in to comment.