source: trunk/dports/graphics/pdf2djvu/Portfile

Last change on this file was 153987, checked in by devans@…, 11 months ago

dependents of poppler: increment revision to rebuild with libpoppler.64.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 153987 2016-10-17 16:08:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pdf2djvu
7version             0.9.4
8revision            6
9categories          graphics textproc
10platforms           darwin
11license             GPL-2
12maintainers         nicos openmaintainer
13
14description         Convert PDF to DjVu
15long_description    pdf2djvu creates DjVu files from PDF files. It's able \
16                    to extract: graphics, text layer, hyperlinks, document \
17                    outline (bookmarks), and metadata.
18
19homepage            http://jwilk.net/software/pdf2djvu
20master_sites        https://bitbucket.org/jwilk/pdf2djvu/downloads
21worksrcdir          ${name}-${version}
22use_xz              yes
23
24checksums           rmd160  a70e6aab9b027978541f2ea37936f55c3a9acd6f \
25                    sha256  c5702283fc6f39e8c0c49c2dc67b95e321dc926199bc77578d3daeef4de62fa8
26
27depends_build       port:pkgconfig \
28                    port:gsed
29
30depends_lib         port:djvulibre \
31                    port:poppler \
32                    port:libiconv \
33                    port:GraphicsMagick \
34                    port:libxslt
35
36patchfiles          patch-i18n.hh.diff \
37                    patch-sys-uuid.diff
38 
39#Openmp is anyway not detected with llvm-gcc or clang, and breaks compilation with
40#gcc42 on SL (ticket #38184)
41
42# explicitly configure to build with system libuuid, overriding pkg-config
43# this prevents linking with ossp-uuid if it is installed
44configure.env-append \
45                    LIBUUID_CFLAGS=-I/usr/include/uuid/uuid.h \
46                    LIBUUID_LIBS=' '
47
48configure.args-append   --disable-openmp
49
50configure.universal_args-delete \
51                    --disable-dependency-tracking
52
53#Forcing use of system types with llvm-gcc and clang on Lion (ticket #35170)
54configure.cxxflags-append \
55                    -DHAVE_SYS_TYPES_H=1
56
57post-destroot {
58   xinstall -m 644 -W ${worksrcpath}/doc ${name}.1 \
59      ${destroot}${prefix}/share/man/man1
60}
61
62livecheck.type      regex
63livecheck.url       ${master_sites}
64livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.