2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 00:54:56 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mediatomb < Formula
|
2010-03-31 17:05:24 +00:00
|
|
|
homepage 'http://mediatomb.cc'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/mediatomb/mediatomb-0.12.1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '86e880584cc9c8aaf3926d56048510d1d06e76b4'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2013-06-24 21:26:15 +00:00
|
|
|
depends_on 'libexif' => :recommended
|
|
|
|
depends_on 'libmagic' => :recommended
|
|
|
|
depends_on 'lzlib' => :recommended
|
|
|
|
depends_on 'mp4v2' => :recommended
|
|
|
|
depends_on 'spidermonkey' => :recommended
|
|
|
|
depends_on 'sqlite' => :recommended
|
|
|
|
depends_on 'taglib' => :recommended
|
|
|
|
|
|
|
|
depends_on 'ffmpeg' => :optional
|
|
|
|
depends_on 'ffmpegthumbnailer' => :optional
|
|
|
|
depends_on 'id3lib' => :optional
|
|
|
|
depends_on 'lastfmlib' => :optional
|
|
|
|
depends_on 'mysql' => :optional
|
|
|
|
|
2011-12-07 06:36:31 +00:00
|
|
|
# This is for libav 0.7 support. See:
|
|
|
|
# https://bugs.launchpad.net/ubuntu/+source/mediatomb/+bug/784431
|
|
|
|
# http://sourceforge.net/tracker/?func=detail&aid=3291062&group_id=129766&atid=715780
|
2014-03-17 22:49:17 +00:00
|
|
|
patch do
|
|
|
|
url "https://launchpadlibrarian.net/71985647/libav_0.7_support.patch"
|
|
|
|
sha1 "8f8811d3879f4b8d2e1132fe2016a54b4fdf5b87"
|
|
|
|
end
|
|
|
|
|
|
|
|
patch do
|
|
|
|
url "http://ftp.heanet.ie/mirrors/fink/finkinfo/10.7/stable/main/finkinfo/net/mediatomb.patch"
|
|
|
|
sha1 "d3b626d4071276eda7bc008a61b98b500cd58456"
|
|
|
|
end
|
|
|
|
|
|
|
|
patch do
|
|
|
|
url "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/mediatomb/files/mediatomb-0.12.1-libav9.patch"
|
|
|
|
sha1 "d9e49e57f2cec433acfac5df8040b6fd3b4190a5"
|
|
|
|
end
|
|
|
|
|
|
|
|
patch do
|
|
|
|
url "http://sourceforge.net/tracker/download.php?group_id=129766&atid=715782&file_id=445437&aid=3532724"
|
|
|
|
sha1 "7f4f9ef10fcbb05de95780f43bf4df9bd6563918"
|
2012-04-24 16:10:16 +00:00
|
|
|
end
|
|
|
|
|
2014-05-13 16:40:22 +00:00
|
|
|
# Upstream patch: http://sourceforge.net/p/mediatomb/patches/35/
|
|
|
|
patch do
|
|
|
|
url "http://patch-tracker.debian.org/patch/series/dl/mediatomb/0.12.1-5/0010_fix_libmp4v2_build.patch"
|
|
|
|
sha1 "5b879fc1640e2283941075e555212d4b81dd8e48"
|
|
|
|
end
|
|
|
|
|
2009-09-19 00:54:56 +00:00
|
|
|
def install
|
2014-05-13 16:40:22 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
|
|
|
|
if build.without? "mp4v2"
|
|
|
|
args << "--disable-libmp4v2"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
2009-09-19 00:54:56 +00:00
|
|
|
end
|
2013-06-24 21:26:15 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Edit the config file ~/.mediatomb/config.xml before running mediatomb.
|
|
|
|
EOS
|
|
|
|
end
|
2009-09-19 00:54:56 +00:00
|
|
|
end
|