2010-10-12 14:50:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fox < Formula
|
2012-02-13 06:50:23 +00:00
|
|
|
homepage 'http://www.fox-toolkit.org/'
|
2012-08-04 20:30:51 +00:00
|
|
|
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.6.46.tar.gz'
|
|
|
|
sha1 '0d77f6b1d6cb6e57590f2825e336d963c0218061'
|
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
|
2012-08-04 20:30:51 +00:00
|
|
|
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.7.35.tar.gz'
|
|
|
|
sha1 '9529ab0ef52ed15ad2a58d49e6bd14cd6b6b829d'
|
2011-11-14 20:10:34 +00:00
|
|
|
end
|
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
|
|
|
|
2010-10-12 14:50:06 +00:00
|
|
|
def install
|
|
|
|
# Yep, won't find freetype unless this is all set.
|
2012-08-06 05:33:36 +00:00
|
|
|
ENV.append "CFLAGS", "-I#{MacOS::X11.include}/freetype2"
|
|
|
|
ENV.append "CPPFLAGS", "-I#{MacOS::X11.include}/freetype2"
|
|
|
|
ENV.append "CXXFLAGS", "-I#{MacOS::X11.include}/freetype2"
|
2010-10-12 14:50:06 +00:00
|
|
|
|
|
|
|
system "./configure", "--enable-release",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-x", "--with-opengl"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|