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