homebrew-core/Formula/fox.rb
2017-01-27 09:09:50 +00:00

28 lines
918 B
Ruby

class Fox < Formula
desc "Toolkit for developing Graphical User Interfaces easily."
homepage "http://www.fox-toolkit.org/"
url "http://ftp.fox-toolkit.org/pub/fox-1.6.51.tar.gz"
sha256 "15a99792965d933a4936e48b671c039657546bdec6a318c223ab1131624403d1"
depends_on :x11
depends_on "freetype"
depends_on "libpng"
depends_on "jpeg"
depends_on "libtiff"
def install
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