# $Id: Portfile 58438 2009-09-28 18:36:06Z ryandesign@macports.org $ PortSystem 1.0 PortGroup xcode 1.0 name osxvnc version 3.0 revision 1 categories aqua vnc homepage http://www.redstonesoftware.com/vnc.html maintainers ryandesign fetch.type cvs cvs.root :pserver:anonymous@osxvnc.cvs.sourceforge.net:/cvsroot/osxvnc cvs.module OSXvnc cvs.tag V[strsed ${version} {g/\./_/}] worksrcdir OSXvnc description \ a full-featured VNC server (formerly OSXvnc) long_description \ Vine Server (formerly OSXvnc) is a full-featured VNC server \ for Mac OS X providing remote access to the GUI, keyboard and \ mouse using any VNC client. depends_build \ port:libiconv depends_lib \ port:zlib patchfiles \ patch-project.pbxproj.diff post-patch { # Make all strings UTF-16 so CopyStringsFile doesn't fail on Leopard. See #15919. set language_encodings { English utf-8 German macroman Italian macroman Japanese utf-8 } foreach {language encoding} ${language_encodings} { system "cd ${worksrcpath}/${language}.lproj && cp -p Localizable.strings Localizable.strings.orig && ${prefix}/bin/iconv -f ${encoding} -t utf-16 Localizable.strings.orig > Localizable.strings" } } post-destroot { # Fix permissions for users not installing with root fs-traverse dir ${workpath} { if {[file isdirectory ${dir}]} { file attributes ${dir} -permissions 0755 } } } variant universal {} if {! [variant_isset universal]} { set arch ${os.arch} if {! [string compare ${arch} powerpc]} { set arch ppc } xcode.build.settings ARCHS=${arch} xcode.destroot.settings ARCHS=${arch} } livecheck.type sourceforge livecheck.regex {Vine Server\(OSXvnc\) Version (.*) released.*}