Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2019 15:27:32 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r495793 - in head: graphics/gnash multimedia multimedia/libva multimedia/libva-glx multimedia/libxine multimedia/mythtv
Message-ID:  <201903151527.x2FFRWJ6096477@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Mar 15 15:27:31 2019
New Revision: 495793
URL: https://svnweb.freebsd.org/changeset/ports/495793

Log:
  multimedia/libva: move GLX into slave
  
  libva-glx isn't widely used and makes it hard to unify mesa-* ports
  into one due to circular dependency.
  
  See also: https://github.com/mpv-player/mpv/commit/a18dc01655b8
  Obtained from:	Greg V (based on)

Added:
  head/multimedia/libva-glx/
  head/multimedia/libva-glx/Makefile   (contents, props changed)
Modified:
  head/graphics/gnash/Makefile   (contents, props changed)
  head/multimedia/Makefile   (contents, props changed)
  head/multimedia/libva/Makefile   (contents, props changed)
  head/multimedia/libva/pkg-plist   (contents, props changed)
  head/multimedia/libxine/Makefile   (contents, props changed)
  head/multimedia/mythtv/Makefile   (contents, props changed)

Modified: head/graphics/gnash/Makefile
==============================================================================
--- head/graphics/gnash/Makefile	Fri Mar 15 15:00:13 2019	(r495792)
+++ head/graphics/gnash/Makefile	Fri Mar 15 15:27:31 2019	(r495793)
@@ -108,6 +108,9 @@ GNASH_RENDERERS+=	agg
 IGNORE=		support for OpenGL is currently broken, use option AGG
 GNASH_RENDERERS+=	ogl
 LIB_DEPENDS+=		libgdkglext-x11-1.0.so:x11-toolkits/gtkglext
+. if ${PORT_OPTIONS:MVAAPI}
+LIB_DEPENDS+=		libva-glx.so:multimedia/libva-glx
+. endif
 .endif
 
 .if ${PORT_OPTIONS:MCAIRO}

Modified: head/multimedia/Makefile
==============================================================================
--- head/multimedia/Makefile	Fri Mar 15 15:00:13 2019	(r495792)
+++ head/multimedia/Makefile	Fri Mar 15 15:27:31 2019	(r495793)
@@ -224,6 +224,7 @@
     SUBDIR += libuvc
     SUBDIR += libv4l
     SUBDIR += libva
+    SUBDIR += libva-glx
     SUBDIR += libva-intel-driver
     SUBDIR += libva-intel-hybrid-driver
     SUBDIR += libva-intel-media-driver

Added: head/multimedia/libva-glx/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/libva-glx/Makefile	Fri Mar 15 15:27:31 2019	(r495793)
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+PKGNAMESUFFIX=	-glx
+
+COMMENT=	VAAPI wrapper for GLX
+
+OPTIONS_SLAVE=	GLX X11
+OPTIONS_EXCLUDE=WAYLAND
+
+MASTERDIR=	${.CURDIR}/../libva
+
+post-install:	slave-post-install
+slave-post-install:
+	@${REINPLACE_CMD} '/glx/!s/^/@comment /' ${TMPPLIST}
+
+.include "${MASTERDIR}/Makefile"

Modified: head/multimedia/libva/Makefile
==============================================================================
--- head/multimedia/libva/Makefile	Fri Mar 15 15:00:13 2019	(r495792)
+++ head/multimedia/libva/Makefile	Fri Mar 15 15:27:31 2019	(r495793)
@@ -2,15 +2,16 @@
 
 PORTNAME=	libva
 PORTVERSION=	2.4.0
+PORTREVISION=	1
 CATEGORIES=	multimedia
 
 MAINTAINER=	jbeich@FreeBSD.org
-COMMENT=	VAAPI wrapper and dummy driver
+COMMENT?=	VAAPI wrapper and dummy driver
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libdrm.so:graphics/libdrm
+LIB_DEPENDS+=	libdrm.so:graphics/libdrm
 
 USES=		meson pkgconfig
 USE_GITHUB=	yes
@@ -18,16 +19,22 @@ USE_LDCONFIG=	yes
 GH_ACCOUNT=	intel
 LDFLAGS+=	-lpthread # for pthread_getthreadid_np
 
-OPTIONS_DEFINE=	WAYLAND X11
-OPTIONS_DEFAULT=WAYLAND X11
+OPTIONS_DEFINE=	GLX WAYLAND X11
+OPTIONS_DEFAULT=GLX WAYLAND X11
+OPTIONS_EXCLUDE?=GLX # enslaved until subpackaging
 OPTIONS_SUB=	yes
 
+GLX_LIB_DEPENDS=	libva-x11.so:multimedia/libva
+GLX_USES=		gl
+GLX_USE=		GL=gl
+GLX_MESON_YES=		with_glx
+GLX_IMPLIES=		X11
+
 WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland
 WAYLAND_MESON_YES=	with_wayland
 
-X11_USES=		gl
-X11_USE=		GL=gl XORG=x11,xorgproto,xext,xfixes
-X11_MESON_YES=		with_x11 with_glx
+X11_USE=		XORG=x11,xorgproto,xext,xfixes
+X11_MESON_YES=		with_x11
 
 post-patch:	.SILENT
 # V4L2 is unused since http://github.com/intel/libva/commit/70074679333c

Modified: head/multimedia/libva/pkg-plist
==============================================================================
--- head/multimedia/libva/pkg-plist	Fri Mar 15 15:00:13 2019	(r495792)
+++ head/multimedia/libva/pkg-plist	Fri Mar 15 15:27:31 2019	(r495793)
@@ -1,6 +1,6 @@
 include/va/va.h
 include/va/va_backend.h
-%%X11%%include/va/va_backend_glx.h
+%%GLX%%include/va/va_backend_glx.h
 include/va/va_backend_vpp.h
 %%WAYLAND%%include/va/va_backend_wayland.h
 include/va/va_compat.h
@@ -22,7 +22,7 @@ include/va/va_enc_vp9.h
 include/va/va_fei_h264.h
 include/va/va_fei_hevc.h
 include/va/va_fei.h
-%%X11%%include/va/va_glx.h
+%%GLX%%include/va/va_glx.h
 include/va/va_str.h
 include/va/va_tpi.h
 include/va/va_version.h
@@ -32,9 +32,9 @@ include/va/va_vpp.h
 lib/libva-drm.so
 lib/libva-drm.so.2
 lib/libva-drm.so.2.400.0
-%%X11%%lib/libva-glx.so
-%%X11%%lib/libva-glx.so.2
-%%X11%%lib/libva-glx.so.2.400.0
+%%GLX%%lib/libva-glx.so
+%%GLX%%lib/libva-glx.so.2
+%%GLX%%lib/libva-glx.so.2.400.0
 %%WAYLAND%%lib/libva-wayland.so
 %%WAYLAND%%lib/libva-wayland.so.2
 %%WAYLAND%%lib/libva-wayland.so.2.400.0
@@ -45,7 +45,7 @@ lib/libva.so
 lib/libva.so.2
 lib/libva.so.2.400.0
 libdata/pkgconfig/libva-drm.pc
-%%X11%%libdata/pkgconfig/libva-glx.pc
+%%GLX%%libdata/pkgconfig/libva-glx.pc
 %%WAYLAND%%libdata/pkgconfig/libva-wayland.pc
 %%X11%%libdata/pkgconfig/libva-x11.pc
 libdata/pkgconfig/libva.pc

Modified: head/multimedia/libxine/Makefile
==============================================================================
--- head/multimedia/libxine/Makefile	Fri Mar 15 15:00:13 2019	(r495792)
+++ head/multimedia/libxine/Makefile	Fri Mar 15 15:27:31 2019	(r495793)
@@ -3,7 +3,7 @@
 
 PORTNAME=	xine
 PORTVERSION=	1.2.9
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	multimedia ipv6
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-lib/${PORTVERSION}
 PKGNAMEPREFIX=	lib
@@ -110,7 +110,8 @@ SMB_CONFIGURE_ENV=		LIBSMBCLIENT_LIBS="-L${SAMBALIBS} 
 SMB_CONFIGURE_ENABLE=		samba
 SNDIO_CONFIGURE_ENABLE=		sndio
 SNDIO_LIB_DEPENDS=		libsndio.so:audio/sndio
-VAAPI_LIB_DEPENDS=		libva.so:multimedia/libva
+VAAPI_LIB_DEPENDS=		libva.so:multimedia/libva \
+				libva-glx.so:multimedia/libva-glx
 VAAPI_CONFIGURE_ENABLE=		vaapi
 W32DLL_CONFIGURE_ENABLE=	w32dll
 W32DLL_PLIST_FILES=		${PLUGINSDIR}/xineplug_decode_qt.so \

Modified: head/multimedia/mythtv/Makefile
==============================================================================
--- head/multimedia/mythtv/Makefile	Fri Mar 15 15:00:13 2019	(r495792)
+++ head/multimedia/mythtv/Makefile	Fri Mar 15 15:27:31 2019	(r495793)
@@ -4,7 +4,7 @@
 PORTNAME=	mythtv
 DISTVERSIONPREFIX=	v
 DISTVERSION=	30.0
-PORTREVISION?=	0
+PORTREVISION?=	1
 PORTEPOCH=	1
 CATEGORIES=	multimedia
 
@@ -22,6 +22,7 @@ LIB_DEPENDS=	liblzo2.so:archivers/lzo2 \
 		libtag.so:audio/taglib \
 		libexiv2.so:graphics/exiv2 \
 		libva.so:multimedia/libva \
+		libva-glx.so:multimedia/libva-glx \
 		libbluray.so:multimedia/libbluray \
 		libass.so:multimedia/libass \
 		libfftw3_threads.so:math/fftw3 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903151527.x2FFRWJ6096477>