4586baa9ca
Closes Homebrew/homebrew#13955. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
31 lines
921 B
Ruby
31 lines
921 B
Ruby
require 'formula'
|
|
|
|
class Fox < Formula
|
|
homepage 'http://www.fox-toolkit.org/'
|
|
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.6.46.tar.gz'
|
|
sha1 '0d77f6b1d6cb6e57590f2825e336d963c0218061'
|
|
|
|
# Development and stable branches are incompatible
|
|
devel do
|
|
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.7.35.tar.gz'
|
|
sha1 '9529ab0ef52ed15ad2a58d49e6bd14cd6b6b829d'
|
|
end
|
|
|
|
depends_on :x11
|
|
|
|
fails_with :llvm do
|
|
cause "Inline asm errors during build"
|
|
end if ARGV.build_devel?
|
|
|
|
def install
|
|
# Yep, won't find freetype unless this is all set.
|
|
ENV.append "CFLAGS", "-I#{MacOS::X11.include}/freetype2"
|
|
ENV.append "CPPFLAGS", "-I#{MacOS::X11.include}/freetype2"
|
|
ENV.append "CXXFLAGS", "-I#{MacOS::X11.include}/freetype2"
|
|
|
|
system "./configure", "--enable-release",
|
|
"--prefix=#{prefix}",
|
|
"--with-x", "--with-opengl"
|
|
system "make install"
|
|
end
|
|
end
|