Ticket #32615: virtualbox-guest-additions.diff
File virtualbox-guest-additions.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Portfile
7 7 name virtualbox 8 8 version 4.1.8 9 9 categories emulators 10 platforms darwin 10 11 maintainers nomaintainer 11 12 description open source virtualization technology from Oracle 12 13 long_description \ … … 17 18 Source Software. 18 19 license GPL-2 19 20 homepage http://www.virtualbox.org/ 21 master_sites http://download.virtualbox.org/virtualbox/${version} 20 22 23 if {${name} == ${subport}} { 24 21 25 # virtualbox installs a kernel extension so it has to build for the same architecture as the kernel 22 26 set kernel_arch [exec uname -m] 23 27 switch ${kernel_arch} { … … 32 36 33 37 universal_variant no 34 38 35 platforms darwin36 37 master_sites http://download.virtualbox.org/virtualbox/${version}/38 39 distname VirtualBox-${version} 39 40 use_bzip2 yes 40 41 … … 180 181 181 182 livecheck.url ${homepage} 182 183 livecheck.regex "VirtualBox (\\d+\\.\\d+(?:\\.\\d+)?) released!" 184 185 } else { 186 187 livecheck.type none 188 189 } 190 191 subport virtualbox-guest-additions { 192 license VirtualBoxPUEL 193 194 description guest additions for VirtualBox 195 196 long_description ${description} 197 198 supported_archs noarch 199 200 distfiles VBoxGuestAdditions_${version}.iso 201 202 checksums rmd160 8730184e30ff856ad09f75ea3e6886f872339ba0 \ 203 sha256 2265aa350de2d62021e91ae6bbd1438c291a74494778bb443926e9b7b962c63d 204 205 depends_run port:virtualbox 206 207 extract.only 208 209 use_configure no 210 211 build {} 212 213 destroot { 214 set dir ${destroot}${applications_dir}/VirtualBox.app/Contents/MacOS/additions 215 xinstall -d ${dir} 216 copy ${distpath}/${distfiles} ${dir}/VBoxGuestAdditions.iso 217 } 218 }