Ticket #23080: Portfile

File Portfile, 2.8 KB (added by bm55b@…, 15 years ago)

Original hacky Portfile for VirtualBox

Line 
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
16PortSystem       1.0
17
18name             virtualbox
19version          3.1.2
20categories       virtualization
21maintainers      tbd
22description      Open source virtualization technology which runs and runs \
23                 on lots of operating systems
24long_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).
31homepage         http://httpd.virtualbox.org/
32platforms        darwin
33
34master_sites     http://download.virtualbox.org/virtualbox/${version}
35distname         VirtualBox-${version}-OSE
36use_bzip2        yes
37use_parallel_build  yes
38
39checksums           md5     e7808f16114f5b1a65aa2df1aa33e1a7 \
40                    sha1    ac85e5d098684080ce0571406d741f3db03064b8
41
42depends_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
52configure.pre_args-delete  --prefix=${prefix}
53
54configure.args     --disable-hardening \
55                   --with-qt-dir=/opt/local/Library
56
57#                  --with-gsoap=/opt/local
58
59pre-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
68build.cmd          ". ./env.sh && kmk"
69
70# weird tarball top directory
71worksrcdir         VirtualBox-${version}_OSE
72
73startupitem.create      yes
74startupitem.start       \
75"load.sh && VirtualBox > /dev/null"