diff options
| author | Dominyk Tiller | 2014-09-24 07:12:20 +0100 |
|---|---|---|
| committer | Jack Nagel | 2014-09-28 01:40:46 -0500 |
| commit | 96a8c3331e4fa3c5fd2416fbe471e240dae4cffe (patch) | |
| tree | f5f038eb1d83826b7e571f6cbd2f5a7afce1cee1 | |
| parent | ef155f481899cb38bc8753db421d77fa86053aca (diff) | |
| download | homebrew-96a8c3331e4fa3c5fd2416fbe471e240dae4cffe.tar.bz2 | |
Sqlcipher: fts option & openssl dep
Closes #32656.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/sqlcipher.rb | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/Library/Formula/sqlcipher.rb b/Library/Formula/sqlcipher.rb index be4ae0191..9936e5277 100644 --- a/Library/Formula/sqlcipher.rb +++ b/Library/Formula/sqlcipher.rb @@ -7,11 +7,27 @@ class Sqlcipher < Formula head "https://github.com/sqlcipher/sqlcipher.git" + option "with-fts", "Build with full-text search enabled" + + depends_on "openssl" + def install - system "./configure", "--prefix=#{prefix}", "--enable-tempstore=yes", - "CFLAGS=-DSQLITE_HAS_CODEC", "LDFLAGS=-lcrypto", - "--disable-tcl" + + args = %W[ + --prefix=#{prefix} + --enable-tempstore=yes + --with-crypto-lib=#{Formula["openssl"].opt_prefix} + --disable-tcl + ] + + if build.with?("fts") + args << "CFLAGS=-DSQLITE_HAS_CODEC -DSQLITE_ENABLE_FTS3" + else + args << "CFLAGS=-DSQLITE_HAS_CODEC" + end + + system "./configure", *args system "make" - system "make install" + system "make", "install" end end |
