# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup mist64 xhyve 0.2.0 v revision 1 categories emulators platforms darwin supported_archs x86_64 license BSD maintainers takeshi openmaintainer description a lightweight OS X virtualization solution long_description \ The xhyve hypervisor is a port of bhyve to OS X. \ It is built on top of Hypervisor.framework in OS X 10.10 Yosemite and higher, \ runs entirely in userspace, and has no other dependencies. \ It can run FreeBSD and vanilla Linux distributions and \ may gain support for other guest operating systems in the future. checksums rmd160 f04ef00ddb2be3cc34415015acf8bebf54394e02 \ sha256 b7b96388da660b6224623a6445f61c1645123d59637023bb6e2c7fb29522619d pre-fetch { if {${os.platform} eq "darwin" && (${os.major} < 14)} { ui_error "${name} is built on top of Hypervisor.framework in OS X 10.10 Yosemite and higher" return -code error "incompatible OS X version" } } post-patch { reinplace "s|test/|${prefix}/share/${name}/test/|" ${worksrcpath}/${name}run.sh reinplace "s|build/${name}|${prefix}/bin/${name}|" ${worksrcpath}/${name}run.sh } use_configure no build.env CC=${configure.cc} \ CFLAGS=${configure.cflags} \ LDFLAGS=${configure.ldflags} -framework Hypervisor -framework vmne destroot { xinstall -m 755 -W ${worksrcpath} build/${name} ${destroot}${prefix}/bin xinstall -d -m 755 ${destroot}${prefix}/libexec/${name} xinstall -m 755 -W ${worksrcpath} ${name}run.sh ${destroot}${prefix}/libexec/${name}/${name}run.sh.sample xinstall -d -m 755 ${destroot}${prefix}/share/${name} file copy ${worksrcpath}/test ${destroot}${prefix}/share/${name} } notes " The shell script to run xhyve is installed as ${prefix}/libexec/${name}/${name}run.sh.sample. Copy the script for editing. ${name}run.sh.sample will be overwritten when the port is updated. "