Files
tigerbrew/Library/Formula/sqlite.rb
T
Tojek Anselm 7fa3251fee sqlite --universal option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-02 06:56:51 -07:00

21 lines
607 B
Ruby

require 'formula'
class Sqlite <Formula
url 'http://www.sqlite.org/sqlite-amalgamation-3.7.2.tar.gz'
md5 'bd9586208f48ba840467bcfd066a6fa9'
homepage 'http://www.sqlite.org/'
def options
[["--with-rtree", "Enables the R*Tree index module"]]
[["--universal", "Build a universal binary."]]
end
def install
ENV.append "CFLAGS", "-DSQLITE_ENABLE_RTREE=1" if ARGV.include? "--with-rtree"
ENV.universal_binary if ARGV.include? "--universal"
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking"
system "make install"
end
end