httpd: Add SDK path where necessary
Fixes #33368. Closes #33911. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
f5437e5774
commit
80d1db4baf
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,7 @@ class Httpd < Formula
|
|||
homepage "https://httpd.apache.org/"
|
||||
url "https://www.apache.org/dyn/closer.cgi?path=httpd/httpd-2.4.37.tar.bz2"
|
||||
sha256 "3498dc5c6772fac2eb7307dc7963122ffe243b5e806e0be4fb51974ff759d726"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "ebdc934511011232b124591665679a583b412768f711c698105f73e7049872df" => :mojave
|
||||
|
@ -58,10 +59,12 @@ class Httpd < Formula
|
|||
"--with-apr=#{Formula["apr"].opt_prefix}",
|
||||
"--with-apr-util=#{Formula["apr-util"].opt_prefix}",
|
||||
"--with-brotli=#{Formula["brotli"].opt_prefix}",
|
||||
"--with-libxml2=#{MacOS.sdk_path_if_needed}/usr",
|
||||
"--with-mpm=prefork",
|
||||
"--with-nghttp2=#{Formula["nghttp2"].opt_prefix}",
|
||||
"--with-ssl=#{Formula["openssl"].opt_prefix}",
|
||||
"--with-pcre=#{Formula["pcre"].opt_prefix}",
|
||||
"--with-z=#{MacOS.sdk_path_if_needed}/usr",
|
||||
"--disable-lua",
|
||||
"--disable-luajit"
|
||||
system "make"
|
||||
|
@ -138,6 +141,11 @@ class Httpd < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
# Ensure modules depending on zlib and xml2 have been compiled
|
||||
assert_predicate lib/"httpd/modules/mod_deflate.so", :exist?
|
||||
assert_predicate lib/"httpd/modules/mod_proxy_html.so", :exist?
|
||||
assert_predicate lib/"httpd/modules/mod_xml2enc.so", :exist?
|
||||
|
||||
begin
|
||||
require "socket"
|
||||
|
||||
|
|
Loading…
Reference in a new issue