allegro 5.2.0

Remove: devel ver.5.1 which has stopped to develop and unreleased in the end.
Add: depends_on theora, dumb and libogg.

Closes #375.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
s172262 2016-04-17 10:08:37 +09:00 committed by Dominyk Tiller
parent 500b839c1f
commit 53ad77e5a4

View file

@ -1,11 +1,9 @@
class Allegro < Formula
desc "C/C++ multimedia library for cross-platform game development"
homepage "http://liballeg.org/"
stable do
url "http://download.gna.org/allegro/allegro/5.0.11/allegro-5.0.11.tar.gz"
sha256 "49fe14c9571463ba08db4ff778d1fbb15e49f9c33bdada3ac8599e04330ea531"
end
url "http://download.gna.org/allegro/allegro/5.2.0/allegro-5.2.0.tar.gz"
sha256 "af5a69cd423d05189e92952633f9c0dd0ff3a061d91fbce62fb32c4bd87f9fd7"
head "https://github.com/liballeg/allegro5.git", :branch => "5.2"
bottle do
cellar :any
@ -15,28 +13,22 @@ class Allegro < Formula
sha256 "65a04aa3c0901264e54ca91f8982da085ea90bccabcb885fac054ba5219e19bd" => :mavericks
end
devel do
url "http://download.gna.org/allegro/allegro-unstable/5.1.13.1/allegro-5.1.13.1.tar.gz"
sha256 "c6e6265c3d661d46270971b7fbf7db34c1873af62882a9ea4025ca1298edf14d"
depends_on "theora" => :recommended
end
head do
url "https://github.com/liballeg/allegro5.git", :branch => "5.1"
depends_on "theora" => :recommended
end
depends_on "cmake" => :build
depends_on "libvorbis" => :recommended
depends_on "freetype" => :recommended
depends_on "flac" => :recommended
depends_on "physfs" => :recommended
depends_on "libogg" => :recommended
depends_on "theora" => :recommended
depends_on "dumb" => :optional
def install
args = std_cmake_args
args << "-DWANT_DOCS=OFF"
args << "-DWANT_MODAUDIO=1" if build.with?("dumb")
mkdir "build" do
system "cmake", "..", "-DWANT_DOCS=OFF", *std_cmake_args
system "cmake", "..", *args
system "make", "install"
end
end