Created
August 18, 2011 16:22
-
-
Save marzocchi/1154434 to your computer and use it in GitHub Desktop.
PHP formula for homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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