homebrew-core/Formula/fox.rb

28 lines
828 B
Ruby

require 'formula'
class Fox < Formula
homepage 'http://www.fox-toolkit.org/'
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.6.47.tar.gz'
sha1 '1fd980018c0a6d743d8c4db48d47c88814736977'
# Development and stable branches are incompatible
devel do
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.7.37.tar.gz'
sha1 '7ade47704ddd15c43b56daa4236622ab3fe5b67c'
end
depends_on :x11
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