# -*- 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
# $Id$
PortSystem 1.0
PortGroup xcode 1.0
name osx2x
version 2.4.0
set my_version 2.4
revision 5
set git_hash 3cc708236898ab789bb99a5fba7420ff76ede9f7
license BSD
platforms darwin
maintainers nomaintainer
description small Aqua application to control X11 servers from Mac OS X
long_description \
osx2x is a small Mac OS X application that lets you \
control other machines running either an X11 server \
or a VNC server using your mac's mouse and keyboard. \
So if you happen to have a mac and either an X \
Windows machine or a machine running VNC on your \
desk you only need to use a single keyboard and \
mouse!
homepage http://digitalflapjack.com/osx2x/
master_sites http://arn.se.distfiles.macports.org/${dist_subdir}
#master_sites http://github.com/mdales/osx2x/tarball/${git_hash}
distname ${name}-${my_version}
worksrcdir mdales-${name}-${git_hash}
checksums \
md5 897cf872c4006d4173b3c6ff046b0c44 \
sha1 1014e0ac22b0c00b47dde2b0f7f44eaa676acc7e \
rmd160 cc2a63b9dbfd9485c039fc989bbab96e6cf919ac
patchfiles patch-osx2x.xcodeproj.diff \
patch-XXRemoteVNC.m.diff \
patch-offbyone.diff
post-patch {
reinplace s|@PREFIX@|$prefix| $worksrcpath/osx2x.xcodeproj/project.pbxproj
reinplace s|@X11_PREFIX@|$prefix| $worksrcpath/osx2x.xcodeproj/project.pbxproj
}
depends_lib port:xorg-libXtst \
port:xorg-xproto \
path:lib/libssl.dylib:openssl
xcode.configuration Release
xcode.build.settings-append HEADER_SEARCH_PATHS=${prefix}/include LIBRARY_SEARCH_PATHS=${prefix}/lib
destroot {
copy ${worksrcpath}/build/${xcode.configuration}/osx2x.app ${destroot}${applications_dir}
}
livecheck.type regexm
livecheck.version ${my_version}
livecheck.url https://raw.github.com/mdales/osx2x/master/Info.plist
livecheck.regex {CFBundleVersion\s+([0-9.]+)}