aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2017-04-03 00:21:07 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2017-04-09 21:28:26 +0800
commitd6d513342dd6b50141ce1bc69b984442bb048a6d (patch)
tree76ec767853c5c4752f8bbf8299a9d41f58ee046e
parent73d79a776d785ca571350436779b8bc71f0e58b2 (diff)
downloadfreebsd-ports-gnome-d6d513342dd6b50141ce1bc69b984442bb048a6d.tar.gz
freebsd-ports-gnome-d6d513342dd6b50141ce1bc69b984442bb048a6d.tar.zst
freebsd-ports-gnome-d6d513342dd6b50141ce1bc69b984442bb048a6d.zip
The package provides a generic VDPAU driver. It uses OpenGL under the
hood to accelerate drawing, scaling, and (if available) VA-API to accelerate video decoding. WWW: https://github.com/i-rinat/libvdpau-va-gl Differential Revision: https://reviews.freebsd.org/D10055 Submitted by: jbeich (Jan Beich)
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/libvdpau-va-gl/Makefile37
-rw-r--r--multimedia/libvdpau-va-gl/distinfo5
-rw-r--r--multimedia/libvdpau-va-gl/pkg-descr5
4 files changed, 48 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index f1a83247522b..83ea25b0e45c 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -213,6 +213,7 @@
SUBDIR += libva-utils
SUBDIR += libva-vdpau-driver
SUBDIR += libvdpau
+ SUBDIR += libvdpau-va-gl
SUBDIR += libvpx
SUBDIR += libx264
SUBDIR += libxine
diff --git a/multimedia/libvdpau-va-gl/Makefile b/multimedia/libvdpau-va-gl/Makefile
new file mode 100644
index 000000000000..dc372e04c496
--- /dev/null
+++ b/multimedia/libvdpau-va-gl/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME= libvdpau-va-gl
+PORTVERSION= 0.4.2
+DISTVERSIONPREFIX= v
+CATEGORIES= multimedia
+
+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES= 58a98e8a735f.patch:-p1
+
+MAINTAINER= madpilot@FreeBSD.org
+COMMENT= VDPAU driver with OpenGL/VAAPI backend
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libva-x11.so:multimedia/libva
+
+USE_GITHUB= yes
+GH_ACCOUNT= i-rinat
+
+USES= cmake pkgconfig
+USE_XORG= x11
+USE_GL= gl
+LDFLAGS+= -Wl,--as-needed # Xext, ICE, SM
+TEST_TARGET= check
+
+PLIST_FILES= lib/vdpau/libvdpau_va_gl.so lib/vdpau/libvdpau_va_gl.so.1
+# bug 217825: Convenience symlinks. On AMD prefer VDPAU from Mesa.
+PLIST_FILES+= lib/vdpau/libvdpau_i915.so.1 lib/vdpau/libvdpau_i965.so.1
+
+post-install:
+.for f in ${PLIST_FILES:N*va_gl*:M*.so.1}
+ ${LN} -sf libvdpau_va_gl.so.1 ${STAGEDIR}${PREFIX}/$f
+.endfor
+
+.include <bsd.port.mk>
diff --git a/multimedia/libvdpau-va-gl/distinfo b/multimedia/libvdpau-va-gl/distinfo
new file mode 100644
index 000000000000..9adc024f685d
--- /dev/null
+++ b/multimedia/libvdpau-va-gl/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1474986072
+SHA256 (i-rinat-libvdpau-va-gl-v0.4.2_GH0.tar.gz) = 7d9121540658eb0244859e63da171ca3869e784afbeaf202f44471275c784af4
+SIZE (i-rinat-libvdpau-va-gl-v0.4.2_GH0.tar.gz) = 119473
+SHA256 (58a98e8a735f.patch) = 0dbd7c1b2f831b74f65d42cd632f680f08b7cf9f5248e7de757df80bab599eb8
+SIZE (58a98e8a735f.patch) = 1240
diff --git a/multimedia/libvdpau-va-gl/pkg-descr b/multimedia/libvdpau-va-gl/pkg-descr
new file mode 100644
index 000000000000..1e074461f937
--- /dev/null
+++ b/multimedia/libvdpau-va-gl/pkg-descr
@@ -0,0 +1,5 @@
+The package provides a generic VDPAU driver. It uses OpenGL under the
+hood to accelerate drawing, scaling, and (if available) VA-API to
+accelerate video decoding.
+
+WWW: https://github.com/i-rinat/libvdpau-va-gl