[147147] trunk/dports/graphics/mupdf/Portfile

cal at macports.org cal at macports.org
Tue Mar 29 12:13:15 PDT 2016


Revision: 147147
          https://trac.macports.org/changeset/147147
Author:   cal at macports.org
Date:     2016-03-29 12:13:15 -0700 (Tue, 29 Mar 2016)
Log Message:
-----------
mupdf: 1.8, openmaintainer

Switch to MacPorts' copies of curl, freetype2, glfw, jbig2dec, jpeg, and zlib.
The version of openjpeg in MacPorts doesn't seem to work with mupdf.

Fix license, which is (now?) AGPL-3+.

Modified Paths:
--------------
    trunk/dports/graphics/mupdf/Portfile

Modified: trunk/dports/graphics/mupdf/Portfile
===================================================================
--- trunk/dports/graphics/mupdf/Portfile	2016-03-29 17:49:41 UTC (rev 147146)
+++ trunk/dports/graphics/mupdf/Portfile	2016-03-29 19:13:15 UTC (rev 147147)
@@ -4,11 +4,11 @@
 PortSystem          1.0
 
 name                mupdf
-version             1.7a
+version             1.8
 categories          graphics
 platforms           darwin
 maintainers         gmail.com:starkhalo openmaintainer
-license             GPL-3+
+license             AGPL-3+
 
 description         lightweight PDF and XPS viewer and parser/rendering library
 
@@ -31,22 +31,31 @@
 master_sites        ${homepage}downloads/
 distname            ${name}-${version}-source
 
-checksums           rmd160 cc9260029a7665004584ff6aa1b49e259b08be37 \
-                    sha256 8c035ffa011fc44f8a488f70da3e6e51889508bbf66fe6b90a63e0cfa6c17d1c
+checksums           rmd160  2708f5650f23101a66cef92b7903aafb716f9c02 \
+                    sha256  a2a3c64d8b24920f87cf4ea9339a25abf7388496440f13b37482d1403c33c206
 
 depends_build       port:pkgconfig
 
 depends_lib         port:freetype \
+                    port:glfw \
                     port:jbig2dec \
                     port:jpeg \
-                    port:openjpeg \
+                    port:mesa \
+                    port:xorg-libXcursor \
                     port:xorg-libXext \
+                    port:xorg-libXinerama \
+                    port:xorg-libXrandr \
                     port:zlib
 
 use_configure       no
 
 variant universal   {}
 
+# When not using the bundled copies, we have to tell mupdf's build system where
+# to find the headers
+configure.cflags-append \
+                    -I${prefix}/include/freetype2
+
 build.args          PREFIX=${prefix}
 build.args-append   CC=${configure.cc} \
                     CXX=${configure.cxx} \
@@ -61,6 +70,17 @@
 
 destroot.destdir    prefix=${destroot}${prefix}
 
+post-extract {
+    delete ${worksrcpath}/thirdparty/curl
+    delete ${worksrcpath}/thirdparty/freetype
+    delete ${worksrcpath}/thirdparty/glfw
+    delete ${worksrcpath}/thirdparty/jbig2dec
+    delete ${worksrcpath}/thirdparty/jpeg
+    # Got compile errors with openjpeg-2.1 and openjpeg-1.5
+    #delete ${worksrcpath}/thirdparty/openjpeg
+    delete ${worksrcpath}/thirdparty/zlib
+}
+
 post-destroot {
 # mupdf has its own javascript interpreter which is maintained in a separate
 # repository (git://git.ghostscript.com/mujs.git) but shipped with the source
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160329/61296841/attachment.html>


More information about the macports-changes mailing list