Skip to content

Commit

Permalink
apr-util: add extra options
Browse files Browse the repository at this point in the history
These additional libs are necessary to allow HTTPD to be built with LDAP
and driver supported DBD.

Closes Homebrew/legacy-homebrew#45259.

Signed-off-by: Dominyk Tiller <[email protected]>
  • Loading branch information
kabel authored and DomT4 committed Oct 23, 2015
1 parent 2fa5cd1 commit 6e6187e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Formula/apr-util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -31,6 +36,15 @@ def install
]

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"
Expand Down

0 comments on commit 6e6187e

Please sign in to comment.