1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | # Follwing instructions here... |
---|
5 | # http://www.virtualbox.org/wiki/Mac%20OS%20X%20build%20instructions |
---|
6 | |
---|
7 | # TODO - |
---|
8 | # restrict to Intel Macs, VirtualBox doesn't support PPC |
---|
9 | # Support Tiger/Leopard - currently compiling 64 bit... |
---|
10 | # WARNING - see command line corruption after executiong this Portfile |
---|
11 | # on Snow Leopard. Belive its due to the 32 bit binaries shipped |
---|
12 | # with the VirtualBox tarball. The Sun docs say "the OSX port is |
---|
13 | # not yet complete" even though lots of press to the contrary... |
---|
14 | # Check for Cocoa/Carbon - variant needed? |
---|
15 | # Not checking XCode requirement, figure that is covered by MacPorts |
---|
16 | PortSystem 1.0 |
---|
17 | |
---|
18 | name virtualbox |
---|
19 | version 3.1.2 |
---|
20 | categories virtualization |
---|
21 | maintainers tbd |
---|
22 | description Open source virtualization technology which runs and runs \ |
---|
23 | on lots of operating systems |
---|
24 | long_description \ |
---|
25 | VirtualBox is a powerful x86 and AMD64/Intel64 virtualization \ |
---|
26 | product for enterprise as well as home use. Not only is VirtualBox \ |
---|
27 | an extremely feature rich, high performance product for enterprise \ |
---|
28 | customers, it is also the only professional solution that is freely \ |
---|
29 | available as Open Source Software under the terms of the GNU General \ |
---|
30 | Public License (GPL). |
---|
31 | homepage http://httpd.virtualbox.org/ |
---|
32 | platforms darwin |
---|
33 | |
---|
34 | master_sites http://download.virtualbox.org/virtualbox/${version} |
---|
35 | distname VirtualBox-${version}-OSE |
---|
36 | use_bzip2 yes |
---|
37 | use_parallel_build yes |
---|
38 | |
---|
39 | checksums md5 e7808f16114f5b1a65aa2df1aa33e1a7 \ |
---|
40 | sha1 ac85e5d098684080ce0571406d741f3db03064b8 |
---|
41 | |
---|
42 | depends_lib-append port:libidl \ |
---|
43 | port:doxygen \ |
---|
44 | port:openssl \ |
---|
45 | port:texlive \ |
---|
46 | port:qt4-mac \ |
---|
47 | port:libsdl-framework |
---|
48 | |
---|
49 | # port:gsoap |
---|
50 | |
---|
51 | # kill the normal --prefix=${prefix}, Virtualbox configure script is NOT autoconf |
---|
52 | configure.pre_args-delete --prefix=${prefix} |
---|
53 | |
---|
54 | configure.args --disable-hardening \ |
---|
55 | --with-qt-dir=/opt/local/Library |
---|
56 | |
---|
57 | # --with-gsoap=/opt/local |
---|
58 | |
---|
59 | pre-build { |
---|
60 | # Use MacPorts packages! Yeah! |
---|
61 | # VirtualBox configure script needs a --with-libsdl-dir switch |
---|
62 | reinplace "s:/System/Library:/opt/local/Library:g" ${worksrcpath}/configure |
---|
63 | # I'm on a Snow Leopard machine which is 64 bit |
---|
64 | reinplace "s:BUILD_MACHINE='x86':BUILD_MACHINE='amd64':g" ${worksrcpath}/configure |
---|
65 | } |
---|
66 | |
---|
67 | # This ain't no autoconf package apparently |
---|
68 | build.cmd ". ./env.sh && kmk" |
---|
69 | |
---|
70 | # weird tarball top directory |
---|
71 | worksrcdir VirtualBox-${version}_OSE |
---|
72 | |
---|
73 | startupitem.create yes |
---|
74 | startupitem.start \ |
---|
75 | "load.sh && VirtualBox > /dev/null" |
---|