2014-02-19 21:47:33 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Libbtbb < Formula
|
|
|
|
homepage "https://github.com/greatscottgadgets/libbtbb"
|
2014-03-16 15:26:56 +00:00
|
|
|
url "https://github.com/greatscottgadgets/libbtbb/archive/2014-02-R2.tar.gz"
|
|
|
|
sha1 "aa94b7d92465704aa647123f11e906491a26d090"
|
|
|
|
version "2014-02-R2"
|
2014-02-19 21:47:33 +00:00
|
|
|
|
|
|
|
head "https://github.com/greatscottgadgets/libbtbb.git"
|
|
|
|
|
2014-07-03 17:36:38 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "a845a9b2f08b398f965e377710fcefe85732cc7d" => :mavericks
|
|
|
|
sha1 "41deb429b9c4b4fb5b06678db333c47c343fe19f" => :mountain_lion
|
|
|
|
sha1 "e46bb90fd4bf1954857bfef864fd6839114e9b50" => :lion
|
|
|
|
end
|
|
|
|
|
2014-02-19 21:47:33 +00:00
|
|
|
option :universal
|
|
|
|
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "python"
|
|
|
|
|
|
|
|
def install
|
2014-05-10 03:54:53 +00:00
|
|
|
args = std_cmake_args
|
|
|
|
|
2014-02-19 21:47:33 +00:00
|
|
|
if build.universal?
|
|
|
|
ENV.universal_binary
|
2014-05-10 03:54:53 +00:00
|
|
|
args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
|
2014-02-19 21:47:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
mkdir "build" do
|
2014-05-10 03:54:53 +00:00
|
|
|
system "cmake", "..", *args
|
2014-02-19 21:47:33 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|