83 lines
2.5 KiB
Ruby
83 lines
2.5 KiB
Ruby
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"
|
|
revision 5
|
|
|
|
bottle do
|
|
sha256 "5272f1aa52aba79e565722123ed3401cc86816b0c9e603fdfb8927acf4e28e22" => :high_sierra
|
|
sha256 "81d7e5b5ef7e47f71ed4692408ea3bbfc0f0a31d42b1c61a1115696e9359ffc3" => :sierra
|
|
sha256 "24674461649845f8258b388025bf870a4f821f10cec4d71a54bbe7a5a1c166e8" => :el_capitan
|
|
end
|
|
|
|
depends_on "texi2html" => :build
|
|
depends_on "yasm" => :build
|
|
depends_on "faac"
|
|
depends_on "lame"
|
|
depends_on "x264"
|
|
depends_on "xvid"
|
|
depends_on "libvorbis" => :optional
|
|
depends_on "libvpx" => :optional
|
|
depends_on "theora" => :optional
|
|
|
|
patch :DATA # fix man page generation, fixed in upstream ffmpeg
|
|
|
|
def install
|
|
args = ["--prefix=#{prefix}",
|
|
"--disable-debug",
|
|
"--disable-shared",
|
|
"--enable-gpl",
|
|
"--enable-libfaac",
|
|
"--enable-libmp3lame",
|
|
"--enable-libx264",
|
|
"--enable-libxvid",
|
|
"--enable-nonfree",
|
|
"--cc=#{ENV.cc}"]
|
|
|
|
args << "--enable-libtheora" if build.with? "theora"
|
|
args << "--enable-libvorbis" if build.with? "libvorbis"
|
|
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
|
|
mv "ffprobe", "ffprobe-bc"
|
|
mv "doc/ffprobe.1", "doc/ffprobe-bc.1"
|
|
bin.install "ffmbc", "ffprobe-bc"
|
|
man.mkpath
|
|
man1.install "doc/ffmbc.1", "doc/ffprobe-bc.1"
|
|
end
|
|
|
|
def caveats
|
|
<<~EOS
|
|
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};
|
|
|