openbsd-ports/textproc/mupdf/patches/patch-Makerules
sthen 80be9e2293 update mupdf (a nice fast lightweight pdf viewer with its own codebase
rather than yet-another-xpdf-derivative) to 0.8.15.

various improvements and fixes, notably now supports AESv3 encrypted
PDFs and, very welcome, search now operates over all pages and is thus
actually useful.
2011-03-22 23:40:46 +00:00

20 lines
488 B
Plaintext

$OpenBSD: patch-Makerules,v 1.3 2011/03/22 23:40:46 sthen Exp $
--- Makerules.orig Wed Mar 16 11:57:24 2011
+++ Makerules Tue Mar 22 23:02:07 2011
@@ -55,6 +55,15 @@ LDFLAGS += -m32
endif
endif
+ifeq "$(OS)" "OpenBSD"
+ifeq "$(freetype_dir)" ""
+CFLAGS += `pkg-config --cflags freetype2`
+LDFLAGS += `pkg-config --libs freetype2`
+endif
+X11LIBS = -lX11 -lXext
+PDFVIEW_EXE = $(X11VIEW_EXE)
+endif
+
# MinGW build depends on thirdparty libs
ifeq "$(OS)" "MINGW"
WINDRES ?= windres