From 95aad83d1a9ac7a7747948ab8a264220d3de72df Mon Sep 17 00:00:00 2001 From: colm Date: Wed, 31 Jul 2013 15:31:44 +0100 Subject: [PATCH] Compile PHP with freetype support Closes #32. --- support/ec2-build-php.sh | 6 ++++++ support/set-env.sh | 1 + support/vulcan-build-php.sh | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/support/ec2-build-php.sh b/support/ec2-build-php.sh index 5878a0ae1..8ac03d25a 100644 --- a/support/ec2-build-php.sh +++ b/support/ec2-build-php.sh @@ -5,6 +5,7 @@ ## EDIT export S3_BUCKET="heroku-buildpack-php-tyler" export LIBMCRYPT_VERSION="2.5.9" +export LIFREETYPE_VERSION="2.4.12" export PHP_VERSION="5.4.17" export APC_VERSION="3.1.10" export PHPREDIS_VERSION="2.2.2" @@ -65,6 +66,10 @@ echo "+ Fetching libmemcached libraries..." mkdir -p /app/local curl -L "https://s3.amazonaws.com/${S3_BUCKET}/libmemcached-${LIBMEMCACHED_VERSION}.tar.gz" -o - | tar xz -C /app/local +echo "+ Fetching freetype libraries..." +mkdir -p /app/local +curl -L "http://download.savannah.gnu.org/releases/freetype/freetype-${LIFREETYPE_VERSION}.tar.gz" -o - | tar xz -C /app/local + echo "+ Fetching PHP sources..." #fetch php, extract curl -L http://us.php.net/get/php-$PHP_VERSION.tar.bz2/from/www.php.net/mirror -o - | tar xj @@ -105,6 +110,7 @@ echo "+ Configuring PHP..." --with-pgsql \ --with-pdo-pgsql \ --with-png-dir \ +--with-freetype-dir=/app/local \ --with-zlib echo "+ Compiling PHP..." diff --git a/support/set-env.sh b/support/set-env.sh index 79d6e86d7..5ed2a40e7 100755 --- a/support/set-env.sh +++ b/support/set-env.sh @@ -3,6 +3,7 @@ export S3_BUCKET="heroku-buildpack-php-tyler" export LIBMCRYPT_VERSION="2.5.8" +export LIFREETYPE_VERSION="2.4.12" export PHP_VERSION="5.4.17" export APC_VERSION="3.1.10" export PHPREDIS_VERSION="2.2.2" diff --git a/support/vulcan-build-php.sh b/support/vulcan-build-php.sh index 2e29703f1..9fe9a63fa 100755 --- a/support/vulcan-build-php.sh +++ b/support/vulcan-build-php.sh @@ -21,6 +21,10 @@ echo "+ Fetching libmemcached libraries..." mkdir -p /app/local curl -L "https://s3.amazonaws.com/${S3_BUCKET}/libmemcached-${LIBMEMCACHED_VERSION}.tar.gz" -o - | tar xz -C /app/local +echo "+ Fetching freetype libraries..." +mkdir -p /app/local +curl -L "http://download.savannah.gnu.org/releases/freetype/freetype-${LIFREETYPE_VERSION}.tar.gz" -o - | tar xz -C /app/local + echo "+ Fetching PHP sources..." #fetch php, extract curl -L http://us.php.net/get/php-$PHP_VERSION.tar.bz2/from/www.php.net/mirror -o - | tar xj @@ -61,6 +65,7 @@ echo "+ Configuring PHP..." --with-pgsql \ --with-pdo-pgsql \ --with-png-dir \ +--with-freetype-dir=/app/local \ --with-zlib echo "+ Compiling PHP..."