apr-util: add extra options
These additional libs are necessary to allow HTTPD to be built with LDAP and driver supported DBD. Closes Homebrew/homebrew#45259. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
2fa5cd1052
commit
6e6187e832
1 changed files with 14 additions and 0 deletions
|
@ -19,6 +19,11 @@ class AprUtil < Formula
|
|||
depends_on "apr"
|
||||
depends_on "openssl"
|
||||
depends_on "postgresql" => :optional
|
||||
depends_on "mysql" => :optional
|
||||
depends_on "freetds" => :optional
|
||||
depends_on "unixodbc" => :optional
|
||||
depends_on "sqlite" => :optional
|
||||
depends_on "homebrew/dupes/openldap" => :optional
|
||||
|
||||
def install
|
||||
ENV.universal_binary if build.universal?
|
||||
|
@ -31,6 +36,15 @@ class AprUtil < Formula
|
|||
]
|
||||
|
||||
args << "--with-pgsql=#{Formula["postgresql"].opt_prefix}" if build.with? "postgresql"
|
||||
args << "--with-mysql=#{Formula["mysql"].opt_prefix}" if build.with? "mysql"
|
||||
args << "--with-freetds=#{Formula["freetds"].opt_prefix}" if build.with? "freetds"
|
||||
args << "--with-odbc=#{Formula["unixodbc"].opt_prefix}" if build.with? "unixodbc"
|
||||
|
||||
if build.with? "openldap"
|
||||
args << "--with-ldap"
|
||||
args << "--with-ldap-lib=#{Formula["openldap"].opt_prefix}/lib"
|
||||
args << "--with-ldap-include=#{Formula["openldap"].opt_prefix}/include"
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
|
|
Loading…
Reference in a new issue