Skip to content

Commit

Permalink
Compile PHP with freetype support
Browse files Browse the repository at this point in the history
Closes iphoting#32.
  • Loading branch information
colm authored and iphoting committed Aug 11, 2013
1 parent 27fb56d commit 95aad83
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions support/ec2-build-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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..."
Expand Down
1 change: 1 addition & 0 deletions support/set-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions support/vulcan-build-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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..."
Expand Down

0 comments on commit 95aad83

Please sign in to comment.