summaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer1-vaapi/Makefile
blob: c4aa8090a66e8f2b7b689b7546ff417a6049cb42 (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
# Created by: Koop Mast <kwm@rainbow-runner.nl>
# $FreeBSD$

PORTNAME=	gstreamer1-vaapi
PORTVERSION=	0.5.7
CATEGORIES=	multimedia
MASTER_SITES=	http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/
DISTNAME=	gstreamer-vaapi-${PORTVERSION}

MAINTAINER=	multimedia@FreeBSD.org
COMMENT=	GStreamer hardware video decoding via VA-API plug-in

LICENSE=	LGPL21

LIB_DEPENDS=	libva.so:${PORTSDIR}/multimedia/libva

USE_LDCONFIG=	yes
USE_GSTREAMER1=	yes
GNU_CONFIGURE=	yes
USE_GL=		gl
USE_XORG=	x11 xrandr xrender xproto:build
USES=		gmake pkgconfig tar:bzip2
CONFIGURE_ARGS=	--disable-wayland --with-gstreamer-api=1.2
PATHFIX_MAKEFILEIN=	configure

PLIST_SUB=	VERSION=1.2

# manual since pathfix doesn't work.
post-patch:
	@${REINPLACE_CMD} -e 's|[{]libdir[}]/pkgconfig|{prefix}/libdata/pkgconfig|g' \
		${WRKSRC}/configure

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgst*-1.2.so.0
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gstreamer-1.0/libgstvaapi.so

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