source: trunk/dports/aqua/djview/Portfile

Last change on this file was 146291, checked in by nicos@…, 21 months ago

djview: update to 4.10.6
fix livecheck
add subport djview-qt5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- 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
2# $Id: Portfile 146291 2016-03-03 14:09:54Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                djview
7version             4.10.6
8categories          aqua graphics www
9license             GPL-2+ MIT
10maintainers         nicos openmaintainer
11platforms           darwin
12
13description         DjVu files viewer.
14long_description    DjVu can advantageously replace PDF, PS, TIFF,JPEG, and GIF for \
15                    distributing scanned documents, digital documents, or high-resolution \
16                    pictures. DjVu content downloads faster, displays and renders faster, \
17                    looks nicer on a screen and consume less client resources than competing \
18                    formats.
19
20homepage            http://djvu.sourceforge.net/djview4.html
21
22master_sites        sourceforge:project/djvu/DjView/4.10/
23
24patchfiles          patch-powerpc.diff \
25                    patch-makefile-qmake-workaround.diff 
26
27checksums           rmd160  9c8a5d878a594e4f87d3c1a392674148076061ee \
28                    sha256  8446f3cd692238421a342f12baa365528445637bffb96899f319fe762fda7c21
29
30depends_lib-append \
31    port:djvulibre
32
33universal_variant yes
34
35if {$subport eq $name} {
36    PortGroup           qt4 1.0
37    conflicts           djview-qt5
38} else {
39    PortGroup           qt5 1.0
40    conflicts           ${name}
41}
42
43subport djview-qt5 {
44    #Location of qmake
45    configure.env-append QMAKE=${prefix}/libexec/qt5/bin/qmake \
46                         QMAKESPEC=macx-g++
47
48    if {${os.major} >= 13} {
49        #On 10.9 onwards, we need to update the minimum deployment target
50        pre-configure {
51            reinplace "s|QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6|QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9|g" \
52                ${worksrcpath}/src/djview.pro
53        }
54        #Changing the deployment target requires autoreconf
55        use_autoreconf       yes
56    }
57}
58
59configure.ldflags
60configure.args \
61    --disable-nsdejavu \
62    --disable-desktopfiles
63
64build.args-append   V=1
65
66# allow ccache, if specified by the user
67pre-build {
68    if {[tbool configure.ccache]} {
69        build.post_args "CCACHE=ccache"
70    }
71}
72
73destroot {
74    copy ${worksrcpath}/src/djview.app ${destroot}${applications_dir}
75}
76
77livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
78livecheck.name      djvu
79livecheck.distname  DjView
Note: See TracBrowser for help on using the repository browser.