Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2019 09:44:26 +0000 (UTC)
From:      =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492838 - head/sysutils/xen-tools411
Message-ID:  <201902130944.x1D9iQrl085822@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: royger (src committer)
Date: Wed Feb 13 09:44:26 2019
New Revision: 492838
URL: https://svnweb.freebsd.org/changeset/ports/492838

Log:
  xen-tools411: add optional SPICE support
  
  Add a new config option to enable SPICE support for QEMU. Note that
  the SPICE code in QEMU requires llvm 7.0 or higher, so it's currently
  only available for FreeBSD 13.0 and higher and disabled by default.
  
  Submitted by:	Oleg Ginzburg <olevole@olevole.ru>
  Reviewed by:	royger

Modified:
  head/sysutils/xen-tools411/Makefile

Modified: head/sysutils/xen-tools411/Makefile
==============================================================================
--- head/sysutils/xen-tools411/Makefile	Wed Feb 13 09:39:20 2019	(r492837)
+++ head/sysutils/xen-tools411/Makefile	Wed Feb 13 09:44:26 2019	(r492838)
@@ -3,7 +3,7 @@
 PORTNAME=	xen
 PKGNAMESUFFIX=	-tools411
 PORTVERSION=	4.11.0
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	sysutils emulators
 MASTER_SITES=	http://downloads.xenproject.org/release/xen/${PORTVERSION}/
 
@@ -21,8 +21,14 @@ BUILD_DEPENDS=	seabios>0:misc/seabios
 RUN_DEPENDS=	seabios>0:misc/seabios
 DOCS_BUILD_DEPENDS=markdown:textproc/markdown
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=		DOCS SPICE
+OPTIONS_DEFAULT=	DOCS
 
+SPICE_DESC=		Enable SPICE protocol for QEMU
+SPICE_CONFIGURE_WITH=	extra-qemuu-configure-args="--enable-spice"
+SPICE_BUILD_DEPENDS=	spice-protocol>=0.12.10:devel/spice-protocol
+SPICE_LIB_DEPENDS=	libspice-server.so:devel/libspice-server
+
 ONLY_FOR_ARCHS=	amd64
 ONLY_FOR_ARCHS_REASON=	"not yet ported to anything other than amd64"
 
@@ -69,6 +75,10 @@ IGNORE=		only supported on FreeBSD
 
 .if ${OSVERSION} < 1200074
 IGNORE=		only supported on recent FreeBSD HEAD
+.endif
+
+.if ${PORT_OPTIONS:MSPICE} && ${OSVERSION} < 1300008
+BROKEN=	SPICE support requires FreeBSD version 13.0 or higher
 .endif
 
 post-patch:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902130944.x1D9iQrl085822>