1 | # $Id: Portfile 102822 2013-02-09 00:51:24Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name tightvnc |
---|
6 | conflicts vnc tigervnc |
---|
7 | version 1.3.10 |
---|
8 | revision 1 |
---|
9 | categories x11 vnc |
---|
10 | maintainers nomaintainer |
---|
11 | platforms darwin |
---|
12 | license GPL-2 |
---|
13 | description Enhanced version of VNC |
---|
14 | long_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 | |
---|
22 | homepage http://www.tightvnc.com/ |
---|
23 | master_sites sourceforge:vnc-tight |
---|
24 | distname ${name}-${version}_unixsrc |
---|
25 | use_bzip2 yes |
---|
26 | |
---|
27 | checksums md5 397b35faad32d5246b6d44b142f8304f \ |
---|
28 | sha1 ab4ed3d8e9d5188edf0ff27fce3027495f1a8851 \ |
---|
29 | rmd160 0c24207ec13c1d41f445ccbdea16ce2b5d0729a7 |
---|
30 | |
---|
31 | depends_build port:gccmakedep |
---|
32 | |
---|
33 | depends_lib port:xorg-libXaw \ |
---|
34 | port:xorg-libXp \ |
---|
35 | port:jpeg \ |
---|
36 | port:zlib |
---|
37 | |
---|
38 | depends_run path:bin/perl:perl5 |
---|
39 | |
---|
40 | worksrcdir vnc_unixsrc |
---|
41 | |
---|
42 | patchfiles patch-Xvnc.diff \ |
---|
43 | patch-vncviewer.diff \ |
---|
44 | patch-vncserver.diff \ |
---|
45 | patch-vncconnect_vncconnect.c.diff \ |
---|
46 | patch-include_vncauth.h.diff |
---|
47 | |
---|
48 | post-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 | |
---|
61 | use_xmkmf yes |
---|
62 | |
---|
63 | build.target World |
---|
64 | |
---|
65 | post-build { |
---|
66 | system "cd '${worksrcpath}/Xvnc' && ./configure" |
---|
67 | system "cd '${worksrcpath}/Xvnc' && make World" |
---|
68 | } |
---|
69 | |
---|
70 | destroot.cmd ./vncinstall |
---|
71 | destroot.target ${destroot}${prefix}/bin ${destroot}${prefix}/share/man |
---|
72 | destroot.destdir |
---|
73 | |
---|
74 | post-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 | |
---|
81 | variant no_server { |
---|
82 | depends_run-delete path:bin/perl:perl5 |
---|
83 | patchfiles-append patch-no_server.diff |
---|
84 | } |
---|