summaryrefslogtreecommitdiff
path: root/multimedia/libva-intel-hybrid-driver/Makefile
blob: cbdaa0596f61da94688d220f5bcd0488bfa711d2 (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
36
37
38
39
40
41
42
43
44
45
46

PORTNAME=	intel-hybrid-driver
DISTVERSION=	1.0.2
PORTREVISION=	2
CATEGORIES=	multimedia
PKGNAMEPREFIX=	libva-

PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+=	dfa9c8eba295.patch:-p1
PATCHFILES+=	b3b4d9a3a08d.patch:-p1 # https://github.com/intel/intel-hybrid-driver/pull/26
PATCHFILES+=	821f87129662.patch:-p1 # https://github.com/intel/intel-hybrid-driver/pull/28

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Hybrid VP8 encoder and VP9 decoder for Intel GPUs

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

ONLY_FOR_ARCHS=	amd64 i386
ONLY_FOR_ARCHS_REASON=	Only Intel GPUs on x86 are supported

LIB_DEPENDS=	libdrm_intel.so:graphics/libdrm \
		libcmrt.so:multimedia/cmrt \
		libva.so:multimedia/libva

USES=		autoreconf compiler:c11 gmake libtool pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	intel
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
PLIST_FILES=	lib/dri/hybrid_drv_video.so

OPTIONS_DEFINE=	WAYLAND X11
OPTIONS_DEFAULT=WAYLAND X11

WAYLAND_LIB_DEPENDS=	libva-wayland.so:multimedia/libva
WAYLAND_CONFIGURE_ENABLE=	wayland

X11_LIB_DEPENDS=	libva-x11.so:multimedia/libva
X11_CONFIGURE_ENABLE=	x11

post-patch:
	@${REINPLACE_CMD} -e '/__linux__/d; /LINUX/d' \
		${WRKSRC}/src/vp9hdec/Makefile.am

.include <bsd.port.mk>