2014-01-22 14:14:32 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Sfml < Formula
|
|
|
|
homepage "http://www.sfml-dev.org/"
|
|
|
|
url "http://www.sfml-dev.org/download/sfml/2.1/SFML-2.1-sources.zip"
|
|
|
|
sha1 "c27bdffdc4bedb5f6a20db03ceca715d42aa5752"
|
|
|
|
|
2014-08-30 07:07:15 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "5c2ddfbbc587914a6c9b4f02831e607a398753e7" => :mavericks
|
|
|
|
sha1 "2be6977ed7c225032825ed4f521e9883d4cb5db1" => :mountain_lion
|
|
|
|
sha1 "ad6f666a6a23ddf5eab12a58f4c6dd0b8e6b777b" => :lion
|
|
|
|
end
|
|
|
|
|
2014-01-22 14:14:32 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "freetype"
|
|
|
|
depends_on "glew"
|
|
|
|
depends_on "jpeg"
|
|
|
|
depends_on "libsndfile"
|
|
|
|
|
|
|
|
def install
|
2014-03-22 01:09:22 +00:00
|
|
|
system "cmake", ".", "-DCMAKE_INSTALL_FRAMEWORK_PREFIX=#{frameworks}/", *std_cmake_args
|
2014-01-22 14:14:32 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|