fox: import from homebrew/x11.
This commit is contained in:
parent
6290cce050
commit
3e5118e6b2
1 changed files with 28 additions and 0 deletions
28
Formula/fox.rb
Normal file
28
Formula/fox.rb
Normal file
|
@ -0,0 +1,28 @@
|
|||
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
|
Loading…
Reference in a new issue