# -*- 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: Portfile 102865 2013-02-09 19:16:59Z jeremyhu@macports.org $

PortSystem 1.0

name            djvulibre
version         3.5.25
revision        5
categories      graphics www
license         GPL-2+
platforms       darwin
maintainers     nicos openmaintainer

description     Web centric format and software platform for distributing documents and images.
long_description            DjVu can advantageously replace PDF, PS, TIFF, JPEG, and GIF for \
                            distributing scanned documents, digital documents, or high-resolution \
                            pictures. DjVu content downloads faster, displays and renders faster, \
                            looks nicer onscreen and consumes fewer client resources than competing \
                            formats.

homepage        http://djvu.sourceforge.net/
master_sites    sourceforge:project/djvu/DjVuLibre/${version}
distfiles       ${name}-${version}.3${extract.suffix}

#Upstream patch for handling UTF8 paths on Mac (ticket #34827)
patchfiles      patch-ByteStream.diff

checksums           rmd160  f91befc4d118cd5426f84abaa4f20ede920a2a2e \
                    sha256  898d7ed6dd2fa311a521baa95407a91b20a872d80c45e8245442d64f142cb1e0

depends_lib     port:libiconv \
		port:jpeg \
                port:tiff \
                port:libpng \
		port:zlib

depends_build	port:ImageMagick

configure.args	--mandir=${prefix}/share/man \
		--enable-threads \
		--enable-shared \
		--enable-xmltools \
		--disable-desktopfiles 

variant djview3 description {Obsolete. Djview is now a separate port. Stub variant.} {}

livecheck.name      djvu
livecheck.distname  DjVuLibre
