homebrew-core/Formula/ffmbc.rb

92 lines
2.9 KiB
Ruby
Raw Normal View History

class Ffmbc < Formula
desc "FFmpeg customized for broadcast and professional usage"
homepage "https://code.google.com/p/ffmbc/"
url "https://drive.google.com/uc?export=download&id=0B0jxxycBojSwTEgtbjRZMXBJREU"
version "0.7.2"
sha256 "caaae2570c747077142db34ce33262af0b6d0a505ffbed5c4bdebce685d72e42"
2012-08-24 05:50:27 +00:00
2014-03-25 20:48:16 +00:00
bottle do
2015-03-12 08:50:02 +00:00
sha256 "46519725eff4d6b78e67fa9a9ddd268c6f11951aac75d334878fa09fb46d884f" => :yosemite
sha256 "dc107a71f2865144699f9b610cf31925be313529673d23d8f4b3ed12d886a33e" => :mavericks
sha256 "450afcd5675ffa2f530ecb52294478a9eed65a3c35356dae57a79559651b5bac" => :mountain_lion
2014-03-25 20:48:16 +00:00
end
2013-02-02 21:54:47 +00:00
option "without-x264", "Disable H.264 encoder"
2012-08-24 05:50:27 +00:00
option "without-lame", "Disable MP3 encoder"
2013-02-02 21:54:47 +00:00
option "without-xvid", "Disable Xvid MPEG-4 video encoder"
2012-08-14 22:29:49 +00:00
# manpages won't be built without texi2html
depends_on "texi2html" => :build if MacOS.version >= :mountain_lion
depends_on "yasm" => :build
2012-08-24 05:50:27 +00:00
depends_on "x264" => :recommended
depends_on "faac" => :recommended
depends_on "lame" => :recommended
depends_on "xvid" => :recommended
2012-08-24 05:50:27 +00:00
depends_on "freetype" => :optional
depends_on "theora" => :optional
depends_on "libvorbis" => :optional
depends_on "libogg" => :optional
depends_on "libvpx" => :optional
patch :DATA # fix man page generation, fixed in upstream ffmpeg
def install
args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-shared",
"--enable-gpl",
"--enable-nonfree",
"--cc=#{ENV.cc}"]
args << "--enable-libx264" if build.with? "x264"
args << "--enable-libfaac" if build.with? "faac"
args << "--enable-libmp3lame" if build.with? "lame"
args << "--enable-libxvid" if build.with? "xvid"
2012-08-24 05:50:27 +00:00
args << "--enable-libfreetype" if build.with? "freetype"
args << "--enable-libtheora" if build.with? "theora"
args << "--enable-libvorbis" if build.with? "libvorbis"
args << "--enable-libogg" if build.with? "libogg"
args << "--enable-libvpx" if build.with? "libvpx"
system "./configure", *args
system "make"
# ffmbc's lib and bin names conflict with ffmpeg and libav
# This formula will only install the commandline tools
2012-02-13 06:41:23 +00:00
mv "ffprobe", "ffprobe-bc"
bin.install "ffmbc", "ffprobe-bc"
end
def caveats
<<-EOS.undent
Due to naming conflicts with other FFmpeg forks, this formula installs
only static binaries - no shared libraries are built.
The `ffprobe` program has been renamed to `ffprobe-bc` to avoid name
conflicts with the FFmpeg executable of the same name.
EOS
end
test do
system "#{bin}/ffmbc", "-h"
end
end
__END__
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 18531be..88b0a3f 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -297,6 +297,8 @@ $inf = pop @instack;
die "No filename or title\n" unless defined $fn && defined $tl;
+print "=encoding utf8\n\n";
+
$sects{NAME} = "$fn \- $tl\n";
$sects{FOOTNOTES} .= "=back\n" if exists $sects{FOOTNOTES};