Skip to content

Instantly share code, notes, and snippets.

@gabrielfalcao
Created December 15, 2010 01:43
Show Gist options
  • Save gabrielfalcao/741504 to your computer and use it in GitHub Desktop.
Save gabrielfalcao/741504 to your computer and use it in GitHub Desktop.
PHP formula for Homebrew
require 'formula'
class Php <Formula
url 'http://www.php.net/get/php-5.3.4.tar.bz2/from/br2.php.net/mirror'
homepage 'http://php.net'
version '5.3.4'
md5 '2c069d8f690933e3bf6a8741ed818150'
depends_on 'jpeg'
depends_on 'libpng'
depends_on 'pcre'
depends_on 'mcrypt'
depends_on 'sqlite'
depends_on 'libexif'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--with-openssl=/usr", "--with-kerberos", "--with-pcre-regex=/usr/local",
"--disable-pdo", "--with-zlib", "--with-bz2", "--enable-exif", "--with-gd", "--with-ldap",
"--with-ldap-sasl", "--with-mcrypt", "--with-mysql",
"--with-jpeg-dir=/usr/local/Cellar/jpeg/8b", "--with-jpeg",
"--with-png-dir=/usr/local/Cellar/libpng/1.2.44", "--with-png",
"--mandir=#{man}gi"
system "make"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment