ejabberd: add odbc

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Mike Glazer authored and Adam Vandenberg committed 2011-06-14 14:46:09 -07:00
1 parent 2a430bfdcd
commit 244e99c5ae
1 file changed
+6
+6
View File
@@ -8,6 +8,10 @@ class Ejabberd < Formula
depends_on "openssl" if MacOS.leopard?
depends_on "erlang"
def options
[['--odbc', "Build with ODBC support."]]
end
def install
ENV['TARGET_DIR'] = ENV['DESTDIR'] = "#{lib}/ejabberd/erlang/lib/ejabberd-#{version}"
ENV['MAN_DIR'] = man
@@ -23,6 +27,8 @@ class Ejabberd < Formula
args << "--with-openssl=#{openssl.prefix}"
end
args << "--enable-odbc" if ARGV.include? '--odbc'
system "./configure", *args
system "make"
system "make install"