Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php: use brewed gd & pcre2, reorganise dependencies #58832

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions Formula/php.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Php < Formula
mirror "https://fossies.org/linux/www/php-7.4.8.tar.xz"
sha256 "642843890b732e8af01cb661e823ae01472af1402f211c83009c9b3abd073245"
license "PHP-3.01"
revision 1

bottle do
sha256 "da81ec7dbe2ab2d9cbfcb5fcfa5f8e4fa0258f1947c52a13967c52dc6bab7f8f" => :catalina
Expand All @@ -29,28 +30,26 @@ class Php < Formula
depends_on "autoconf"
depends_on "curl-openssl"
depends_on "freetds"
depends_on "freetype"
depends_on "gd"
depends_on "gettext"
depends_on "glib"
depends_on "gmp"
depends_on "icu4c"
depends_on "jpeg"
depends_on "krb5"
depends_on "libffi"
depends_on "libpng"
depends_on "libpq"
depends_on "libsodium"
depends_on "libzip"
depends_on "oniguruma"
depends_on "openldap"
depends_on "openssl@1.1"
depends_on "pcre2"
depends_on "sqlite"
depends_on "tidy-html5"
depends_on "unixodbc"
depends_on "webp"

uses_from_macos "xz" => :build
uses_from_macos "bzip2"
uses_from_macos "krb5"
uses_from_macos "libedit"
uses_from_macos "libxml2"
uses_from_macos "libxslt"
Expand Down Expand Up @@ -97,12 +96,8 @@ def install
ENV["lt_cv_path_SED"] = "sed"

# system pkg-config missing
ENV["KERBEROS_CFLAGS"] = " "
ENV["KERBEROS_LIBS"] = "-lkrb5"
ENV["SASL_CFLAGS"] = "-I#{MacOS.sdk_path_if_needed}/usr/include/sasl"
ENV["SASL_LIBS"] = "-lsasl2"
ENV["EDIT_CFLAGS"] = " "
ENV["EDIT_LIBS"] = "-ledit"

# Each extension that is built on Mojave needs a direct reference to the
# sdk path or it won't find the headers
Expand Down Expand Up @@ -141,14 +136,14 @@ def install
--with-apxs2=#{Formula["httpd"].opt_bin}/apxs
--with-bz2#{headers_path}
--with-curl
--with-external-gd
--with-external-pcre
--with-ffi
--with-fpm-user=_www
--with-fpm-group=_www
--with-freetype
--with-gettext=#{Formula["gettext"].opt_prefix}
--with-gmp=#{Formula["gmp"].opt_prefix}
--with-iconv#{headers_path}
--with-jpeg
--with-kerberos
--with-layout=GNU
--with-ldap=#{Formula["openldap"].opt_prefix}
Expand All @@ -173,7 +168,6 @@ def install
--with-sqlite3
--with-tidy=#{Formula["tidy-html5"].opt_prefix}
--with-unixODBC
--with-webp
--with-xmlrpc
--with-xsl
--with-zip
Expand Down