# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 name djview version 4.12 revision 1 categories aqua graphics www license GPL-2+ MIT maintainers {nicos @NicosPavlov} openmaintainer platforms darwin description DjVu files viewer. 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 on a screen and consume less client resources than competing \ formats. homepage http://djvu.sourceforge.net/djview4.html master_sites sourceforge:project/djvu/DjView/4.12/ patchfiles patch-powerpc.diff #patch-makefile-qmake-workaround.diff checksums rmd160 92108c2c92b2593cb85dc288a578ed7440671838 \ sha256 5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3 \ size 713842 depends_lib-append \ port:djvulibre worksrcdir djview4-${version} universal_variant yes use_autoreconf yes if {$subport eq $name} { PortGroup qt4 1.0 conflicts djview-qt5 } else { PortGroup qt5 1.0 conflicts ${name} } subport djview-qt5 { #Location of qmake configure.env-append QMAKE=${prefix}/libexec/qt5/bin/qmake \ QMAKESPEC=macx-clang } configure.ldflags configure.args \ --disable-nsdejavu \ --disable-desktopfiles build.args-append V=1 # allow ccache, if specified by the user pre-build { if {[tbool configure.ccache]} { build.post_args "CCACHE=ccache" } } destroot { copy ${worksrcpath}/src/djview.app ${destroot}${applications_dir} } livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix} livecheck.name djvu livecheck.distname DjView