2010-01-09 20:21:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libmms < Formula
|
2011-10-06 04:34:22 +00:00
|
|
|
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'
|
2010-01-09 20:21:39 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-01-09 20:21:39 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
|
2011-12-10 20:31:42 +00:00
|
|
|
def patches
|
|
|
|
# see https://trac.macports.org/ticket/27988
|
2012-09-05 04:04:01 +00:00
|
|
|
if MacOS.version == :leopard
|
2012-01-23 01:13:47 +00:00
|
|
|
{ :p0 => "https://trac.macports.org/export/87883/trunk/dports/multimedia/libmms/files/src_mms-common.h.patch" }
|
2011-12-10 20:31:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-01-09 20:21:39 +00:00
|
|
|
def install
|
2011-10-06 04:34:22 +00:00
|
|
|
ENV.append 'LDFLAGS', '-liconv'
|
2010-07-25 19:33:08 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
2010-01-09 20:21:39 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|