Skip to content

Commit

Permalink
mupdf: also install mutool
Browse files Browse the repository at this point in the history
Closes Homebrew#21015.

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
nstCactus authored and adamv committed Jul 19, 2013
1 parent 1fa5216 commit 687495c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Library/Formula/mupdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -32,6 +33,19 @@ def install
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
Expand Down

0 comments on commit 687495c

Please sign in to comment.