1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Lightweight PDF and XPS viewer
8 HOMEPAGE= https://mupdf.com/
12 SITES[main]= https://mupdf.com/downloads/archive/
13 https://mupdf.com/downloads/
14 DISTFILE[1]= mupdf-1.16.1-source.tar.gz:main
16 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= none
22 OPTIONS_STANDARD= none
24 BUILDRUN_DEPENDS= curl:primary:standard
25 freetype:primary:standard
26 harfbuzz:primary:standard
27 openjpeg:single:standard
28 jbig2dec:single:standard
29 freeglut:primary:standard
31 USES= cpe gmake pkgconfig
32 XORG_COMPONENTS= x11 xcursor xext xinerama xrandr
34 DISTNAME= mupdf-1.16.1-source
36 LICENSE= AGPLv3+:primary
37 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
38 LICENSE_FILE= AGPLv3+:{{WRKSRC}}/COPYING
42 FPC_EQUIVALENT= graphics/mupdf
44 MAKE_ARGS= build=release
46 mandir={{MANPREFIX}}/man
55 -I{{WRKSRC}}/include/mupdf
56 -I{{LOCALBASE}}/include/freetype2
57 -I{{LOCALBASE}}/include/harfbuzz
58 VAR_ARCH[x86_64]= CFLAGS=-fPIC
61 ${REINPLACE_CMD} -e "s|%%OPSYS%%|${OPSYS}|; s/-pipe -O2 //" \
65 ${MV} ${STAGEDIR}${PREFIX}/bin/mupdf-x11 ${STAGEDIR}${PREFIX}/bin/mupdf
66 ${INSTALL_PROGRAM} ${WRKSRC}/build/release/muraster \
67 ${STAGEDIR}${PREFIX}/bin
68 ${LN} -s libmupdf.so.1.16.1 \
69 ${STAGEDIR}${PREFIX}/lib/libmupdf.so
70 ${LN} -s libmupdfthird.so.1.16.1 \
71 ${STAGEDIR}${PREFIX}/lib/libmupdfthird.so
72 ${MKDIR ${STAGEDIR}${PREFIX}/share/examples
73 ${MV} ${STAGEDIR}${PREFIX}/share/doc/mupdf/examples \
74 ${STAGEDIR}${STD_EXAMPLESDIR}
75 ${RM} ${STAGEDIR}${STD_DOCDIR}/COPYING
78 ${RM} -r ${WRKSRC}/thirdparty/curl \
79 ${WRKSRC}/thirdparty/freetype \
80 ${WRKSRC}/thirdparty/freeglut \
81 ${WRKSRC}/thirdparty/harfbuzz \
82 ${WRKSRC}/thirdparty/jbig2dec \
83 ${WRKSRC}/thirdparty/openjpeg \
84 ${WRKSRC}/thirdparty/zlib
85 ${AWK} '/^LICENSE/,/^REPORTING/' ${WRKSRC}/README > ${WRKDIR}/TERMS
88 ${REINPLACE_CMD} -e '/define _XOPEN_SOURCE/d' \
89 ${WRKSRC}/platform/x11/x11_image.c
91 [FILE:828:descriptions/desc.primary]
92 MuPDF is a lightweight PDF viewer and toolkit written in portable C.
94 The renderer in MuPDF is tailored for high quality anti-aliased graphics.
95 It renders text with metrics and spacing accurate to within fractions of a
96 pixel for the highest fidelity in reproducing the look of a printed page on
99 MuPDF has a small footprint. A binary that includes the standard Roman
100 fonts is only one megabyte. A build with full CJK support (including an
101 Asian font) is approximately five megabytes.
103 MuPDF has support for all non-interactive PDF 1.7 features, and the toolkit
104 provides a simple API for accessing the internal structures of the PDF
105 document. Example code for navigating interactive links and bookmarks,
106 encrypting PDF files, extracting fonts, images, and searchable text, and
107 rendering pages to image files is provided.
111 e71da73dd593dd779b8e0995978ec071139ae51ca7bcccd095dd8922278be447 60805318 mupdf-1.16.1-source.tar.gz
114 [FILE:951:manifests/plist.primary]
192 libmupdf.so.%%SOVERSION%%
194 libmupdfthird.so.%%SOVERSION%%
200 [FILE:463:manifests/plist.docs]
208 coding-progressive.html
212 manual-mutool-clean.html
213 manual-mutool-convert.html
214 manual-mutool-create.html
215 manual-mutool-draw.html
216 manual-mutool-extract.html
217 manual-mutool-merge.html
218 manual-mutool-run.html
219 manual-mutool-show.html
220 manual-mutool-trace.html
226 [FILE:254:manifests/plist.examples]
227 share/examples/mupdf/
236 pdf-create-lowlevel.js
244 [FILE:616:patches/patch-Makefile]
245 --- Makefile.orig 2019-08-02 14:49:26 UTC
247 @@ -189,13 +189,17 @@ generate: source/pdf/js/util.js.h
251 -MUPDF_LIB = $(OUT)/libmupdf.a
252 -THIRD_LIB = $(OUT)/libmupdf-third.a
253 +MUPDF_LIB = libmupdf.so.$(SOVERSION)
254 +THIRD_LIB = libmupdfthird.so.$(SOVERSION)
255 THREAD_LIB = $(OUT)/libmupdf-threads.a
256 PKCS7_LIB = $(OUT)/libmupdf-pkcs7.a
258 $(MUPDF_LIB) : $(MUPDF_OBJ)
259 + $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -o $@ $^ $(LIBS)
261 $(THIRD_LIB) : $(THIRD_OBJ)
262 + $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -o $@ $^ $(LIBS)
264 $(THREAD_LIB) : $(THREAD_OBJ)
265 $(PKCS7_LIB) : $(PKCS7_OBJ)
269 [FILE:666:patches/patch-Makerules]
270 --- Makerules.orig 2019-08-02 14:49:26 UTC
272 @@ -85,7 +85,7 @@ else ifeq ($(OS),MACOS)
274 RANLIB = xcrun ranlib
276 -else ifeq ($(OS),Linux)
277 +else ifeq ($(OS),%%OPSYS%%)
280 ifeq ($(shell pkg-config --exists freetype2 && echo yes),yes)
281 @@ -131,7 +131,7 @@ else ifeq ($(OS),Linux)
282 X11_LIBS := $(shell pkg-config --libs x11 xext)
285 - HAVE_LIBCRYPTO := $(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)
286 + HAVE_LIBCRYPTO := no
287 ifeq ($(HAVE_LIBCRYPTO),yes)
288 LIBCRYPTO_CFLAGS := $(shell pkg-config --cflags libcrypto) -DHAVE_LIBCRYPTO
289 LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto)
292 [FILE:505:patches/patch-Makethird]
293 --- Makethird.orig 2019-08-02 14:49:26 UTC
296 # GNU Makefile for third party libraries used by MuPDF
298 +USE_SYSTEM_LIBS := yes
299 ifeq ($(USE_SYSTEM_LIBS),yes)
300 USE_SYSTEM_FREETYPE := yes
301 USE_SYSTEM_HARFBUZZ := yes
302 USE_SYSTEM_JBIG2DEC := yes
303 USE_SYSTEM_JPEGXR := no # not available
304 USE_SYSTEM_LCMS2 := no # lcms2mt is strongly preferred
305 - USE_SYSTEM_LIBJPEG := yes
306 USE_SYSTEM_MUJS := no # not available
307 USE_SYSTEM_OPENJPEG := yes
308 USE_SYSTEM_ZLIB := yes