2011-09-28 04:46:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mupdf < Formula
|
|
|
|
homepage 'http://mupdf.com'
|
2013-09-15 18:14:24 +00:00
|
|
|
url 'http://mupdf.googlecode.com/files/mupdf-1.3-source.tar.gz'
|
|
|
|
sha1 '082325aceb5565b07b82c2b6cc52a97533e03cf9'
|
2011-09-28 04:46:15 +00:00
|
|
|
|
2013-06-18 15:06:57 +00:00
|
|
|
depends_on :macos => :snow_leopard
|
2012-04-17 18:38:24 +00:00
|
|
|
|
2011-09-28 04:46:15 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'openjpeg'
|
|
|
|
depends_on 'jbig2dec'
|
2012-10-31 06:16:03 +00:00
|
|
|
depends_on :x11 # libpng, freetype and the X11 libs
|
2011-09-28 04:46:15 +00:00
|
|
|
|
|
|
|
def install
|
2012-10-31 06:16:03 +00:00
|
|
|
openjpeg = Formula.factory 'openjpeg'
|
|
|
|
ENV.append 'CPPFLAGS', "-I#{Dir[openjpeg.include/'openjpeg-*'].first}"
|
|
|
|
ENV.append 'CFLAGS', '-DNDEBUG'
|
2012-11-08 01:16:05 +00:00
|
|
|
ENV['SYS_FREETYPE_INC'] = "-I#{MacOS::X11.include}/freetype2"
|
2012-10-31 06:16:03 +00:00
|
|
|
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "install", "prefix=#{prefix}"
|
2012-04-17 18:38:24 +00:00
|
|
|
end
|
2011-09-28 04:46:15 +00:00
|
|
|
end
|