Skip to content

@michaelforrest /php-cgi.rb forked from eston/php-cgi.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
# Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
require 'formula'
class PhpCgi <Formula
@url='http://www.php.net/get/php-5.2.14.tar.bz2/from/www.php.net/mirror'
@version='5.2.14'
@homepage='http://php.net/'
@md5='bfdfc0e62fe437020cc04078269d1414'
depends_on 'jpeg'
def install
configure_args = [
"--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
"--with-ldap=/usr",
"--with-kerberos=/usr",
"--disable-cli",
"--with-zlib-dir=/usr",
"--enable-exif",
"--enable-ftp",
"--enable-fastcgi",
"--enable-force-cgi-redirect",
"--enable-mbstring",
"--enable-mbregex",
"--enable-sockets",
"--with-iodbc=/usr",
"--with-curl=/usr",
"--with-config-file-path=#{prefix}/etc",
"--sysconfdir=/private/etc",
"--with-openssl=/usr",
"--with-xmlrpc",
"--with-xsl=/usr",
"--without-pear",
"--with-libxml-dir=/usr",
"--with-iconv=#{HOMEBREW_PREFIX}/Cellar/libiconv/#{versions_of("libiconv").first}",
"--with-gd",
"--with-jpeg-dir=#{HOMEBREW_PREFIX}",
"--with-png-dir=#{HOMEBREW_PREFIX}/Cellar/libpng/#{versions_of("libpng").first}",
"--with-freetype-dir=#{HOMEBREW_PREFIX}",
"--with-mcrypt=#{HOMEBREW_PREFIX}",
"--with-mysql-sock=/tmp/mysql",
"--with-mysql=#{HOMEBREW_PREFIX}",
"--with-mysqli=#{HOMEBREW_PREFIX}/bin/mysql_config",
"--with-pdo-mysql=#{HOMEBREW_PREFIX}/bin/mysql_config"
]
system "./configure", *configure_args
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
Something went wrong with that request. Please try again.