Ravenports generated: 15 Jan 2020 17:51
[ravenports.git] / bucket_E0 / mupdf
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               mupdf
4 VERSION=                1.16.1
5 KEYWORDS=               graphics
6 VARIANTS=               standard
7 SDESC[standard]=        Lightweight PDF and XPS viewer
8 HOMEPAGE=               https://mupdf.com/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://mupdf.com/downloads/archive/
13                         https://mupdf.com/downloads/
14 DISTFILE[1]=            mupdf-1.16.1-source.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         docs
19                         examples
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
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
30
31 USES=                   cpe gmake pkgconfig
32 XORG_COMPONENTS=        x11 xcursor xext xinerama xrandr
33
34 DISTNAME=               mupdf-1.16.1-source
35
36 LICENSE=                AGPLv3+:primary
37 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
38 LICENSE_FILE=           AGPLv3+:{{WRKSRC}}/COPYING
39 LICENSE_SCHEME=         solo
40
41 CPE_VENDOR=             artifex
42 FPC_EQUIVALENT=         graphics/mupdf
43
44 MAKE_ARGS=              build=release
45                         prefix={{PREFIX}}
46                         mandir={{MANPREFIX}}/man
47                         verbose=yes
48                         SOVERSION=1.16.1
49
50 SOVERSION=              1.16.1
51
52 CFLAGS=                 `pkg-config
53                         --cflags
54                         libopenjp2`
55                         -I{{WRKSRC}}/include/mupdf
56                         -I{{LOCALBASE}}/include/freetype2
57                         -I{{LOCALBASE}}/include/harfbuzz
58 VAR_ARCH[x86_64]=       CFLAGS=-fPIC
59
60 post-patch:
61         ${REINPLACE_CMD} -e "s|%%OPSYS%%|${OPSYS}|; s/-pipe -O2 //" \
62                 ${WRKSRC}/Makerules
63
64 post-install:
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
76
77 post-extract:
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
86
87 post-patch-sunos:
88         ${REINPLACE_CMD} -e '/define _XOPEN_SOURCE/d' \
89                 ${WRKSRC}/platform/x11/x11_image.c
90
91 [FILE:828:descriptions/desc.primary]
92 MuPDF is a lightweight PDF viewer and toolkit written in portable C.
93
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
97 screen.
98
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.
102
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.
108
109
110 [FILE:105:distinfo]
111 e71da73dd593dd779b8e0995978ec071139ae51ca7bcccd095dd8922278be447     60805318 mupdf-1.16.1-source.tar.gz
112
113
114 [FILE:951:manifests/plist.primary]
115 bin/
116  mupdf
117  mupdf-gl
118  mupdf-x11-curl
119  muraster
120  mutool
121 include/mupdf/
122  fitz.h
123  memento.h
124  pdf.h
125  ucdn.h
126 include/mupdf/fitz/
127  archive.h
128  band-writer.h
129  bidi.h
130  bitmap.h
131  buffer.h
132  color.h
133  compress.h
134  compressed-buffer.h
135  config.h
136  context.h
137  crypt.h
138  device.h
139  display-list.h
140  document.h
141  filter.h
142  font.h
143  geometry.h
144  getopt.h
145  glyph-cache.h
146  glyph.h
147  hash.h
148  image.h
149  link.h
150  outline.h
151  output-svg.h
152  output.h
153  path.h
154  pixmap.h
155  pool.h
156  separation.h
157  shade.h
158  store.h
159  stream.h
160  string-util.h
161  structured-text.h
162  system.h
163  text.h
164  track-usage.h
165  transition.h
166  tree.h
167  util.h
168  version.h
169  write-pixmap.h
170  writer.h
171  xml.h
172 include/mupdf/pdf/
173  annot.h
174  clean.h
175  cmap.h
176  crypt.h
177  document.h
178  event.h
179  font.h
180  form.h
181  interpret.h
182  javascript.h
183  name-table.h
184  object.h
185  output-pdf.h
186  page.h
187  parse.h
188  resource.h
189  xref.h
190 lib/
191  libmupdf.so
192  libmupdf.so.%%SOVERSION%%
193  libmupdfthird.so
194  libmupdfthird.so.%%SOVERSION%%
195 share/man/man1/
196  mupdf.1.gz
197  mutool.1.gz
198
199
200 [FILE:463:manifests/plist.docs]
201 share/doc/mupdf/
202  CHANGES
203  README
204  android-sdk.html
205  artifex-logo.png
206  building.html
207  coding-overview.html
208  coding-progressive.html
209  coding-style.html
210  index.html
211  manual-mupdf-gl.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
221  style.css
222  template.html
223  thirdparty.html
224
225
226 [FILE:254:manifests/plist.examples]
227 share/examples/mupdf/
228  bbox-device.js
229  create-thumbnail.js
230  draw-device.js
231  draw-document.js
232  example.c
233  fix-s22pdf.js
234  jpx-to-pdf.js
235  multi-threaded.c
236  pdf-create-lowlevel.js
237  pdf-create.js
238  pdf-dejpx.js
239  pdf-merge.js
240  pdf-portfolio.js
241  trace-device.js
242
243
244 [FILE:616:patches/patch-Makefile]
245 --- Makefile.orig       2019-08-02 14:49:26 UTC
246 +++ Makefile
247 @@ -189,13 +189,17 @@ generate: source/pdf/js/util.js.h
248  
249  # --- Library ---
250  
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
257  
258  $(MUPDF_LIB) : $(MUPDF_OBJ)
259 +       $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -o $@ $^ $(LIBS)
260 +
261  $(THIRD_LIB) : $(THIRD_OBJ)
262 +       $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname=$@ -o $@ $^ $(LIBS)
263 +
264  $(THREAD_LIB) : $(THREAD_OBJ)
265  $(PKCS7_LIB) : $(PKCS7_OBJ)
266  
267
268
269 [FILE:666:patches/patch-Makerules]
270 --- Makerules.orig      2019-08-02 14:49:26 UTC
271 +++ Makerules
272 @@ -85,7 +85,7 @@ else ifeq ($(OS),MACOS)
273    LD = xcrun ld
274    RANLIB = xcrun ranlib
275  
276 -else ifeq ($(OS),Linux)
277 +else ifeq ($(OS),%%OPSYS%%)
278    HAVE_OBJCOPY := yes
279  
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)
283    endif
284  
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)
290
291
292 [FILE:505:patches/patch-Makethird]
293 --- Makethird.orig      2019-08-02 14:49:26 UTC
294 +++ Makethird
295 @@ -1,12 +1,12 @@
296  # GNU Makefile for third party libraries used by MuPDF
297  
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
309