Skip to content

Instantly share code, notes, and snippets.

@marzocchi
Created August 18, 2011 16:22
Show Gist options
  • Save marzocchi/1154434 to your computer and use it in GitHub Desktop.
Save marzocchi/1154434 to your computer and use it in GitHub Desktop.
PHP formula for homebrew
require 'formula'
class Php < Formula
url 'http://it.php.net/distributions/php-5.3.8.tar.gz'
homepage 'http://php.net/'
md5 'f4ce40d5d156ca66a996dbb8a0e7666a'
version '5.3.8'
# depends_on 'cmake'
depends_on 'mysql'
depends_on 'jpeg'
depends_on 'mcrypt'
def install
ENV.x11
system "./configure",
"--with-gd",
"--with-mcrypt",
"--with-curl",
"--with-png-dir=/usr/X11",
"--enable-pdo=static",
"--with-pdo-mysql=/usr/local",
"--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
# system "cmake . #{std_cmake_parameters}"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment