# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name mupdf version 1.9a categories graphics platforms darwin maintainers gmail.com:starkhalo openmaintainer license AGPL-3+ description lightweight PDF and XPS viewer and parser/rendering library long_description MuPDF is a lightweight PDF and XPS viewer and \ parser/rendering library. \ \ The renderer in MuPDF is tailored for high-quality \ anti-aliased graphics. It renders text with metrics and \ spacing accurate to within fractions of a pixel for the \ highest fidelity in reproducing the look of a printed \ page on screen. \ \ MuPDF is also small, fast, and yet complete. It supports \ PDF 1.7 with transparency, encryption, hyperlinks, \ annotations, search and many other bells and whistles. \ MuPDF can also read XPS documents (OpenXPS ECMA-388). homepage http://www.mupdf.com/ master_sites ${homepage}downloads/ distname ${name}-${version}-source checksums rmd160 0cb0d098c603b16be217e42299052a928d95c3fc \ sha256 8015c55f4e6dd892d3c50db4f395c1e46660a10b460e2ecd180a497f55bbc4cc depends_build port:pkgconfig depends_lib port:freetype \ port:harfbuzz \ port:jbig2dec \ port:jpeg \ port:mesa \ port:xorg-libXcursor \ port:xorg-libXext \ port:xorg-libXinerama \ port:xorg-libXrandr \ port:zlib patchfiles patch-Makerules.diff use_configure no variant universal {} build.args PREFIX=${prefix} build.args-append CC=${configure.cc} \ CXX=${configure.cxx} \ CPP=${configure.cpp} \ XCFLAGS="${configure.cflags} [get_canonical_archflags cc]" \ XLIBS="${configure.ldflags} [get_canonical_archflags ld]" \ build=release \ verbose=yes destroot.destdir prefix=${destroot}${prefix} variant glfw description {OpenGL viewer} { build.args-append HAVE_GLFW=yes } post-extract { # delete thirdparty software other than mujs and openjpeg delete ${worksrcpath}/thirdparty/curl delete ${worksrcpath}/thirdparty/freetype delete ${worksrcpath}/thirdparty/harfbuzz delete ${worksrcpath}/thirdparty/jbig2dec delete ${worksrcpath}/thirdparty/jpeg delete ${worksrcpath}/thirdparty/zlib if {![variant_isset glfw]} { delete ${worksrcpath}/thirdparty/glfw } } # https://trac.macports.org/ticket/33240 # Mac OS X Tiger has an old version of `make`, needs to use GNU make platform darwin 8 { depends_build-append port:gmake build.cmd ${prefix}/bin/gmake } livecheck.type regex livecheck.url ${master_sites} livecheck.regex ${name}-(\\d\\.\\d)-source