2014-08-22 02:47:35 +00:00
|
|
|
require "formula"
|
2010-10-12 14:50:06 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fox < Formula
|
2014-08-22 02:47:35 +00:00
|
|
|
homepage "http://www.fox-toolkit.org/"
|
|
|
|
url "ftp://ftp.fox-toolkit.org/pub/fox-1.6.49.tar.gz"
|
|
|
|
sha1 "056a55ba7b4404af61d4256eafdf8fd0503c6fea"
|
2012-01-23 04:32:15 +00:00
|
|
|
|
2012-02-13 06:50:23 +00:00
|
|
|
# Development and stable branches are incompatible
|
2012-01-23 04:32:15 +00:00
|
|
|
devel do
|
2014-08-22 02:47:35 +00:00
|
|
|
url "ftp://ftp.fox-toolkit.org/pub/fox-1.7.49.tar.gz"
|
|
|
|
sha1 "a787a1300ddaf0330bb6ba656deda248d6e44f7a"
|
2011-11-14 20:10:34 +00:00
|
|
|
end
|
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2014-04-26 20:41:26 +00:00
|
|
|
depends_on "freetype"
|
|
|
|
depends_on "libpng"
|
|
|
|
depends_on "jpeg"
|
|
|
|
depends_on "libtiff"
|
2012-06-07 01:35:12 +00:00
|
|
|
|
2010-10-12 14:50:06 +00:00
|
|
|
def install
|
2014-04-26 20:41:26 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--enable-release",
|
2010-10-12 14:50:06 +00:00
|
|
|
"--prefix=#{prefix}",
|
2014-04-26 20:41:26 +00:00
|
|
|
"--with-x",
|
|
|
|
"--with-opengl"
|
2014-04-26 20:44:18 +00:00
|
|
|
# Unset LDFLAGS, "-s" causes the linker to crash
|
|
|
|
system "make", "install", "LDFLAGS="
|
2014-08-22 02:47:35 +00:00
|
|
|
rm bin/"Adie.stx"
|
2010-10-12 14:50:06 +00:00
|
|
|
end
|
|
|
|
end
|