Skip to content

Commit

Permalink
Added lcms for cedar 14 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alex88 committed Oct 3, 2014
1 parent e437b7b commit fef4d36
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
22 changes: 21 additions & 1 deletion 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.10 with webp 0.4.0, orc 0.4.18, fftw 3.3.4, libgsf 1.14.30 and imagemagick 6.8.9
Current vips version is 7.40.10 with webp 0.4.0, orc 0.4.18, fftw 3.3.4, libgsf 1.14.30, imagemagick 6.8.9 and lcms 2.6

## Usage

Expand Down Expand Up @@ -272,6 +272,26 @@ make install
# Build path
cd $BUILD_PATH

###############
# LCMS #
###############

# Download lcms dependency
curl -L http://downloads.sourceforge.net/project/lcms/lcms/2.6/lcms2-2.6.tar.gz -o lcms.tar.gz
# Unzip
tar -xvf lcms.tar.gz
# Get into lcms folder
cd lcms2-2.6
# Configure build
./configure --prefix $OUT_PATH
# Make lcms
make
# Install lcms
make install

# Build path
cd $BUILD_PATH

###############
# VIPS #
###############
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/201410011500.tar.gz | tar xz -C $output_dir
curl -s https://s3-eu-west-1.amazonaws.com/visup-misc/heroku-buildpack-vips/201410031030.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/201410011500.tar.gz | tar xz -C $temp_app_dir
curl -s https://s3-eu-west-1.amazonaws.com/visup-misc/heroku-buildpack-vips/201410031030.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 fef4d36

Please sign in to comment.