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 86458 2011-10-26 08:03:25Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup xcode 1.0 |
---|
6 | |
---|
7 | name osx2x |
---|
8 | version 2.4.0 |
---|
9 | set my_version 2.4 |
---|
10 | revision 3 |
---|
11 | set git_hash 3cc708236898ab789bb99a5fba7420ff76ede9f7 |
---|
12 | platforms darwin |
---|
13 | maintainers nomaintainer |
---|
14 | description small Aqua application to control X11 servers from Mac OS X |
---|
15 | |
---|
16 | long_description \ |
---|
17 | osx2x is a small Mac OS X application that lets you \ |
---|
18 | control other machines running either an X11 server \ |
---|
19 | or a VNC server using your mac's mouse and keyboard. \ |
---|
20 | So if you happen to have a mac and either an X \ |
---|
21 | Windows machine or a machine running VNC on your \ |
---|
22 | desk you only need to use a single keyboard and \ |
---|
23 | mouse! |
---|
24 | |
---|
25 | homepage http://digitalflapjack.com/osx2x/ |
---|
26 | master_sites http://arn.se.distfiles.macports.org/${dist_subdir} |
---|
27 | #master_sites http://github.com/mdales/osx2x/tarball/${git_hash} |
---|
28 | distname ${name}-${my_version} |
---|
29 | |
---|
30 | worksrcdir mdales-${name}-${git_hash} |
---|
31 | |
---|
32 | checksums \ |
---|
33 | md5 897cf872c4006d4173b3c6ff046b0c44 \ |
---|
34 | sha1 1014e0ac22b0c00b47dde2b0f7f44eaa676acc7e \ |
---|
35 | rmd160 cc2a63b9dbfd9485c039fc989bbab96e6cf919ac |
---|
36 | |
---|
37 | patchfiles patch-osx2x.xcodeproj.diff \ |
---|
38 | patch-XXRemoteVNC.m.diff |
---|
39 | |
---|
40 | post-patch { |
---|
41 | reinplace s|@PREFIX@|$prefix| $worksrcpath/osx2x.xcodeproj/project.pbxproj |
---|
42 | reinplace s|@X11_PREFIX@|$prefix| $worksrcpath/osx2x.xcodeproj/project.pbxproj |
---|
43 | } |
---|
44 | |
---|
45 | depends_lib port:xorg-libXtst \ |
---|
46 | port:openssl |
---|
47 | |
---|
48 | xcode.configuration Release |
---|
49 | xcode.build.settings-append LIBRARY_SEARCH_PATHS=${prefix}/lib |
---|
50 | |
---|
51 | destroot { |
---|
52 | copy ${worksrcpath}/build/${xcode.configuration}/osx2x.app ${destroot}${applications_dir} |
---|
53 | } |
---|
54 | |
---|
55 | livecheck.type regexm |
---|
56 | livecheck.version ${my_version} |
---|
57 | livecheck.url https://raw.github.com/mdales/osx2x/master/Info.plist |
---|
58 | livecheck.regex {<key>CFBundleVersion</key>\s+<string>([0-9.]+)</string>} |
---|