Skip to content

Commit

Permalink
Update MySQL options
Browse files Browse the repository at this point in the history
* added embedded server build option
* fix --with-tests build option
* remove broken --with-bench build option

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
jbeckers authored and adamv committed Mar 29, 2011
1 parent 4e16c60 commit 9ce1c12
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Library/Formula/mysql.rb
Expand Up @@ -12,8 +12,8 @@ class Mysql < Formula

def options
[
['--with-tests', "Keep tests when installing."],
['--with-bench', "Keep benchmark app when installing."],
['--with-tests', "Build with unit tests."],
['--with-embedded', "Build the embedded server."],
['--universal', "Make mysql a universal binary"]
]
end
Expand All @@ -33,8 +33,12 @@ def install
"-DDEFAULT_COLLATION='utf8_general_ci'",
"-DSYSCONFDIR='#{HOMEBREW_PREFIX}/etc'"]

# To enable unit testing at build, we need to download the unit testing suite
args << "-DWITH_UNIT_TESTS=OFF" if not ARGV.include? '--with-tests'
args << "-DINSTALL_SQLBENCHDIR=" if not ARGV.include? '--with-bench'
args << "-DENABLE_DOWNLOADS=ON" if ARGV.include? '--with-tests'

# Build the embedded server
args << "-DWITH_EMBEDDED_SERVER=ON" if ARGV.include? '--with-embedded'

# Make universal for bindings to universal applications
args << "-DCMAKE_OSX_ARCHITECTURES='ppc;i386'" if ARGV.include? '--universal'
Expand Down

0 comments on commit 9ce1c12

Please sign in to comment.