pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/print/mupdf



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed May 15 21:00:43 UTC 2024

Modified Files:
        pkgsrc/print/mupdf: Makefile PLIST distinfo
        pkgsrc/print/mupdf/patches: patch-ab patch-ac

Log Message:
mupdf: update to 1.24.0.

List of changes in MuPDF 1.24

        Error handling changes:

                You must call pdf_report_error in the final fz_catch. Any
                unreported errors will be automatically reported when a new
                error is raised, or when closing the fitz context.

        New formats:

                Read Office (XML) files! We internally open and convert
                docx/pptx/xlsx documents to HTML to allow reading the plain
                text content. The exact layout will NOT be preserved.

                Optional compile time option to use libarchive for reading CBR
                and other archive formats.

                Read plain text documents.

                Read gzipped files directly.

                Open and read FDF files to support importing annotations or
                form data using the low-level PDF functions. There are no tools
                for this yet.

                Read CFB (Compound File Binary) format archives -- used for the
                Office formats.

                Write images as JPEG2000.

        New tools and features:

                mutool bake (and associated functions) to bake appearance of
                annotations and forms into static content.

                Font subsetting flag to mutool clean (EXPERIMENTAL FEATURE).

                Option to use ObjStms when writing PDF files.

                Compression effort option when writing PDF files.

                Add option to control how line art is affected by redaction.
                Add more options to control how images are affected by
                redaction (remove-unless-invisible).

                Fix up q/Q gstate balance when cleaning content streams.

        New functions and types:

                pdf_rearrange_pages to subset or re-order pages in a PDF file.

                fz_invert_bitmap to invert monochrome bitmaps.

                fz_compressed_image_type to query the format of a compressed
                image.

                fz_text_decoder to convert various legacy and CJK encodings
                into UTF-8.

                More helper functions to easily manipulate PDF objects in C.

                Add flag to control fz_place_story overflow behavior when the
                text doesn't fit into the box.

                New archive handlers can be added at runtime.

        Major bug fixes and improvements:

                Support using Art, Bleed, Media, and Trim boxes for PDF page
                size.

                Support ActualText in PDF! No more strange text extraction when
                the file uses ActualText to patch over bad font encodings.

                Add special TrueType fallback encoding CMap for a specific
                flavor of broken PDF files that use an "identity" encoding
                without embedding the font.

                Limited "transfer function" support in PDF. Transfer functions
                are a deprecated legacy PDF feature that predates proper color
                management. They were intended to provide limited color
                management such as applying a gamma curve. Transfer functions
                have often been (ab)-used to invert images, and many PDF
                creators use them when writing softmask images. We have added
                support for this case only.

                Box drawing characters added to fonts for HTML and plain text
                documents.

                Write more compact PDF files (removed some unneccessary
                whitespace).

                Improved selection behavior for non-axis aligned text.

                Improved heuristics for detecting the logical and visual order
                of RTL text in PDF.

                Improved heuristics for inserting missing spaces in PDF text.

                Improved handling of CMYK JPEG files (which ones are inverted
                and which are not).

                Improved content type detection. Don't assume everything is PDF
                when we can't recognize it.

        Removed deprecated functions:
                pdf_check_signature


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 pkgsrc/print/mupdf/Makefile
cvs rdiff -u -r1.27 -r1.28 pkgsrc/print/mupdf/PLIST
cvs rdiff -u -r1.74 -r1.75 pkgsrc/print/mupdf/distinfo
cvs rdiff -u -r1.28 -r1.29 pkgsrc/print/mupdf/patches/patch-ab
cvs rdiff -u -r1.31 -r1.32 pkgsrc/print/mupdf/patches/patch-ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/print/mupdf/Makefile
diff -u pkgsrc/print/mupdf/Makefile:1.117 pkgsrc/print/mupdf/Makefile:1.118
--- pkgsrc/print/mupdf/Makefile:1.117   Wed Jan 17 23:57:50 2024
+++ pkgsrc/print/mupdf/Makefile Wed May 15 21:00:43 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.117 2024/01/17 23:57:50 gdt Exp $
+# $NetBSD: Makefile,v 1.118 2024/05/15 21:00:43 wiz Exp $
 
-DISTNAME=      mupdf-1.23.7-source
+DISTNAME=      mupdf-1.24.0-source
 PKGNAME=       ${DISTNAME:S/-source//}
-PKGREVISION=   1
 CATEGORIES=    print
 MASTER_SITES=  https://mupdf.com/downloads/archive/
 

Index: pkgsrc/print/mupdf/PLIST
diff -u pkgsrc/print/mupdf/PLIST:1.27 pkgsrc/print/mupdf/PLIST:1.28
--- pkgsrc/print/mupdf/PLIST:1.27       Thu Sep  7 14:36:54 2023
+++ pkgsrc/print/mupdf/PLIST    Wed May 15 21:00:43 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.27 2023/09/07 14:36:54 vins Exp $
+@comment $NetBSD: PLIST,v 1.28 2024/05/15 21:00:43 wiz Exp $
 bin/mupdf
 ${PLIST.opengl}bin/mupdf-gl
 ${PLIST.curl}bin/mupdf-x11-curl
@@ -27,6 +27,8 @@ include/mupdf/fitz/getopt.h
 include/mupdf/fitz/glyph-cache.h
 include/mupdf/fitz/glyph.h
 include/mupdf/fitz/hash.h
+include/mupdf/fitz/heap-imp.h
+include/mupdf/fitz/heap.h
 include/mupdf/fitz/image.h
 include/mupdf/fitz/link.h
 include/mupdf/fitz/log.h
@@ -55,6 +57,7 @@ include/mupdf/fitz/version.h
 include/mupdf/fitz/write-pixmap.h
 include/mupdf/fitz/writer.h
 include/mupdf/fitz/xml.h
+include/mupdf/html.h
 include/mupdf/memento.h
 include/mupdf/pdf.h
 include/mupdf/pdf/annot.h
@@ -65,6 +68,7 @@ include/mupdf/pdf/document.h
 include/mupdf/pdf/event.h
 include/mupdf/pdf/font.h
 include/mupdf/pdf/form.h
+include/mupdf/pdf/image-rewriter.h
 include/mupdf/pdf/interpret.h
 include/mupdf/pdf/javascript.h
 include/mupdf/pdf/name-table.h
@@ -85,14 +89,17 @@ share/doc/mupdf/COPYING
 share/doc/mupdf/README
 share/doc/mupdf/examples/SnarkFront.svg
 share/doc/mupdf/examples/bbox-device.js
+share/doc/mupdf/examples/copy-outline.js
 share/doc/mupdf/examples/create-thumbnail.js
 share/doc/mupdf/examples/draw-device.js
 share/doc/mupdf/examples/draw-document.js
 share/doc/mupdf/examples/example.c
 share/doc/mupdf/examples/fix-s22pdf.js
 share/doc/mupdf/examples/huntingofthesnark.png
+share/doc/mupdf/examples/import-fdf.js
 share/doc/mupdf/examples/jpx-to-pdf.js
 share/doc/mupdf/examples/multi-threaded.c
+share/doc/mupdf/examples/pdf-bake.js
 share/doc/mupdf/examples/pdf-create-lowlevel.js
 share/doc/mupdf/examples/pdf-create.js
 share/doc/mupdf/examples/pdf-dejpx.js
@@ -100,6 +107,7 @@ share/doc/mupdf/examples/pdf-extract-ric
 share/doc/mupdf/examples/pdf-merge.js
 share/doc/mupdf/examples/pdf-portfolio.js
 share/doc/mupdf/examples/pdf-trace.js
+share/doc/mupdf/examples/reconvert-cmyk.js
 share/doc/mupdf/examples/storytest.c
 share/doc/mupdf/examples/storytest.js
 share/doc/mupdf/examples/trace-device.js

Index: pkgsrc/print/mupdf/distinfo
diff -u pkgsrc/print/mupdf/distinfo:1.74 pkgsrc/print/mupdf/distinfo:1.75
--- pkgsrc/print/mupdf/distinfo:1.74    Thu Dec  7 09:10:16 2023
+++ pkgsrc/print/mupdf/distinfo Wed May 15 21:00:43 2024
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.74 2023/12/07 09:10:16 wiz Exp $
+$NetBSD: distinfo,v 1.75 2024/05/15 21:00:43 wiz Exp $
 
-BLAKE2s (mupdf-1.23.7-source.tar.gz) = 2f8162b63879d67f4a53bb68646168af9d80860da9ca045ba44590129048ef5f
-SHA512 (mupdf-1.23.7-source.tar.gz) = 581a4a5a16041bb405fbd7c1b9fba47da5745f00cbdf30e0e0468bfe67ac542884193b5957b293a4cdfc52f043b4f19612086f294b93dbd242d34735a1088777
-Size (mupdf-1.23.7-source.tar.gz) = 55312697 bytes
+BLAKE2s (mupdf-1.24.0-source.tar.gz) = 03ff1288498b566ca601680786b435252e7d164d367ac5889429500d4a020f62
+SHA512 (mupdf-1.24.0-source.tar.gz) = cb3b70341a924b524ddd20d5af00249a48bf79d9e05031648f95dd4121e1f125eb85ca70168b34db9fcf5251db705df599e327afde14549ee8627efe1d866811
+Size (mupdf-1.24.0-source.tar.gz) = 55310611 bytes
 SHA1 (patch-Makelists) = 714157e21b2b609ac4f0adacc73c3e3a2156640a
-SHA1 (patch-ab) = 548361a64a7ef6777e60e48a2653120034a35338
-SHA1 (patch-ac) = 2377fe83c6ff3b976a20a912087694fcfe0e9168
+SHA1 (patch-ab) = 3b299b39058897d4aeb51e6123a59f28841d7459
+SHA1 (patch-ac) = bf98e521c067ba49ebc3e94894270bb76fa3f80c
 SHA1 (patch-ae) = c6b113818b32cb4470e8549c00a16e0b2f364ede
 SHA1 (patch-docs_man_mupdf.1) = c2a2c1ad283428168a714adb634aa50cdd6a4aba
 SHA1 (patch-platform_gl_gl-app.h) = 1e915249010acd3ff1343f0607e785d06577fe78

Index: pkgsrc/print/mupdf/patches/patch-ab
diff -u pkgsrc/print/mupdf/patches/patch-ab:1.28 pkgsrc/print/mupdf/patches/patch-ab:1.29
--- pkgsrc/print/mupdf/patches/patch-ab:1.28    Thu Sep  7 14:36:54 2023
+++ pkgsrc/print/mupdf/patches/patch-ab Wed May 15 21:00:43 2024
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.28 2023/09/07 14:36:54 vins Exp $
+$NetBSD: patch-ab,v 1.29 2024/05/15 21:00:43 wiz Exp $
 
 - Handle the various operating systems in the same way avoiding hardcoding
 - Avoid to use objcopy by setting HAVE_OBJCOPY to no (if `yes', and with
@@ -10,9 +10,9 @@ $NetBSD: patch-ab,v 1.28 2023/09/07 14:3
 - Avoid internal version of freeglut and try to pick it up via pkg-config and
   set SYS_GLUT_{CFLAGS,LIBS} accordingly.
 
---- Makerules.orig     2023-09-05 11:51:19.000000000 +0000
+--- Makerules.orig     2024-03-19 15:31:58.000000000 +0000
 +++ Makerules
-@@ -42,30 +42,6 @@ endif
+@@ -48,30 +48,6 @@ endif
  
  # System specific features
  
@@ -43,8 +43,8 @@ $NetBSD: patch-ab,v 1.28 2023/09/07 14:3
  SANITIZE_FLAGS += -fsanitize=address
  SANITIZE_FLAGS += -fsanitize=leak
  
-@@ -154,41 +130,7 @@ ifneq "$(CLUSTER)" ""
-   CFLAGS += -DCLUSTER
+@@ -178,37 +154,7 @@ ifeq ($(OS),OpenBSD)
+     LINUX_OR_OPENBSD := yes
  endif
  
 -ifeq ($(OS),MINGW)
@@ -63,7 +63,7 @@ $NetBSD: patch-ab,v 1.28 2023/09/07 14:3
 -  ifneq ($(ARCHFLAGS),)
 -    $(warning "MacOS with ARCHFLAGS set. Assuming we are building for arm64, and setting HAVE_LIBCRYPTO to no.")
 -    HAVE_LIBCRYPTO := no
--  else ifeq (, $(shell which pkg-config))
+-  else ifeq (, $(shell command -v pkg-config))
 -    $(warning "No pkg-config found, install it for proper integration of libcrypto")
 -  else
 -    HAVE_LIBCRYPTO := $(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)
@@ -73,35 +73,30 @@ $NetBSD: patch-ab,v 1.28 2023/09/07 14:3
 -    endif
 -  endif
 -
--else ifeq ($(OS),Linux)
--  ifeq ($(PYODIDE_ROOT),)
+-else ifeq ($(LINUX_OR_OPENBSD),yes)
+-
+-  ifeq ($(OS),Linux)
 -    HAVE_OBJCOPY := yes
--  else
--    # Pyodide's ld does not support -b so we cannot use it to create object
--    # files containing font data, so leave HAVE_OBJCOPY unset. And we need
--    # extra memory when linking.
--    LDFLAGS += -sTOTAL_MEMORY=48MB
 -  endif
 +HAVE_OBJCOPY := no
  
    ifeq ($(shell pkg-config --exists freetype2 && echo yes),yes)
        SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
-@@ -237,10 +179,10 @@ else ifeq ($(OS),Linux)
-       SYS_CURL_LIBS := $(shell pkg-config --libs libcurl)
-   endif
+@@ -265,13 +211,8 @@ else ifeq ($(LINUX_OR_OPENBSD),yes)
  
--  HAVE_GLUT := yes
--  ifeq ($(HAVE_GLUT),yes)
--      SYS_GLUT_CFLAGS :=
--      SYS_GLUT_LIBS := -lglut -lGL
-+  HAVE_GLUT := $(shell pkg-config --exists glut && echo yes)
-+  ifeq ($(shell pkg-config --exists glut && echo yes),yes)
-+      SYS_GLUT_CFLAGS := $(shell pkg-config --cflags glut)
-+      SYS_GLUT_LIBS := $(shell pkg-config --libs glut)
+   HAVE_GLUT := yes
+   ifeq ($(HAVE_GLUT),yes)
+-    ifeq ($(OS),OpenBSD)
+       SYS_GLUT_CFLAGS := $(shell pkg-config --cflags glut gl)
+       SYS_GLUT_LIBS := $(shell pkg-config --libs glut gl)
+-    else
+-      SYS_GLUT_CFLAGS :=
+-      SYS_GLUT_LIBS := -lglut -lGL
+-    endif
    endif
  
    HAVE_X11 := $(shell pkg-config --exists x11 xext && echo yes)
-@@ -263,8 +205,6 @@ else ifeq ($(OS),Linux)
+@@ -294,8 +235,6 @@ else ifeq ($(LINUX_OR_OPENBSD),yes)
        PTHREAD_LIBS := -lpthread
    endif
  

Index: pkgsrc/print/mupdf/patches/patch-ac
diff -u pkgsrc/print/mupdf/patches/patch-ac:1.31 pkgsrc/print/mupdf/patches/patch-ac:1.32
--- pkgsrc/print/mupdf/patches/patch-ac:1.31    Thu Sep  7 14:36:54 2023
+++ pkgsrc/print/mupdf/patches/patch-ac Wed May 15 21:00:43 2024
@@ -1,12 +1,12 @@
-$NetBSD: patch-ac,v 1.31 2023/09/07 14:36:54 vins Exp $
+$NetBSD: patch-ac,v 1.32 2024/05/15 21:00:43 wiz Exp $
 
 - Install target cleanup
 - Also install muthreads and mupkcs7 libraries (needed by various tools)
 - Use sh instead of bash
 
---- Makefile.orig      2023-09-05 11:51:19.000000000 +0000
+--- Makefile.orig      2024-03-19 15:31:58.000000000 +0000
 +++ Makefile
-@@ -214,10 +214,10 @@ endif
+@@ -237,10 +237,10 @@ endif
  
  FONT_GEN := $(FONT_BIN:%=generated/%.c)
  
@@ -21,10 +21,10 @@ $NetBSD: patch-ac,v 1.31 2023/09/07 14:3
  
  ifeq ($(HAVE_OBJCOPY),yes)
    MUPDF_OBJ += $(FONT_BIN:%=$(OUT)/%.o)
-@@ -440,29 +440,35 @@ tools: $(TOOL_APPS)
+@@ -465,55 +465,59 @@ tools: $(TOOL_APPS)
  apps: $(TOOL_APPS) $(VIEW_APPS)
  
- install-libs: libs
+ install-headers:
 -      install -d $(DESTDIR)$(incdir)/mupdf
 -      install -d $(DESTDIR)$(incdir)/mupdf/fitz
 -      install -d $(DESTDIR)$(incdir)/mupdf/pdf
@@ -37,6 +37,8 @@ $NetBSD: patch-ac,v 1.31 2023/09/07 14:3
 +      ${BSD_INSTALL_DATA} include/mupdf/*.h $(DESTDIR)$(incdir)/mupdf
 +      ${BSD_INSTALL_DATA} include/mupdf/fitz/*.h $(DESTDIR)$(incdir)/mupdf/fitz
 +      ${BSD_INSTALL_DATA} include/mupdf/pdf/*.h $(DESTDIR)$(incdir)/mupdf/pdf
+ 
+ install-libs: libs install-headers
  ifneq ($(LIBS_TO_INSTALL_IN_LIB),)
 -      install -d $(DESTDIR)$(libdir)
 -      install -m 644 $(LIBS_TO_INSTALL_IN_LIB) $(DESTDIR)$(libdir)
@@ -44,7 +46,6 @@ $NetBSD: patch-ac,v 1.31 2023/09/07 14:3
 +      for f in $(LIBS_TO_INSTALL_IN_LIB); do \
 +              ${BSD_INSTALL_LIB} $$f $(DESTDIR)$(libdir); \
 +      done
-+
  endif
  
  install-apps: apps
@@ -60,16 +61,86 @@ $NetBSD: patch-ac,v 1.31 2023/09/07 14:3
 -      install -m 644 docs/man/*.1 $(DESTDIR)$(mandir)/man1
 +      ${BSD_INSTALL_MAN_DIR} $(DESTDIR)$(mandir)/man1
 +      ${BSD_INSTALL_MAN} docs/man/*.1 $(DESTDIR)$(mandir)/man1
-+
-+      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)
-+      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)/examples
-+      ${BSD_INSTALL_DATA} README COPYING CHANGES $(DESTDIR)$(docdir)
-+      ${BSD_INSTALL_DATA} docs/examples/* $(DESTDIR)$(docdir)/examples
  
 -      install -d $(DESTDIR)$(docdir)
 -      install -d $(DESTDIR)$(docdir)/examples
--      install -m 644 README COPYING CHANGES $(DESTDIR)$(docdir)
+-      install -m 644 README CHANGES $(DESTDIR)$(docdir)
+-      install -m 644 $(wildcard COPYING LICENSE) $(DESTDIR)$(docdir)
 -      install -m 644 docs/examples/* $(DESTDIR)$(docdir)/examples
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)/examples
++      ${BSD_INSTALL_DATA} README CHANGES $(DESTDIR)$(docdir)
++      ${BSD_INSTALL_DATA} $(wildcard COPYING LICENSE) $(DESTDIR)$(docdir)
++      ${BSD_INSTALL_DATA} docs/examples/* $(DESTDIR)$(docdir)/examples
  
  install: install-libs install-apps install-docs
  
+ install-docs-html:
+       python3 scripts/build-docs.py
+-      install -d $(DESTDIR)$(docdir)
+-      install -d $(DESTDIR)$(docdir)/_images
+-      install -d $(DESTDIR)$(docdir)/_static
+-      install -d $(DESTDIR)$(docdir)/_static/js
+-      install -d $(DESTDIR)$(docdir)/_static/css
+-      install -d $(DESTDIR)$(docdir)/_static/css/fonts
+-      install -m 644 build/docs/html/*.html $(DESTDIR)$(docdir)
+-      install -m 644 build/docs/html/*.inv $(DESTDIR)$(docdir)
+-      install -m 644 build/docs/html/*.js $(DESTDIR)$(docdir)
+-      install -m 644 build/docs/html/_images/* $(DESTDIR)$(docdir)/_images
+-      install -m 644 build/docs/html/_static/*.css $(DESTDIR)$(docdir)/_static
+-      install -m 644 build/docs/html/_static/*.ico $(DESTDIR)$(docdir)/_static
+-      install -m 644 build/docs/html/_static/*.js $(DESTDIR)$(docdir)/_static
+-      install -m 644 build/docs/html/_static/*.png $(DESTDIR)$(docdir)/_static
+-      install -m 644 build/docs/html/_static/*.svg $(DESTDIR)$(docdir)/_static
+-      install -m 644 build/docs/html/_static/js/* $(DESTDIR)$(docdir)/_static/js
+-      install -m 644 build/docs/html/_static/css/*.css $(DESTDIR)$(docdir)/_static/css
+-      install -m 644 build/docs/html/_static/css/fonts/* $(DESTDIR)$(docdir)/_static/css/fonts
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)/_images
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)/_static
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)/_static/js
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)/_static/css
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(docdir)/_static/css/fonts
++      ${BSD_INSTALL_DATA} build/docs/html/*.html $(DESTDIR)$(docdir)
++      ${BSD_INSTALL_DATA} build/docs/html/*.inv $(DESTDIR)$(docdir)
++      ${BSD_INSTALL_DATA} build/docs/html/*.js $(DESTDIR)$(docdir)
++      ${BSD_INSTALL_DATA} build/docs/html/_images/* $(DESTDIR)$(docdir)/_images
++      ${BSD_INSTALL_DATA} build/docs/html/_static/*.css $(DESTDIR)$(docdir)/_static
++      ${BSD_INSTALL_DATA} build/docs/html/_static/*.ico $(DESTDIR)$(docdir)/_static
++      ${BSD_INSTALL_DATA} build/docs/html/_static/*.js $(DESTDIR)$(docdir)/_static
++      ${BSD_INSTALL_DATA} build/docs/html/_static/*.png $(DESTDIR)$(docdir)/_static
++      ${BSD_INSTALL_DATA} build/docs/html/_static/*.svg $(DESTDIR)$(docdir)/_static
++      ${BSD_INSTALL_DATA} build/docs/html/_static/js/* $(DESTDIR)$(docdir)/_static/js
++      ${BSD_INSTALL_DATA} build/docs/html/_static/css/*.css $(DESTDIR)$(docdir)/_static/css
++      ${BSD_INSTALL_DATA} build/docs/html/_static/css/fonts/* $(DESTDIR)$(docdir)/_static/css/fonts
+ 
+ tarball:
+       bash scripts/archive.sh
+@@ -638,23 +642,23 @@ ifneq ($(USE_SYSTEM_LIBS),yes)
+ endif
+ 
+ install-shared-c: install-shared-check shared install-headers
+-      install -d $(DESTDIR)$(libdir)
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(libdir)
+       install -m $(SO_INSTALL_MODE) $(OUT)/libmupdf.$(SO)$(SO_VERSION) $(DESTDIR)$(libdir)/
+ ifneq ($(OS),OpenBSD)
+       ln -sf libmupdf.$(SO)$(SO_VERSION) $(DESTDIR)$(libdir)/libmupdf.$(SO)
+ endif
+ 
+ install-shared-c++: install-shared-c c++
+-      install -m 644 platform/c++/include/mupdf/*.h $(DESTDIR)$(incdir)/mupdf
++      ${BSD_INSTALL_DATA} platform/c++/include/mupdf/*.h $(DESTDIR)$(incdir)/mupdf
+       install -m $(SO_INSTALL_MODE) $(OUT)/libmupdfcpp.$(SO)$(SO_VERSION) $(DESTDIR)$(libdir)/
+ ifneq ($(OS),OpenBSD)
+       ln -sf libmupdfcpp.$(SO)$(SO_VERSION) $(DESTDIR)$(libdir)/libmupdfcpp.$(SO)
+ endif
+ 
+ install-shared-python: install-shared-c++ python
+-      install -d $(DESTDIR)$(pydir)/mupdf
++      ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(pydir)/mupdf
+       install -m $(SO_INSTALL_MODE) $(OUT)/_mupdf.$(SO) $(DESTDIR)$(pydir)/mupdf
+-      install -m 644 $(OUT)/mupdf.py $(DESTDIR)$(pydir)/mupdf/__init__.py
++      ${BSD_INSTALL_DATA} $(OUT)/mupdf.py $(DESTDIR)$(pydir)/mupdf/__init__.py
+ 
+ else
+ 



Home | Main Index | Thread Index | Old Index