homebrew-core/Formula/fox.rb

65 lines
2.7 KiB
Ruby

class Fox < Formula
desc "Toolkit for developing Graphical User Interfaces easily"
homepage "http://fox-toolkit.org/"
url "http://fox-toolkit.org/ftp/fox-1.6.56.tar.gz"
sha256 "c517e5fcac0e6b78ca003cc167db4f79d89e230e5085334253e1d3f544586cb2"
license "LGPL-2.1-or-later"
revision 2
livecheck do
url "http://fox-toolkit.org/news.html"
regex(/FOX STABLE v?(\d+(?:\.\d+)+)/i)
end
bottle do
sha256 cellar: :any, arm64_monterey: "0565eec3e7a0362e8cdc126f4cd02e072edf748b62780ff76f788b037df5243c"
sha256 cellar: :any, arm64_big_sur: "9e595940c212b8efb8588736216000490c8e8f4eff89b96be34aa92702538f1f"
sha256 cellar: :any, monterey: "78d2f9f4d2fd8cd0480866d53067f975cbbb4f31c26a87d18fe7e811f4e34d48"
sha256 cellar: :any, big_sur: "f7988beb83a1343a270ba6107f8693550fb4b6f92632600849eb11f203bfa2fc"
sha256 cellar: :any, catalina: "e9f946383a4fc88a230622abd2c38386053f20c35eb632bf62ea8e06e43be7ab"
sha256 cellar: :any, mojave: "7017807cda0f8aa8e43338d4556ec842db95626984f7a9eaef4b926a9dff7310"
sha256 cellar: :any, high_sierra: "3705392848b062aa09d8be70c0f99b0331eeeceaea685389d684644e86f7fe22"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d1112c8f6b5628822873dae32f31101f2f05d028629e718b3120e4fdf75e88ad"
end
depends_on "fontconfig"
depends_on "freetype"
depends_on "jpeg"
depends_on "libpng"
depends_on "libtiff"
depends_on "libx11"
depends_on "libxcursor"
depends_on "libxext"
depends_on "libxfixes"
depends_on "libxft"
depends_on "libxi"
depends_on "libxrandr"
depends_on "libxrender"
depends_on "mesa"
depends_on "mesa-glu"
# 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
# Needed for libxft to find ftbuild2.h provided by freetype
ENV.append "CPPFLAGS", "-I#{Formula["freetype"].opt_include}/freetype2"
system "./configure", "--disable-dependency-tracking",
"--enable-release",
"--prefix=#{prefix}",
"--with-x",
"--with-opengl"
# Unset LDFLAGS, "-s" causes the linker to crash
system "make", "install", "LDFLAGS="
rm bin/"Adie.stx"
end
test do
system bin/"reswrap", "-t", "-o", "text.txt", test_fixtures("test.jpg")
assert_match "\\x00\\x85\\x80\\x0f\\xae\\x03\\xff\\xd9", File.read("text.txt")
end
end