source: trunk/dports/aqua/osx2x/Portfile @ 47548

Last change on this file since 47548 was 47548, checked in by ryandesign@…, 8 years ago

osx2x: use ${applications_dir}

  • 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 47548 2009-03-01 00:35:51Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       xcode 1.0
6
7name            osx2x
8version         2.4.0
9revision        2
10set git_hash    3cc708236898ab789bb99a5fba7420ff76ede9f7
11platforms       darwin
12maintainers     nomaintainer
13description     small Aqua application to control X11 servers from Mac OS X
14
15long_description \
16    osx2x is a small Mac OS X application that lets you \
17    control other machines running either an X11 server \
18    or a VNC server using your mac's mouse and keyboard. \
19    So if you happen to have a mac and either an X \
20    Windows machine or a machine running VNC on your \
21    desk you only need to use a single keyboard and \
22    mouse!
23
24homepage        http://homepage.mac.com/mdales/osx2x/
25master_sites    http://github.com/mdales/osx2x/tarball/${git_hash}
26distname        $name-2.4
27
28worksrcdir      mdales-${name}-${git_hash}
29
30checksums           md5     fd13fd638a380d29b55eec07e930aa85 \
31                    sha1    764c74f298374f05f7fba6e5d35d98636e754bf6 \
32                    rmd160  7add82e2ac2d0c5fd6258ce77d6297502c395370
33
34patchfiles      patch-osx2x.xcodeproj.diff \
35                patch-XXRemoteVNC.m.diff
36
37post-patch {
38    reinplace s|@PREFIX@|$prefix| $worksrcpath/osx2x.xcodeproj/project.pbxproj
39    if {[file exists ${prefix}/lib/libX11.dylib]} {
40        reinplace s|@X11_PREFIX@|$prefix| $worksrcpath/osx2x.xcodeproj/project.pbxproj
41    } else {
42        reinplace s|@X11_PREFIX@|$x11prefix| $worksrcpath/osx2x.xcodeproj/project.pbxproj
43    }
44}
45
46depends_lib     port:xorg-libXtst \
47                port:openssl
48
49set library_search_path "LIBRARY_SEARCH_PATHS='$prefix/lib $x11prefix/lib'"
50
51eval xcode.build.settings-append        $library_search_path
52eval xcode.destroot.settings-append     $library_search_path
53
54post-destroot {
55    xinstall -d $destroot${applications_dir}
56    copy $worksrcpath/build/UninstalledProducts/osx2x.app $destroot${applications_dir}/
57}
58
59variant universal {
60    eval xcode.build.settings-append        "ARCHS='${configure.universal_archs}'"
61    eval xcode.destroot.settings-append     "ARCHS='${configure.universal_archs}'"
62}
63
64livecheck.check regex
65livecheck.regex {Latest version: (\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.