Index: Makefile =================================================================== --- Makefile +++ Makefile @@ -27,6 +27,9 @@ .if exists(/usr/sbin/bhyve) OPTIONS_DEFINE_amd64+= BHYVE OPTIONS_DEFAULT_amd64+= BHYVE +.else +PLIST_SUB+= BHYVE="@comment " +CONFIGURE_ARGS+= --without-bhyve .endif QEMU_DESC= QEMU driver BHYVE_DESC= bhyve driver @@ -34,6 +37,8 @@ OPTIONS_SUB= yes +BHYVE_CONFIGURE_WITH= bhyve + QEMU_CONFIGURE_WITH= qemu yajl QEMU_CFLAGS= -I${LOCALBASE}/include QEMU_LIB_DEPENDS= libyajl.so:${PORTSDIR}/devel/yajl @@ -56,7 +61,7 @@ USE_RC_SUBR= libvirtd GNU_CONFIGURE= yes -CONFIGURE_ARGS= --without-avahi \ +CONFIGURE_ARGS+= --without-avahi \ --without-polkit \ --without-hal \ --without-udev \ @@ -82,7 +87,7 @@ USE_LDCONFIG= yes INSTALL_TARGET= install-strip SHLIB_VER= 0.1002.${PORTVERSION:E} -PLIST_SUB= PORTVERSION="-${PORTVERSION}" \ +PLIST_SUB+= PORTVERSION="-${PORTVERSION}" \ SHLIB_VER=${SHLIB_VER} PORTDOCS= * @@ -90,17 +95,6 @@ .include -.if (exists(/usr/sbin/bhyve) && ${OSVERSION} >= 100051) -CONFIGURE_ARGS+= --with-bhyve -.else -CONFIGURE_ARGS+= --without-bhyve -.endif - -.if ${PORT_OPTIONS:MBHYVE} -STRIP_FILES+= lib/libvirt/connection-driver/libvirt_driver_bhyve.so -PLIST_FILES+= lib/libvirt/connection-driver/libvirt_driver_bhyve.so -.endif - .if !${PLIST_SUB:MXEN} PLIST_SUB+= XEN="@comment " .endif @@ -109,7 +103,7 @@ @${MV} ${WRKSRC}/daemon/libvirtd.conf ${WRKSRC}/daemon/libvirtd.conf.sample @${REINPLACE_CMD} -e 's|libvirtd\.conf|libvirtd.conf.sample|' \ ${WRKSRC}/daemon/Makefile.in - + @${REINPLACE_CMD} -e 's|ln -s ../default.xml|true|' \ -e 's|$$(DESTDIR)$$(confdir)/qemu/networks|${STAGEDIR}${EXAMPLESDIR}/networks|' \ ${WRKSRC}/src/Makefile.in @@ -146,12 +140,6 @@ ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} .endfor -.if ${PORT_OPTIONS:MBHYVE} -.for strip in ${STRIP_FILES} - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${strip} -.endfor -.endif - .for dir in run/libvirt/network \ run/libvirt/qemu \ run/libvirt/lockd \ Index: pkg-plist =================================================================== --- pkg-plist +++ pkg-plist @@ -295,6 +295,7 @@ %%NLS%%share/locale/zh_CN/LC_MESSAGES/libvirt.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/libvirt.mo %%NLS%%share/locale/zu/LC_MESSAGES/libvirt.mo +%%BHYVE%%lib/libvirt/connection-driver/libvirt_driver_bhyve.so %%QEMU%%lib/libvirt/connection-driver/libvirt_driver_qemu.so lib/libvirt/connection-driver/libvirt_driver_network.so lib/libvirt/connection-driver/libvirt_driver_secret.so