2010-06-27 18:18:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libmpeg2 < Formula
|
2010-06-27 18:18:56 +00:00
|
|
|
homepage 'http://libmpeg2.sourceforge.net/'
|
2013-01-29 05:27:19 +00:00
|
|
|
url 'http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '0f9163d8fd52db5f577ebe45636f674252641fd7'
|
2010-06-27 18:18:56 +00:00
|
|
|
|
2014-07-03 19:34:35 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-21 13:18:18 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "39cdc686342af5981a71b97ac6c1682b5faf547c" => :yosemite
|
|
|
|
sha1 "24e079241e46a6bad3527ea0662cb79b8c74260c" => :mavericks
|
|
|
|
sha1 "6e13bb1b550c921c749cacf50792efdd2f6a8903" => :mountain_lion
|
2014-07-03 19:34:35 +00:00
|
|
|
end
|
|
|
|
|
2010-06-27 18:18:56 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
|
|
|
|
def install
|
2013-12-16 00:39:33 +00:00
|
|
|
# Otherwise compilation fails in clang with `duplicate symbol ___sputc`
|
|
|
|
ENV.append_to_cflags '-std=gnu89'
|
|
|
|
|
2013-01-29 05:27:19 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-06-27 18:18:56 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|