Ignore:
Timestamp:
Sep 29, 2011, 5:22:47 PM (9 years ago)
Author:
royliu@…
Message:

virtualbox: add VNC and Python binding support and close tickets #31305, #31328

Location:
trunk/dports/emulators/virtualbox
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/virtualbox/Portfile

    r83671 r84688  
    77name                virtualbox
    88version             4.1.2
    9 revision            4
     9revision            5
    1010categories          emulators
    1111maintainers         nomaintainer
     
    5252
    5353patchfiles                  patch-build.diff \
     54                            patch-sdk.diff \
    5455                            patch-startup.diff
    5556
     
    6768set kext_dir                /Library/Extensions
    6869set startup_items_dir       /Library/StartupItems
    69 
    70 pre-extract {
    71 
    72     set head_path ${applications_dir}
    73 
    74     while {${head_path} != "/"} {
    75 
    76         if {[file attributes ${head_path} -owner] != "root" || [file attributes ${head_path} -group] != "admin"} {
    77             error "VirtualBox requires the \"${applications_dir}\" directory and its parent directories to have\
    78 root:admin ownership."
    79         }
    80 
    81         set head_path [file dirname ${head_path}]
    82     }
    83 }
    8470
    8571post-patch {
     
    10591    xinstall -m 755 -d ${destroot}${applications_dir}
    10692    copy ${release_dir}/VirtualBox.app ${destroot}${applications_dir}
     93    copy ${release_dir}/sdk ${destroot}${applications_dir}/VirtualBox.app
    10794
    10895    # Set the owner and group to root:wheel, which is required for kernel extensions and possibly startup items.
     
    136123}
    137124
     125pre-activate {
     126
     127    set head_path ${applications_dir}
     128
     129    while {${head_path} != "/"} {
     130
     131        if {[file attributes ${head_path} -owner] != "root" || [file attributes ${head_path} -group] != "admin"
     132            || [expr [file attributes ${head_path} -permissions] & 00002] != 0} {
     133            error "VirtualBox requires the \"${applications_dir}\" directory and its parent directories to be\
     134root:admin owned and not world writeable."
     135        }
     136
     137        set head_path [file dirname ${head_path}]
     138    }
     139}
     140
    138141variant vde2 description {Enable support for VDE} {
    139142
     
    143146}
    144147
    145 default_variants            +vde2
     148variant vnc description {Enable support for VNC} {
     149    depends_lib-append      port:LibVNCServer
     150    configure.args-append   --enable-vnc
     151}
     152
     153default_variants            +vde2 +vnc
    146154
    147155startupitem.create          yes
  • trunk/dports/emulators/virtualbox/files/patch-build.diff

    r83671 r84688  
    6565--- /dev/null   2011-08-15 19:38:06.000000000 -0500
    6666+++ LocalConfig.kmk     2011-08-15 19:38:17.000000000 -0500
    67 @@ -0,0 +1,10 @@
     67@@ -0,0 +1,11 @@
    6868+VBOX_DEF_MACOSX_VERSION_MIN = 10.6
    6969+VBOX_DARWIN_NO_COMPACT_LINKEDIT =
     
    7373+VBOX_PATH_APP_PRIVATE_ARCH="@APPLICATIONS_DIR@/VirtualBox.app/Contents/MacOS"
    7474+VBOX_PATH_SHARED_LIBS="@APPLICATIONS_DIR@/VirtualBox.app/Contents/MacOS"
     75+VBOX_WITH_MULTIVERSION_PYTHON = 1
    7576+VBOX_WITH_TESTSUITE=
    7677+VBOX_WITH_TESTCASES=
Note: See TracChangeset for help on using the changeset viewer.