homebrew-core/Formula/fontforge.rb
Michael Morgan a28db6e20c fontforge: look for png libraries in /usr/X11
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-22 07:50:10 -07:00

38 lines
970 B
Ruby

require 'formula'
class Fontforge <Formula
url 'http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20100501.tar.bz2'
homepage 'http://fontforge.sourceforge.net'
md5 '5f3d20d645ec1aa2b7b4876386df8717'
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'pango'
depends_on 'potrace'
def install
ENV.x11
system "./configure", "--prefix=#{prefix}",
"--enable-double",
"--without-freetype-bytecode",
"--without-python"
inreplace "Makefile" do |s|
s.gsub! "/Applications", "$(prefix)"
s.gsub! "/usr/local/bin", "$(bindir)"
end
system "make"
system "make install"
end
def caveats; <<-EOS.undent
fontforge is an X11 application.
To install the Mac OS X wrapper application run:
$ brew linkapps
or:
$ sudo ln -s #{prefix}/FontForge.app /Applications
EOS
end
end