homebrew-core/Formula/libftdi0.rb

48 lines
2.4 KiB
Ruby

class Libftdi0 < Formula
desc "Library to talk to FTDI chips"
homepage "https://www.intra2net.com/en/developer/libftdi"
url "https://www.intra2net.com/en/developer/libftdi/download/libftdi-0.20.tar.gz"
sha256 "3176d5b5986438f33f5208e690a8bfe90941be501cc0a72118ce3d338d4b838e"
bottle do
rebuild 2
sha256 cellar: :any, arm64_ventura: "49e1218cecb4cb2c0ac5a274beb6f2f57171d845ddc5117474c0482df90a04e3"
sha256 cellar: :any, arm64_monterey: "aa6fa3c7382182d2cccdfad72fd6842b382498c6c5dd5e7a4231313e6cd0e2ab"
sha256 cellar: :any, arm64_big_sur: "0c48950d5292b7eca6aa02488d53792cc2b83b3bb0aa657cce08d10141eba5d2"
sha256 cellar: :any, monterey: "28b4982190f4f50bbb0b9875d159adaeb71f9dab8ae960b0140f1b9d45939c65"
sha256 cellar: :any, big_sur: "710564aabb66bbb9b82f0fccd149fdf40f6e1a7886bd624829a07a9c41752e63"
sha256 cellar: :any, catalina: "064e2f32a4a8959f2a489611c931beac426f509a8299bbcdd03871b1d5f5859e"
sha256 cellar: :any, mojave: "c3238e8f4458ead2c663c8d5b48e2052d3ee606b75278a9839546fd2e6c7de49"
sha256 cellar: :any, high_sierra: "ef988a7e074542fb5df2c8e803b19e9d20b8602e3899833b10d6cdf862b4c5be"
sha256 cellar: :any, sierra: "f89e79f5eb94d55e130dcc55deca87f1241b386bf45070dda52c2c22707ead15"
sha256 cellar: :any, el_capitan: "8fbc5ef456600b919430d86dd4e7090ae1f1064e4a51d631ab9bd7b39887ead2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b534233dfc308f70dba8650d30fdd2d82a4991a5f9afd0f892ec2adb0af63395"
end
# The `libftdi` formula tracks the current release
deprecate! date: "2022-06-22", because: :unmaintained
depends_on "libusb-compat"
conflicts_with "cspice", because: "both install `simple` binaries"
conflicts_with "openhmd", because: "both install `simple` binaries"
# Fix -flat_namespace being used on Big Sur and later.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
end
def install
mkdir "libftdi-build" do
system "../configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
end
test do
system "#{bin}/libftdi-config", "--version"
end
end