aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorYohann Bianchi2013-06-24 23:26:15 +0200
committerAdam Vandenberg2013-06-27 08:31:23 -0700
commit1e3e829ee403b47833777a1c5306b4f4c623ce01 (patch)
tree4994189760dadf20b241ba08025b66bbad6b7066 /Library
parent658c9b3728b633d6fb5b0e14a6ae37dc3b11efad (diff)
downloadhomebrew-1e3e829ee403b47833777a1c5306b4f4c623ce01.tar.bz2
mediatomb: add deps, fix build
Fixes #17999. Closes #18451. Closes #19445. Closes #20759. Closes #20838. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mediatomb.rb41
1 files changed, 26 insertions, 15 deletions
diff --git a/Library/Formula/mediatomb.rb b/Library/Formula/mediatomb.rb
index dd4e6bb5f..b5465a7c2 100644
--- a/Library/Formula/mediatomb.rb
+++ b/Library/Formula/mediatomb.rb
@@ -5,28 +5,39 @@ class Mediatomb < Formula
url 'http://downloads.sourceforge.net/mediatomb/mediatomb-0.12.1.tar.gz'
sha1 '86e880584cc9c8aaf3926d56048510d1d06e76b4'
+ 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
+
# 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
def patches
- "https://launchpadlibrarian.net/71985647/libav_0.7_support.patch"
- end
-
- fails_with :clang do
- build 421
- cause <<-EOS.undent
- In file included from ../src/content_manager.cc:45:
- In file included from ../src/content_manager.h:36:
- In file included from ../src/storage.h:40:
- In file included from ../src/hash.h:47:
- ../src/hash/dbr_hash.h:127:15: error: use of undeclared identifier 'search'
- if (! search(key, &slot))
- EOS
+ [
+ "https://launchpadlibrarian.net/71985647/libav_0.7_support.patch",
+ "http://mirror.lug.udel.edu/pub/fink/finkinfo/10.7/stable/main/finkinfo/net/mediatomb.patch",
+ "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/mediatomb/files/mediatomb-0.12.1-libav9.patch",
+ "http://sourceforge.net/tracker/download.php?group_id=129766&atid=715782&file_id=445437&aid=3532724"
+ ]
end
def install
- system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
+ system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
+
+ def caveats; <<-EOS.undent
+ Edit the config file ~/.mediatomb/config.xml before running mediatomb.
+ EOS
+ end
end