source: trunk/dports/graphics/mupdf/Portfile

Last change on this file was 150671, checked in by devans@…, 14 months ago

mupdf: maintainer update to version 1.9a (#51912).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# -*- 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
2# $Id: Portfile 150671 2016-07-26 15:27:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mupdf
7version             1.9a
8categories          graphics
9platforms           darwin
10maintainers         gmail.com:starkhalo openmaintainer
11license             AGPL-3+
12
13description         lightweight PDF and XPS viewer and parser/rendering library
14
15long_description    MuPDF is a lightweight PDF and XPS viewer and \
16                    parser/rendering library. \
17                    \
18                    The renderer in MuPDF is tailored for high-quality \
19                    anti-aliased graphics. It renders text with metrics and \
20                    spacing accurate to within fractions of a pixel for the \
21                    highest fidelity in reproducing the look of a printed \
22                    page on screen. \
23                    \
24                    MuPDF is also small, fast, and yet complete. It supports \
25                    PDF 1.7 with transparency, encryption, hyperlinks, \
26                    annotations, search and many other bells and whistles. \
27                    MuPDF can also read XPS documents (OpenXPS ECMA-388).
28
29homepage            http://www.mupdf.com/
30
31master_sites        ${homepage}downloads/
32distname            ${name}-${version}-source
33
34checksums           rmd160  0cb0d098c603b16be217e42299052a928d95c3fc \
35                    sha256  8015c55f4e6dd892d3c50db4f395c1e46660a10b460e2ecd180a497f55bbc4cc
36
37depends_build       port:pkgconfig
38
39depends_lib         port:freetype \
40                    port:harfbuzz \
41                    port:jbig2dec \
42                    port:jpeg \
43                    port:mesa \
44                    port:xorg-libXcursor \
45                    port:xorg-libXext \
46                    port:xorg-libXinerama \
47                    port:xorg-libXrandr \
48                    port:zlib
49
50patchfiles          patch-Makerules.diff
51
52use_configure       no
53
54variant universal   {}
55
56build.args          PREFIX=${prefix}
57build.args-append   CC=${configure.cc} \
58                    CXX=${configure.cxx} \
59                    CPP=${configure.cpp} \
60                    XCFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
61                    XLIBS="${configure.ldflags} [get_canonical_archflags ld]" \
62                    build=release \
63                    verbose=yes
64
65destroot.destdir    prefix=${destroot}${prefix}
66
67variant glfw description {OpenGL viewer} {
68    build.args-append   HAVE_GLFW=yes
69}
70
71post-extract {
72# delete thirdparty software other than mujs and openjpeg
73    delete ${worksrcpath}/thirdparty/curl
74    delete ${worksrcpath}/thirdparty/freetype
75    delete ${worksrcpath}/thirdparty/harfbuzz
76    delete ${worksrcpath}/thirdparty/jbig2dec
77    delete ${worksrcpath}/thirdparty/jpeg
78    delete ${worksrcpath}/thirdparty/zlib
79    if {![variant_isset glfw]} {
80        delete ${worksrcpath}/thirdparty/glfw
81    }
82}
83
84# https://trac.macports.org/ticket/33240
85# Mac OS X Tiger has an old version of `make`, needs to use GNU make
86platform darwin 8 {
87    depends_build-append port:gmake
88    build.cmd ${prefix}/bin/gmake
89}
90
91livecheck.type      regex
92livecheck.url       ${master_sites}
93livecheck.regex     ${name}-(\\d\\.\\d)-source
Note: See TracBrowser for help on using the repository browser.