homebrew-core/Formula/libmms.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

24 lines
714 B
Ruby

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