# -*- 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 pdf2djvu version 0.9.4 revision 6 categories graphics textproc platforms darwin license GPL-2 maintainers nicos openmaintainer description Convert PDF to DjVu long_description pdf2djvu creates DjVu files from PDF files. It's able \ to extract: graphics, text layer, hyperlinks, document \ outline (bookmarks), and metadata. homepage http://jwilk.net/software/pdf2djvu master_sites https://bitbucket.org/jwilk/pdf2djvu/downloads worksrcdir ${name}-${version} use_xz yes checksums rmd160 a70e6aab9b027978541f2ea37936f55c3a9acd6f \ sha256 c5702283fc6f39e8c0c49c2dc67b95e321dc926199bc77578d3daeef4de62fa8 depends_build port:pkgconfig \ port:gsed depends_lib port:djvulibre \ port:poppler \ port:libiconv \ port:GraphicsMagick \ port:libxslt patchfiles patch-i18n.hh.diff \ patch-sys-uuid.diff #Openmp is anyway not detected with llvm-gcc or clang, and breaks compilation with #gcc42 on SL (ticket #38184) # explicitly configure to build with system libuuid, overriding pkg-config # this prevents linking with ossp-uuid if it is installed configure.env-append \ LIBUUID_CFLAGS=-I/usr/include/uuid/uuid.h \ LIBUUID_LIBS=' ' configure.args-append --disable-openmp configure.universal_args-delete \ --disable-dependency-tracking #Forcing use of system types with llvm-gcc and clang on Lion (ticket #35170) configure.cxxflags-append \ -DHAVE_SYS_TYPES_H=1 post-destroot { xinstall -m 644 -W ${worksrcpath}/doc ${name}.1 \ ${destroot}${prefix}/share/man/man1 } livecheck.type regex livecheck.url ${master_sites} livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}