source: trunk/dports/x11/tightvnc/Portfile

Last change on this file was 102822, checked in by jmr@…, 4 years ago

jpeg: update to version 9, rev bump dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 102822 2013-02-09 00:51:24Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    tightvnc
6conflicts               vnc tigervnc
7version                 1.3.10
8revision        1
9categories              x11 vnc
10maintainers             nomaintainer
11platforms               darwin
12license                 GPL-2
13description             Enhanced version of VNC
14long_description        This is an enhanced version of VNC, called TightVNC, \
15                        which includes a lot of new features, improvements, \
16                        optimizations and bugfixes over the original VNC \
17                        version. Note that TightVNC is still free, \
18                        cross-platform and compatible with the standard VNC. \
19                        Many users agree that TightVNC is the most advanced \
20                        free remote desktop package.
21
22homepage                http://www.tightvnc.com/
23master_sites            sourceforge:vnc-tight
24distname                ${name}-${version}_unixsrc
25use_bzip2               yes
26
27checksums               md5     397b35faad32d5246b6d44b142f8304f \
28                        sha1    ab4ed3d8e9d5188edf0ff27fce3027495f1a8851 \
29                        rmd160  0c24207ec13c1d41f445ccbdea16ce2b5d0729a7
30
31depends_build           port:gccmakedep
32
33depends_lib             port:xorg-libXaw \
34                        port:xorg-libXp \
35                        port:jpeg \
36                        port:zlib
37
38depends_run             path:bin/perl:perl5
39
40worksrcdir              vnc_unixsrc
41
42patchfiles              patch-Xvnc.diff \
43                        patch-vncviewer.diff \
44                        patch-vncserver.diff \
45                        patch-vncconnect_vncconnect.c.diff \
46                        patch-include_vncauth.h.diff
47
48post-patch {
49    reinplace "s|@PREFIX@|${prefix}|g" \
50        ${worksrcpath}/Xvnc/config/cf/vnclibs.def \
51        ${worksrcpath}/vncserver \
52        ${worksrcpath}/vncviewer/Imakefile
53    if {[catch {set perl [binaryInPath "perl"]}] == 0} {
54        reinplace "s|@PERL@|${perl}|g" ${worksrcpath}/vncserver
55    }
56    # The Vncviewer sample configuration file conflicts with the vncviewer binary
57    # on case-insensitive filesystems like Mac OS X's default Mac OS Extended.
58    move ${worksrcpath}/vncviewer/Vncviewer ${worksrcpath}/vncviewer/Vncviewer.sample
59}
60
61use_xmkmf               yes
62
63build.target            World
64
65post-build {
66    system "cd '${worksrcpath}/Xvnc' && ./configure"
67    system "cd '${worksrcpath}/Xvnc' && make World"
68}
69
70destroot.cmd            ./vncinstall
71destroot.target         ${destroot}${prefix}/bin ${destroot}${prefix}/share/man
72destroot.destdir
73
74post-destroot {
75    xinstall -d -m 0755 ${destroot}${prefix}/share/vnc/classes
76    foreach f [glob ${worksrcpath}/classes/*] {
77        xinstall -m 0644 $f ${destroot}${prefix}/share/vnc/classes
78    }
79}
80
81variant no_server {
82    depends_run-delete  path:bin/perl:perl5
83    patchfiles-append   patch-no_server.diff
84}
Note: See TracBrowser for help on using the repository browser.