aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mupdf.rb16
1 files changed, 15 insertions, 1 deletions
diff --git a/Library/Formula/mupdf.rb b/Library/Formula/mupdf.rb
index 7c8940c71..02bfe8e61 100644
--- a/Library/Formula/mupdf.rb
+++ b/Library/Formula/mupdf.rb
@@ -12,8 +12,9 @@ class Mupdf < Formula
depends_on 'jbig2dec'
depends_on :x11 # libpng, freetype and the X11 libs
+ # Fix up the Makefile so it doesn't mess with our CFLAGS.
+ # Install mutool (fixed in HEAD)
def patches
- # Fix up the Makefile so it doesn't mess with our CFLAGS.
DATA
end
@@ -32,6 +33,19 @@ __END__
Remove some Makefile rules that Homebrew takes care of through CFLAGS and
LDFLAGS. MuPDF doesn't look at CPPFLAGS, so we piggyback it onto CFLAGS.
+diff --git a/Makefile b/Makefile
+index 0371def..02dfdfe 100644
+--- a/Makefile
++++ b/Makefile
+@@ -212,7 +212,7 @@ install: $(FITZ_LIB) $(MUVIEW) $(MUDRAW) $(MUTOOL)
+ install -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(incdir) $(DESTDIR)$(mandir)/man1
+ install $(FITZ_LIB) $(DESTDIR)$(libdir)
+ install fitz/memento.h fitz/fitz.h pdf/mupdf.h xps/muxps.h cbz/mucbz.h $(DESTDIR)$(incdir)
+- install $(MUVIEW) $(MUDRAW) $(MUBUSY) $(DESTDIR)$(bindir)
++ install $(MUVIEW) $(MUDRAW) $(MUBUSY) $(MUTOOL) $(DESTDIR)$(bindir)
+ install $(wildcard apps/man/*.1) $(DESTDIR)$(mandir)/man1
+
+ # --- Clean and Default ---
diff --git a/Makerules b/Makerules
index 3e036f6..c9ddc69 100644
--- a/Makerules