homebrew-core/Formula/libmms.rb
Jack Nagel 2bdc3af9fb libmms: apply patch for Leopard
See https://trac.macports.org/ticket/27988

Fixes Homebrew/homebrew#9074.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-10 14:34:53 -06:00

23 lines
696 B
Ruby

require 'formula'
class Libmms < Formula
url 'http://downloads.sourceforge.net/project/libmms/libmms/0.6.2/libmms-0.6.2.tar.gz'
homepage 'http://sourceforge.net/projects/libmms/'
sha1 'cdef62fd1a0e2585dd2111fc94b032f84290e351'
depends_on 'pkg-config' => :build
depends_on 'glib'
def patches
# see https://trac.macports.org/ticket/27988
if MacOS.leopard?
{ :p0 => "https://svn.macports.org/repository/macports/!svn/bc/87883/trunk/dports/multimedia/libmms/files/src_mms-common.h.patch" }
end
end
def install
ENV.append 'LDFLAGS', '-liconv'
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
end
end