summaryrefslogtreecommitdiffstats
path: root/x11-drivers/xf86-video-openchrome/Makefile
blob: bec73f7e0f0d3c9ce9e8e0b2f196ee445d042046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $FreeBSD$

PORTNAME=	xf86-video-openchrome
PORTVERSION=	0.6.0
PORTREVISION=	1
CATEGORIES=	x11-drivers

MAINTAINER=	x11@FreeBSD.org
COMMENT=	X.Org openChrome display driver

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libdrm.so:graphics/libdrm

USE_GL=		gl

XORG_CAT=	driver
USE_XORG=	x11 xext xv

# Override pkg-config to prevent linking against libudev
CONFIGURE_ENV+=	LIBUDEV_LIBS="-L${LOCALBASE}"
MAKE_ARGS+=	drivermandir=${LOCALBASE}/man/man4

.include <bsd.port.options.mk>

# XvMC is only supported by this driver on x86
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
USE_XORG+=	xvmc
PLIST_SUB+=	XVMC=""
.else
PLIST_SUB+=	XVMC="@comment "
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud