|
| 1 | +class Vvdec < Formula |
| 2 | + desc "Fraunhofer Versatile Video Decoder" |
| 3 | + homepage "https://github.com/fraunhoferhhi/vvdec" |
| 4 | + url "https://github.com/fraunhoferhhi/vvdec/archive/refs/tags/v1.6.1.tar.gz" |
| 5 | + sha256 "72de0cbcd24285e6f66209be9270f8f0c897d24e586b3876c6a7bb5691375c48" |
| 6 | + license "BSD-3-Clause-Clear" |
| 7 | + head "https://github.com/fraunhoferhhi/vvdec.git", branch: "master" |
| 8 | + |
| 9 | + bottle do |
| 10 | + sha256 cellar: :any, arm64_ventura: "fbba911cd7462add2a47e829d49a682ccc2146f23999ca0d461520a62d0c15de" |
| 11 | + sha256 cellar: :any, arm64_monterey: "00937d55751ec2d1aba6509e5a814f381223d9957ff0759ed4e0255ad783d2b4" |
| 12 | + sha256 cellar: :any, arm64_big_sur: "75d9beb084c1c866c4a6c489f00457d234dabe962e1d5b1f043aa03ef1d00fee" |
| 13 | + sha256 cellar: :any, ventura: "e03a0d675cb8e785b06de728d022b69949ca403098bd50b9c422aa4168db7357" |
| 14 | + sha256 cellar: :any, monterey: "acef3db5aecdf1dc02653ba0b18078ba85cdc30cd011ebbe9b162cc802b8241a" |
| 15 | + sha256 cellar: :any, big_sur: "374b8847719440b5af13e7d4b59bae3d5d3efa0e21bb5ae20280a922d95e7a46" |
| 16 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "076c4ed2955883781792470197d9798ade7620ecafa9bcfcf1a7c643d0947fdf" |
| 17 | + end |
| 18 | + |
| 19 | + depends_on "cmake" => :build |
| 20 | + |
| 21 | + resource("test_video") do |
| 22 | + url "https://archive.org/download/testvideo_20230410_202304/test.vvc" |
| 23 | + sha256 "753261009b6472758cde0dee2c004ff712823b43e62ec3734f0f46380bec8e46" |
| 24 | + end |
| 25 | + |
| 26 | + def install |
| 27 | + system "cmake", "-S", ".", "-B", "build", |
| 28 | + "-DBUILD_SHARED_LIBS=1", |
| 29 | + "-DVVDEC_INSTALL_VVDECAPP=1", |
| 30 | + *std_cmake_args |
| 31 | + system "cmake", "--build", "build" |
| 32 | + system "cmake", "--install", "build" |
| 33 | + end |
| 34 | + |
| 35 | + test do |
| 36 | + resource("test_video").stage testpath |
| 37 | + system bin/"vvdecapp", "-b", testpath/"test.vvc", "-o", testpath/"test.yuv" |
| 38 | + assert_predicate testpath/"test.yuv", :exist? |
| 39 | + end |
| 40 | +end |
0 commit comments