homebrew-core/Formula/libmpeg2.rb
2013-12-15 16:39:33 -08:00

18 lines
519 B
Ruby

require 'formula'
class Libmpeg2 < Formula
homepage 'http://libmpeg2.sourceforge.net/'
url 'http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz'
sha1 '0f9163d8fd52db5f577ebe45636f674252641fd7'
depends_on 'sdl'
def install
# Otherwise compilation fails in clang with `duplicate symbol ___sputc`
ENV.append_to_cflags '-std=gnu89'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end