diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ejabberd.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/ejabberd.rb b/Library/Formula/ejabberd.rb index 8d9ec9a0d..828fc30c0 100644 --- a/Library/Formula/ejabberd.rb +++ b/Library/Formula/ejabberd.rb @@ -8,19 +8,15 @@ class Ejabberd < Formula depends_on "openssl" if MacOS.leopard? depends_on "erlang" - def options - [ - ['--odbc', "Build with ODBC support."], - ['--32-bit', "Build 32-bit only."] - ] - end + option "32-bit" + option 'with-odbc', "Build with ODBC support" def install ENV['TARGET_DIR'] = ENV['DESTDIR'] = "#{lib}/ejabberd/erlang/lib/ejabberd-#{version}" ENV['MAN_DIR'] = man ENV['SBIN_DIR'] = sbin - if ARGV.build_32_bit? + if build.build_32_bit? %w{ CFLAGS LDFLAGS }.each do |compiler_flag| ENV.remove compiler_flag, "-arch x86_64" ENV.append compiler_flag, "-arch i386" @@ -37,7 +33,7 @@ class Ejabberd < Formula args << "--with-openssl=#{openssl.prefix}" end - args << "--enable-odbc" if ARGV.include? '--odbc' + args << "--enable-odbc" if build.include? 'with-odbc' system "./configure", *args system "make" |
