homebrew-core/Formula/mupdf.rb
2014-03-22 21:51:41 -05:00

26 lines
659 B
Ruby

require 'formula'
class Mupdf < Formula
homepage 'http://mupdf.com'
url 'https://mupdf.googlecode.com/files/mupdf-1.3-source.tar.gz'
sha1 '082325aceb5565b07b82c2b6cc52a97533e03cf9'
revision 1
depends_on :macos => :snow_leopard
depends_on 'jpeg'
depends_on 'openjpeg'
depends_on 'jbig2dec'
depends_on 'libpng'
depends_on 'freetype'
depends_on :x11
def install
openjpeg = Formula["openjpeg"]
ENV.append 'CPPFLAGS', "-I#{Dir[openjpeg.include/'openjpeg-*'].first}"
ENV.append 'CFLAGS', '-DNDEBUG'
ENV['SYS_FREETYPE_INC'] = "-I#{MacOS::X11.include}/freetype2"
system "make", "install", "prefix=#{prefix}"
end
end