Skip to content

Commit

Permalink
Updated libvips to 7.40.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alex88 committed Jul 3, 2014
1 parent f10f0e7 commit ba4a68d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
26 changes: 24 additions & 2 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.38.4 with webp 0.4.0 and orc 0.4.18
Current vips version is 7.40.3 with webp 0.4.0, orc 0.4.18 and fftw 3.3.4

## Usage

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

# Set vips version
export VIPS_VERSION=7.38.4
export VIPS_VERSION=7.40.3
export WEBP_VERSION=0.4.0
export ORC_VERSION=0.4.18
export FFTW_VERSION=3.3.4
export BUILD_PATH=/tmp
export OUT_PATH=/app/vendor/vips
export PKG_CONFIG_PATH=$OUT_PATH/lib/pkgconfig:$PKG_CONFIG_PATH
Expand Down Expand Up @@ -88,6 +89,27 @@ make
# Install webp
make install

# Build path
cd $BUILD_PATH

###############
# FFTW #
###############

# Download fftw dependency
curl http://www.fftw.org/fftw-$FFTW_VERSION.tar.gz -o fftw.tar.gz
# Unzip
tar -xvf fftw.tar.gz
# Get into fftw folder
cd fftw-$FFTW_VERSION
# Configure build
./configure --enable-shared --prefix $OUT_PATH
# Make fftw
make
# Install fftw
make install

# Build path
cd $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/201403281200.tar.gz | tar xz -C $output_dir
curl -s https://s3-eu-west-1.amazonaws.com/visup-misc/heroku-buildpack-vips/201406031600.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/201403281200.tar.gz | tar xz -C $temp_app_dir
curl -s https://s3-eu-west-1.amazonaws.com/visup-misc/heroku-buildpack-vips/201406031600.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 ba4a68d

Please sign in to comment.