2010-10-12 14:50:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fox < Formula
|
2011-11-14 20:10:34 +00:00
|
|
|
# Development and stable branches are incompatible
|
2011-11-21 02:09:33 +00:00
|
|
|
if ARGV.build_devel?
|
2011-11-14 20:10:34 +00:00
|
|
|
url 'http://ftp.fox-toolkit.org/pub/fox-1.7.30.tar.gz'
|
|
|
|
md5 '345df53f1e652bc99d1348444b4e3016'
|
|
|
|
else
|
|
|
|
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.6.44.tar.gz'
|
|
|
|
md5 '6ccc8cbcfa6e4c8b6e4deeeb39c36434'
|
|
|
|
end
|
2010-10-12 14:50:06 +00:00
|
|
|
homepage 'http://www.fox-toolkit.org/'
|
2011-11-14 20:10:34 +00:00
|
|
|
|
2011-11-21 02:09:33 +00:00
|
|
|
fails_with_llvm "Inline asm errors during build" if ARGV.build_devel?
|
2010-10-12 14:50:06 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.x11
|
|
|
|
|
|
|
|
# Yep, won't find freetype unless this is all set.
|
|
|
|
ENV.append "CFLAGS", "-I/usr/X11/include/freetype2"
|
|
|
|
ENV.append "CPPFLAGS", "-I/usr/X11/include/freetype2"
|
|
|
|
ENV.append "CXXFLAGS", "-I/usr/X11/include/freetype2"
|
|
|
|
|
|
|
|
system "./configure", "--enable-release",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-x", "--with-opengl"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|