47 lines
2.3 KiB
Ruby
47 lines
2.3 KiB
Ruby
class Libde265 < Formula
|
|
desc "Open h.265 video codec implementation"
|
|
homepage "https://github.com/strukturag/libde265"
|
|
url "https://github.com/strukturag/libde265/releases/download/v1.0.8/libde265-1.0.8.tar.gz"
|
|
sha256 "24c791dd334fa521762320ff54f0febfd3c09fc978880a8c5fbc40a88f21d905"
|
|
license "LGPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_monterey: "e50069b8cfb753b45940ea5f95d0a44683ccfb582986947b7369d8ec404de46e"
|
|
sha256 cellar: :any, arm64_big_sur: "856e3db9a951f15fc2e3c416ddf64c8336d405fc1e407e4728804009034367e6"
|
|
sha256 cellar: :any, monterey: "2b6de4ce4fd4899e31114857b06a0993a915ef1eb55e4039b770775372d8ba62"
|
|
sha256 cellar: :any, big_sur: "6c809d037d6fe6c99a4c1492882c1e4ba720c9ead911b587da26dcb352fc5524"
|
|
sha256 cellar: :any, catalina: "774fe5c9c849784aa10648fe3fae971c7d702a47807b6954c8a8763368bce9fc"
|
|
sha256 cellar: :any, mojave: "344e3a6eab4addecd812a51ef0d6e0db5e894c26a455603a6b4f4972757a5994"
|
|
sha256 cellar: :any, high_sierra: "bcb11c6ab6f03a76ae39a1972ed5a8779e785fdc6a62591823bdf8e2ac102890"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "9c77fa36a474fb41cb046ea5215313b160e5b61ac206b268574f75d2cac1ab18"
|
|
end
|
|
|
|
# Fix -flat_namespace being used on Big Sur and later.
|
|
patch do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-big_sur.diff"
|
|
sha256 "35acd6aebc19843f1a2b3a63e880baceb0f5278ab1ace661e57a502d9d78c93c"
|
|
end
|
|
|
|
def install
|
|
extra_args = []
|
|
extra_args << "--build=aarch64-apple-darwin#{OS.kernel_version}" if Hardware::CPU.arm?
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--disable-sherlock265",
|
|
"--disable-dec265",
|
|
"--prefix=#{prefix}",
|
|
*extra_args
|
|
system "make", "install"
|
|
|
|
# Install the test-related executables in libexec.
|
|
(libexec/"bin").install bin/"acceleration_speed",
|
|
bin/"block-rate-estim",
|
|
bin/"tests"
|
|
end
|
|
|
|
test do
|
|
system libexec/"bin/tests"
|
|
end
|
|
end
|