# $MidnightBSD: trunk/x11-drivers/xf86-video-qxl/Makefile 23935 2018-08-26 21:46:14Z laffer1 $
# $FreeBSD: head/x11-drivers/xf86-video-qxl/Makefile 462587 2018-02-22 12:53:13Z tobik $

PORTNAME=	xf86-video-qxl
DISTVERSION=	0.1.5
CATEGORIES=	x11-drivers

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	X.Org X server -- QXL display driver

LICENSE=	mit

BUILD_DEPENDS=	spice-protocol>=0.12.10:devel/spice-protocol \
		${LOCALBASE}/include/linux/input.h:multimedia/v4l_compat
LIB_DEPENDS=	libspice-server.so:devel/libspice-server

USES=		localbase:ldflags pkgconfig python:2.7 shebangfix

USE_XORG=	xf86dgaproto xfont
XORG_CAT=	driver

CONFIGURE_ARGS+=--enable-xspice

python_OLD_CMD=	"/usr/bin/python"
SHEBANG_FILES=	scripts/Xspice

post-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d
	${INSTALL_DATA} ${WRKSRC}/examples/spiceqxl.xorg.conf.example \
		${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d/spiceqxl.xorg.conf.example

.include <bsd.port.mk>
