# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ # Follwing instructions here... # http://www.virtualbox.org/wiki/Mac%20OS%20X%20build%20instructions # TODO - # restrict to Intel Macs, VirtualBox doesn't support PPC # Support Tiger/Leopard - currently compiling 64 bit... # WARNING - see command line corruption after executiong this Portfile # on Snow Leopard. Belive its due to the 32 bit binaries shipped # with the VirtualBox tarball. The Sun docs say "the OSX port is # not yet complete" even though lots of press to the contrary... # Check for Cocoa/Carbon - variant needed? # Not checking XCode requirement, figure that is covered by MacPorts PortSystem 1.0 name virtualbox version 3.1.2 categories virtualization maintainers tbd description Open source virtualization technology which runs and runs \ on lots of operating systems long_description \ VirtualBox is a powerful x86 and AMD64/Intel64 virtualization \ product for enterprise as well as home use. Not only is VirtualBox \ an extremely feature rich, high performance product for enterprise \ customers, it is also the only professional solution that is freely \ available as Open Source Software under the terms of the GNU General \ Public License (GPL). homepage http://httpd.virtualbox.org/ platforms darwin master_sites http://download.virtualbox.org/virtualbox/${version} distname VirtualBox-${version}-OSE use_bzip2 yes use_parallel_build yes checksums md5 e7808f16114f5b1a65aa2df1aa33e1a7 \ sha1 ac85e5d098684080ce0571406d741f3db03064b8 depends_lib-append port:libidl \ port:doxygen \ port:openssl \ port:texlive \ port:qt4-mac \ port:libsdl-framework # port:gsoap # kill the normal --prefix=${prefix}, Virtualbox configure script is NOT autoconf configure.pre_args-delete --prefix=${prefix} configure.args --disable-hardening \ --with-qt-dir=/opt/local/Library # --with-gsoap=/opt/local pre-build { # Use MacPorts packages! Yeah! # VirtualBox configure script needs a --with-libsdl-dir switch reinplace "s:/System/Library:/opt/local/Library:g" ${worksrcpath}/configure # I'm on a Snow Leopard machine which is 64 bit reinplace "s:BUILD_MACHINE='x86':BUILD_MACHINE='amd64':g" ${worksrcpath}/configure } # This ain't no autoconf package apparently build.cmd ". ./env.sh && kmk" # weird tarball top directory worksrcdir VirtualBox-${version}_OSE startupitem.create yes startupitem.start \ "load.sh && VirtualBox > /dev/null"