homebrew-core/Formula/lame.rb

46 lines
2.4 KiB
Ruby

class Lame < Formula
desc "High quality MPEG Audio Layer III (MP3) encoder"
homepage "https://lame.sourceforge.io/"
url "https://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz"
sha256 "ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e"
license "LGPL-2.0-or-later"
livecheck do
url :stable
regex(%r{url=.*?/lame[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
bottle do
sha256 cellar: :any, arm64_ventura: "dde2fd627f56465b34aa521ec5ea789a2b6672f0336f5f9a0b6b831342b1052e"
sha256 cellar: :any, arm64_monterey: "67ee7aa900fa0b411c3731783ee53b17517145a03a90b1f35068b01d17b5c347"
sha256 cellar: :any, arm64_big_sur: "2ff2c6ad3cfd26e1ba53230631e2f04734a4638c344cce50ff0b8fc36b45c403"
sha256 cellar: :any, ventura: "745542d02ea729f40b4919b73b2a716e21c7ff0f502068ebd25ab02edcf13ba4"
sha256 cellar: :any, monterey: "11e516ec779a6f469e9853dbdf65c57e5514177474d70f38cef9c4163b92dfab"
sha256 cellar: :any, big_sur: "6ceaf88479ce365df8c29140359984ad8debcc44898b99424b39d729e923279b"
sha256 cellar: :any, catalina: "02b6a2cbf9b902225308bc90c8314699761cbdcd13628271579f5345d8160af2"
sha256 cellar: :any, mojave: "737751faa513a68ac2499bb5cc607bc366e15dab8ff3bff5443567a455af5c3f"
sha256 cellar: :any, high_sierra: "9e65c67b83efa5a686aea0506dc44935cd2af2d4fe55fe38dc19610a0ccd80dd"
sha256 cellar: :any, sierra: "c2d7bce53be2efb5d19d99ea00fbe69613885cce46009e8ab6099f8d5925c3ba"
sha256 cellar: :any, el_capitan: "73c4d677b4e5357dc5baf30c96ac5f33cf7902e9c77869834b7cd9d17f3415bc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ee8318f10b1b986d57826f0f59800c43f62d58e8d52cf9c94b8924e28739e656"
end
uses_from_macos "ncurses"
def install
# Fix undefined symbol error _lame_init_old
# https://sourceforge.net/p/lame/mailman/message/36081038/
inreplace "include/libmp3lame.sym", "lame_init_old\n", ""
system "./configure", "--disable-dependency-tracking",
"--disable-debug",
"--prefix=#{prefix}",
"--enable-nasm"
system "make", "install"
end
test do
system "#{bin}/lame", "--genre-list", test_fixtures("test.mp3")
end
end