pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import libva-2.13.0 as wip/libva



Module Name:	pkgsrc-wip
Committed By:	Dan Cîrnaț <dan%alt.md@localhost>
Pushed By:	cirnatdan
Date:		Mon Dec 20 14:08:42 2021 +0100
Changeset:	91498ffecd2cc51984135ea76b3ae29f38b3efd4

Modified Files:
	Makefile
	MesaLib/Makefile
Added Files:
	libva/DESCR
	libva/Makefile
	libva/PLIST
	libva/TODO
	libva/available.mk
	libva/buildlink3.mk
	libva/distinfo

Log Message:
Import libva-2.13.0 as wip/libva

Required by wip/MesaLib

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=91498ffecd2cc51984135ea76b3ae29f38b3efd4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile            |  1 +
 MesaLib/Makefile    |  2 +-
 libva/DESCR         |  4 ++++
 libva/Makefile      | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 libva/PLIST         | 37 ++++++++++++++++++++++++++++++++++++
 libva/TODO          |  1 +
 libva/available.mk  | 21 +++++++++++++++++++++
 libva/buildlink3.mk | 21 +++++++++++++++++++++
 libva/distinfo      |  5 +++++
 9 files changed, 145 insertions(+), 1 deletion(-)

diffs:
diff --git a/Makefile b/Makefile
index 1e34b260d3..23184fe377 100644
--- a/Makefile
+++ b/Makefile
@@ -2198,6 +2198,7 @@ SUBDIR+=	libunibilium
 SUBDIR+=	libunit
 SUBDIR+=	libunwind-git
 SUBDIR+=	libusbmuxd
+SUBGDIR+=	libva
 SUBDIR+=	libvalhalla
 SUBDIR+=	libvc
 SUBDIR+=	libvg
diff --git a/MesaLib/Makefile b/MesaLib/Makefile
index 96fd822fd0..aae2621e8d 100644
--- a/MesaLib/Makefile
+++ b/MesaLib/Makefile
@@ -94,7 +94,7 @@ PLIST.r100=		yes
 PLIST.r200=		yes
 PLIST.r300=		yes
 .  endif
-.  include "../../multimedia/libva/available.mk"
+.  include "../../wip/libva/available.mk"
 .  if ${VAAPI_AVAILABLE} == "yes" && \
       !(empty(GALLIUM_DRIVERS:Mr600) && empty(GALLIUM_DRIVERS:Mradeonsi) && \
         empty(GALLIUM_DRIVERS:Mnouveau))
diff --git a/libva/DESCR b/libva/DESCR
new file mode 100644
index 0000000000..d73eb26459
--- /dev/null
+++ b/libva/DESCR
@@ -0,0 +1,4 @@
+VAAPI (Video Acceleration API) enables hardware accelerated video
+decode/encode at various entry-points (VLD, IDCT, Motion Compensation etc.)
+for the prevailing coding standards today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4
+AVC/H.264, and VC-1/VMW3).
diff --git a/libva/Makefile b/libva/Makefile
new file mode 100644
index 0000000000..217422d68f
--- /dev/null
+++ b/libva/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD: Makefile,v 1.23 2021/12/02 16:58:47 tnn Exp $
+
+DISTNAME=	libva-2.13.0
+CATEGORIES=	multimedia
+MASTER_SITES=	${MASTER_SITE_GITHUB:=intel/}
+GITHUB_TAG=	2.13.0
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/intel/libva
+COMMENT=	Video Acceleration API
+LICENSE=	mit
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	autoreconf autoconf automake gmake pkg-config
+
+.include "../../mk/bsd.prefs.mk"
+
+#
+# vaapi drivers (e.g. intel-vaapi-driver) can be installed under
+# ${PREFIX}/lib/dri and linked against native X.org. Instruct libva's
+# DRIVER_SEARCH_PATH to look at them too for native X.org.
+#
+.if ${X11_TYPE} == "native"
+DRIVER_SEARCH_PATH=	${X11BASE}/lib/dri:${PREFIX}/lib/dri
+.else
+DRIVER_SEARCH_PATH=	${X11BASE}/lib/dri
+.endif
+
+CONFIGURE_ARGS+=	--enable-shared
+CONFIGURE_ARGS+=	--with-drivers-path=${DRIVER_SEARCH_PATH:Q}
+
+LIBS+=			${BUILDLINK_LDADD.dl}
+
+PKGCONFIG_OVERRIDE+=	libva-drm.pc.in
+PKGCONFIG_OVERRIDE+=	libva-egl.pc.in
+PKGCONFIG_OVERRIDE+=	libva-glx.pc.in
+PKGCONFIG_OVERRIDE+=	libva-tpi.pc.in
+PKGCONFIG_OVERRIDE+=	libva-x11.pc.in
+PKGCONFIG_OVERRIDE+=	libva.pc.in
+
+
+pre-configure:
+	cd ${WRKSRC} && autoreconf -i
+
+# To avoid a PLIST mismatch with base Xorg
+CONFIGURE_ARGS+=	--disable-glx
+
+.include "../../x11/libXfixes/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libva/PLIST b/libva/PLIST
new file mode 100644
index 0000000000..1d6f955fc2
--- /dev/null
+++ b/libva/PLIST
@@ -0,0 +1,37 @@
+@comment $NetBSD$
+include/va/va.h
+include/va/va_backend.h
+include/va/va_backend_prot.h
+include/va/va_backend_vpp.h
+include/va/va_compat.h
+include/va/va_dec_av1.h
+include/va/va_dec_hevc.h
+include/va/va_dec_jpeg.h
+include/va/va_dec_vp8.h
+include/va/va_dec_vp9.h
+include/va/va_dri2.h
+include/va/va_dricommon.h
+include/va/va_drm.h
+include/va/va_drmcommon.h
+include/va/va_egl.h
+include/va/va_enc_h264.h
+include/va/va_enc_hevc.h
+include/va/va_enc_jpeg.h
+include/va/va_enc_mpeg2.h
+include/va/va_enc_vp8.h
+include/va/va_enc_vp9.h
+include/va/va_fei.h
+include/va/va_fei_h264.h
+include/va/va_fei_hevc.h
+include/va/va_prot.h
+include/va/va_str.h
+include/va/va_tpi.h
+include/va/va_version.h
+include/va/va_vpp.h
+include/va/va_x11.h
+lib/libva-drm.la
+lib/libva-x11.la
+lib/libva.la
+lib/pkgconfig/libva-drm.pc
+lib/pkgconfig/libva-x11.pc
+lib/pkgconfig/libva.pc
diff --git a/libva/TODO b/libva/TODO
new file mode 100644
index 0000000000..13c2b4682f
--- /dev/null
+++ b/libva/TODO
@@ -0,0 +1 @@
+Test on NetBSD
diff --git a/libva/available.mk b/libva/available.mk
new file mode 100644
index 0000000000..2d7703a9b9
--- /dev/null
+++ b/libva/available.mk
@@ -0,0 +1,21 @@
+# $NetBSD: available.mk,v 1.11 2017/03/17 09:10:14 maya Exp $
+
+
+.include "../../mk/bsd.prefs.mk"
+
+# At the moment VAAPI is available only for XXX.  The following
+# condition is here to NOT list these platforms in multiple places,
+# i.e. in mplayer, xine, xbmc etc.  Have a look at buildlink3.mk too.
+
+VAAPI_AVAILABLE=	no
+
+# The following should be kept up-to-date!
+.if ${OPSYS} == "DragonFly"
+VAAPI_AVAILABLE=	yes
+.elif ${OPSYS} == "FreeBSD"
+VAAPI_AVAILABLE=	yes
+.elif ${OPSYS} == "NetBSD"
+VAAPI_AVAILABLE=	yes
+.elif ${OPSYS} == "Linux"
+VAAPI_AVAILABLE=	yes
+.endif
diff --git a/libva/buildlink3.mk b/libva/buildlink3.mk
new file mode 100644
index 0000000000..f8789e543d
--- /dev/null
+++ b/libva/buildlink3.mk
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.4 2018/11/23 08:18:16 ryoon Exp $
+
+.include "../../wip/libva/available.mk"
+.if ${VAAPI_AVAILABLE} == "yes"
+
+BUILDLINK_TREE+=	libva
+
+.  if !defined(LIBVA_BUILDLINK3_MK)
+LIBVA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libva+=	libva>=2.13.0
+BUILDLINK_PKGSRCDIR.libva?=	../../wip/libva
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+
+.  endif	# LIBVA_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libva
+
+.endif # VAAPI_AVAILABLE
diff --git a/libva/distinfo b/libva/distinfo
new file mode 100644
index 0000000000..5541a58d70
--- /dev/null
+++ b/libva/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.16 2021/10/26 11:01:10 nia Exp $
+
+BLAKE2s (libva-2.13.0.tar.gz) = d065249d9f542b89cb55e46aac4882c0fd1a256a4742c8e40113c8e805035a95
+SHA512 (libva-2.13.0.tar.gz) = 226d09956754c9942348ed289f210268bad64dbba95d948b33ae063f7ecb276af9da083a48c03c3c79ad4305716d203898bc75a109945d064a5fe6fb43398dea
+Size (libva-2.13.0.tar.gz) = 256724 bytes


Home | Main Index | Thread Index | Old Index