homebrew-core/Formula/bento4.rb

29 lines
1 KiB
Ruby
Raw Normal View History

class Bento4 < Formula
desc "Full-featured MP4 format and MPEG DASH library and tools"
homepage "https://www.bento4.com/"
url "https://github.com/axiomatic-systems/Bento4/archive/v1.5.1-621.tar.gz"
version "1.5.1-621"
sha256 "425381f197b262a7c4f81baedf04138abb90c9b9d55b61d7d250505c2f7ac31a"
2017-07-20 12:23:59 +00:00
bottle do
cellar :any_skip_relocation
2017-10-16 06:50:34 +00:00
sha256 "3e7a5cb02a3dc91637782ed79380b98d4db0780b17981c341d3f5abb24f9cff0" => :high_sierra
sha256 "32bc7e9d96a4d00277a4114f984125527ff44ae5094b33aa6c49948b4fbca3fd" => :sierra
sha256 "9a764950286b76d905c030f2c5b3e39a4bf763ece1f6b6aca0b357a414206636" => :el_capitan
2017-07-20 12:23:59 +00:00
end
conflicts_with "gpac", :because => "both install `mp42ts` binaries"
def install
cd "Build/Targets/any-gnu-gcc" do
system "make", "AP4_BUILD_CONFIG=Release"
bin.install Dir["Release/*"].select { |f| File.executable?(f) }
end
end
test do
system "#{bin}/mp4mux", "--track", test_fixtures("test.m4a"), "out.mp4"
assert_predicate testpath/"out.mp4", :exist?, "Failed to create out.mp4!"
end
end