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 120316 2014-05-23 03:50:41Z devans@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name zathura-plugin-pdf-mupdf |
---|
7 | version 0.2.8 |
---|
8 | categories office |
---|
9 | platforms darwin |
---|
10 | license zlib |
---|
11 | maintainers gmail.com:starkhalo \ |
---|
12 | openmaintainer |
---|
13 | conflicts zathura-plugin-pdf-poppler |
---|
14 | description The zathura-pdf-mupdf plugin adds PDF support to zathura. |
---|
15 | long_description \ |
---|
16 | The zathura-pdf-mupdf plugin adds PDF support to zathura by using the \ |
---|
17 | mupdf rendering library. |
---|
18 | |
---|
19 | homepage http://pwmt.org/projects/zathura/plugins/ |
---|
20 | |
---|
21 | master_sites http://pwmt.org/projects/zathura-pdf-mupdf/download/ |
---|
22 | distname zathura-pdf-mupdf-${version} |
---|
23 | |
---|
24 | checksums rmd160 c5fb22a9b571ae2086e43d5f56a42f092002f2a9 \ |
---|
25 | sha256 9f8b92762cdad14a2a587744c758edc0e1003be6a0c1511486065bdc91a66910 |
---|
26 | |
---|
27 | patchfiles patch-Makefile.diff \ |
---|
28 | patch-config.mk.diff |
---|
29 | |
---|
30 | depends_build port:pkgconfig \ |
---|
31 | path:lib/libmujs.a:mupdf |
---|
32 | |
---|
33 | depends_lib port:desktop-file-utils \ |
---|
34 | port:mupdf \ |
---|
35 | port:openjpeg \ |
---|
36 | path:lib/libgirara-gtk3.dylib:girara \ |
---|
37 | path:bin/zathura:zathura |
---|
38 | |
---|
39 | use_configure no |
---|
40 | |
---|
41 | variant universal {} |
---|
42 | |
---|
43 | build.args PREFIX=${prefix} |
---|
44 | build.env CC=${configure.cc} \ |
---|
45 | CXX=${configure.cxx} \ |
---|
46 | CPP=${configure.cpp} \ |
---|
47 | CFLAGS="[get_canonical_archflags cc]" \ |
---|
48 | LDFLAGS="[get_canonical_archflags ld]" \ |
---|
49 | VERBOSE=1 |
---|
50 | |
---|
51 | eval destroot.env ${build.env} |
---|
52 | eval destroot.args ${build.args} |
---|
53 | |
---|
54 | post-activate { |
---|
55 | system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" |
---|
56 | } |
---|
57 | |
---|
58 | livecheck.type regex |
---|
59 | livecheck.url ${master_sites} |
---|
60 | livecheck.regex (\\d\\.\\d\\.\\d) |
---|