source: trunk/dports/aqua/vineserver/Portfile

Last change on this file was 114861, checked in by ryandesign@…, 4 years ago

vineserver: replaced_by vineserver3 on Leopard and older

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 114861 2013-12-18 06:56:01Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               xcode 1.0
6
7name                    vineserver
8categories              aqua vnc
9homepage                http://www.testplant.com/products/vine_server
10maintainers             ryandesign
11
12fetch.type              cvs
13cvs.root                :pserver:anonymous@osxvnc.cvs.sourceforge.net:/cvsroot/osxvnc
14cvs.module              OSXvnc
15worksrcdir              OSXvnc
16
17description \
18    a full-featured VNC server (formerly OSXvnc)
19
20long_description \
21    Vine Server (formerly OSXvnc) is a full-featured VNC server \
22    for Mac OS X providing remote access to the GUI, keyboard and \
23    mouse using any VNC client.
24
25depends_build \
26    port:libiconv
27
28depends_lib \
29    port:zlib
30
31post-patch {
32    # Make all strings UTF-16 so CopyStringsFile doesn't fail on Leopard. See #15919.
33    foreach strings [glob ${worksrcpath}/*.lproj/Localizable.strings] {
34        copy ${strings} ${strings}.orig
35        system "${prefix}/bin/iconv -f utf-8 -t utf-16 ${strings}.orig > ${strings}"
36    }
37}
38
39post-destroot {
40    # Fix permissions for users not installing with root
41    fs-traverse dir ${destroot} {
42        if {[file isdirectory ${dir}]} {
43            file attributes ${dir} -permissions 0755
44        }
45    }
46}
47
48if {${name} eq ${subport}} {
49    version             4.01
50    revision            0
51    cvs.date            {"2013-10-02 GMT"}
52
53    platform darwin {
54        if {${os.major} < 10} {
55            replaced_by ${name}3
56            pre-fetch {
57                ui_error "${subport} @${version} requires Mac OS X 10.6 or newer. Try the ${name}3 port instead."
58                return -code error "incompatible Mac OS X version"
59            }
60        } elseif {${os.major} == 10} {
61            conflicts   ${name}3
62        }
63    }
64
65    patchfiles          patch-${subport}-OSXvnc.xcodeproj-project.pbxproj.diff
66
67    livecheck.type      regex
68    livecheck.url       http://osxvnc.cvs.sourceforge.net/viewvc/osxvnc/OSXvnc/Version.txt
69    livecheck.regex     {^([0-9.]+)$}
70}
71
72subport ${name}3 {
73    version             3.12
74    revision            0
75    cvs.date            {"2010-10-23 GMT"}
76    supported_archs     i386 ppc
77
78    patchfiles          patch-${subport}-OSXvnc.xcodeproj-project.pbxproj.diff \
79                        patch-${subport}-OSXvnc-server-rfb.h.diff
80
81    platform darwin {
82        if {${os.major} > 10} {
83            pre-fetch {
84                ui_error "${subport} @${version} requires Mac OS X 10.6 or older. Try the ${name} port instead."
85                return -code error "incompatible Mac OS X version"
86            }
87        } elseif {${os.major} == 10} {
88            conflicts   ${name}
89        }
90    }
91
92    livecheck.type      none
93}
Note: See TracBrowser for help on using the repository browser.