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-01-23 04:32:15 +00:00
|
|
|
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.6.44.tar.gz'
|
2012-03-27 04:30:54 +00:00
|
|
|
md5 '5d3658faf0855826ff6ce8f95e413949'
|
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-02-13 06:50:23 +00:00
|
|
|
url 'http://ftp.fox-toolkit.org/pub/fox-1.7.32.tar.gz'
|
|
|
|
md5 '1cf2607d15ffad5b664cf65bfcd249bc'
|
2011-11-14 20:10:34 +00:00
|
|
|
end
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
cause "Inline asm errors during build"
|
|
|
|
end 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
|