From 5c66c68c705c9824d199ff4b1d05b74ca2a87b0e Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Mon, 17 Oct 2016 10:43:45 -0400 Subject: [PATCH] allegro: patch for 10.12 Closes #6017. Signed-off-by: Zhiming Wang --- Formula/allegro.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Formula/allegro.rb b/Formula/allegro.rb index 5b1ba212ab..a28bed4be9 100644 --- a/Formula/allegro.rb +++ b/Formula/allegro.rb @@ -1,10 +1,22 @@ class Allegro < Formula desc "C/C++ multimedia library for cross-platform game development" homepage "http://liballeg.org/" - url "http://download.gna.org/allegro/allegro/5.2.1.1/allegro-5.2.1.1.tar.gz" - sha256 "b5d9df303bc6d72d54260c24505889acd995049b75463b46344e797a58a44a71" + revision 1 + head "https://github.com/liballeg/allegro5.git", :branch => "master" + stable do + url "http://download.gna.org/allegro/allegro/5.2.1.1/allegro-5.2.1.1.tar.gz" + sha256 "b5d9df303bc6d72d54260c24505889acd995049b75463b46344e797a58a44a71" + + # Fix compilation on 10.12 + # https://github.com/liballeg/allegro5/pull/682 + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/2daef1c/allegro/patch-allegro-10.12.diff" + sha256 "f2879676a370749319b8247ab7437b8060c9d9dc2f58f45db0d782419fe37adf" + end + end + bottle do cellar :any sha256 "8704382be7339cd88ec6ee60e5a0a6dded83d826ff108a480e604cc26e897bf0" => :el_capitan