Upstream has not made any further releases. It has been over 3 years. I
would like to roll forward to a snapshot of Xine-lib for the time being.
I have enabled the VA-API support.
Please test.
Index: Makefile
===================================================================
RCS file: /cvs/ports/multimedia/xine-lib/Makefile,v
retrieving revision 1.158
diff -u -p -u -p -r1.158 Makefile
--- Makefile 28 Oct 2025 09:39:03 -0000 1.158
+++ Makefile 8 Feb 2026 07:40:05 -0000
@@ -1,12 +1,12 @@
COMMENT= multimedia decoding library
-DISTNAME= xine-lib-1.2.13
-REVISION= 0
+DISTNAME= xine-lib-1.2.13pl20260207
+GH_ACCOUNT= brad0
+GH_PROJECT= xine-lib-1.2
+GH_COMMIT= 50d068edeaf3760eceaf537e1f8e9700e03f246c
CATEGORIES= multimedia
-SITES= ${SITE_SOURCEFORGE:=xine/}
-EXTRACT_SUFX= .tar.xz
-SHARED_LIBS= xine 38.0
+SHARED_LIBS= xine 38.1
HOMEPAGE= https://www.xine-project.org/
@@ -15,16 +15,19 @@ MAINTAINER= Brad Smith <brad@comstyle.co
# GPLv2
PERMIT_PACKAGE= Yes
-WANTLIB += ${COMPILER_LIBCXX} EGL FLAC GL GLU ICE SDL SM X11 X11-xcb
-WANTLIB += Xau Xdmcp Xext Xfixes Xinerama Xv XvMCW Xxf86vm aom avcodec
-WANTLIB += avformat avutil bluray bz2 c cdio crypto dav1d drm dvdnav
-WANTLIB += dvdread execinfo expat fontconfig freetype gbm gcrypt glapi
-WANTLIB += gpg-error gsm iconv intl iso9660 jpeg lcms lzma m mng modplug
-WANTLIB += mp3lame mpcdec nfs ogg opus png sndio speex ssl
-WANTLIB += swresample theora theoradec theoraenc udfread usbhid v4l2
-WANTLIB += v4lconvert vcdinfo vorbis vorbisenc vpx x264 x265 xcb xcb-dri2
-WANTLIB += xcb-dri3 xcb-glx xcb-present xcb-shape xcb-shm xcb-sync
-WANTLIB += xcb-xfixes xcb-xv xdg-basedir xml2 xshmfence xvidcore z
+WANTLIB += ${COMPILER_LIBCXX} EGL FLAC GL GLU ICE LLVM SDL SM
+WANTLIB += SvtAv1Enc X11 X11-xcb Xau Xdmcp Xext Xfixes Xinerama
+WANTLIB += Xv XvMCW Xxf86vm aom avcodec avformat avutil bluray
+WANTLIB += bz2 c cdio crypto dav1d drm drm_amdgpu dvdnav dvdread elf
+WANTLIB += execinfo expat fontconfig freetype gbm gcrypt glapi
+WANTLIB += gpg-error gsm iconv intl iso9660 jpeg lcms lzma m mng
+WANTLIB += modplug mp3lame mpcdec nfs ogg opus png sharpyuv sndio
+WANTLIB += speex ssl swresample theora theoradec theoraenc udfread
+WANTLIB += usbhid v4l2 v4lconvert va va-drm va-x11 vcdinfo vorbis
+WANTLIB += vorbisenc vpx webp webpmux x264 x265 xcb xcb-dri2
+WANTLIB += xcb-dri3 xcb-glx xcb-present xcb-randr xcb-shape xcb-shm
+WANTLIB += xcb-sync xcb-xfixes xcb-xv xdg-basedir xml2 xshmfence
+WANTLIB += xvidcore z
XINEAPI_REV= 2.11
SUBST_VARS+= XINEAPI_REV
@@ -32,7 +35,8 @@ SUBST_VARS+= XINEAPI_REV
COMPILER= base-clang ports-gcc
COMPILER_LANGS= c
-BUILD_DEPENDS= textproc/xmlto
+BUILD_DEPENDS= devel/gettext,-tools \
+ textproc/xmlto
LIB_DEPENDS= audio/flac \
audio/libcdio \
audio/libmodplug \
@@ -54,6 +58,7 @@ LIB_DEPENDS= audio/flac \
multimedia/libtheora \
multimedia/libv4l \
security/libgcrypt \
+ security/libgpg-error \
x11/libxdg-basedir
# Add back fast math flag since we override CFLAGS
@@ -62,8 +67,9 @@ CFLAGS+= -ffast-math
MAKE_ENV= V=1
USE_GMAKE= Yes
-CONFIGURE_STYLE= autoconf
+CONFIGURE_STYLE= autoreconf
AUTOCONF_VERSION= 2.69
+AUTOMAKE_VERSION= 1.15
CONFIGURE_ARGS+=--disable-a52dec \
--disable-aalib \
--disable-dts \
@@ -92,6 +98,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/in
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
NO_TEST= Yes
+
+post-extract:
+ rm -f ${WRKSRC}/.cvsversion
post-install:
@find ${PREFIX}/lib/xine/plugins -name '*.a' -delete
Index: distinfo
===================================================================
RCS file: /cvs/ports/multimedia/xine-lib/distinfo,v
retrieving revision 1.34
diff -u -p -u -p -r1.34 distinfo
--- distinfo 4 Apr 2023 09:06:45 -0000 1.34
+++ distinfo 8 Feb 2026 07:40:05 -0000
@@ -1,2 +1,2 @@
-SHA256 (xine-lib-1.2.13.tar.xz) = XxDW1xikpRwX7RsysDHU+bgLBh6CdlNbK+MeWsS3Xm8=
-SIZE (xine-lib-1.2.13.tar.xz) = 5004196
+SHA256 (xine-lib-1.2.13pl20260207-50d068ed.tar.gz) = 3LUJAu7MGhrPdTn+F14tLscjDsGueZl/7wDWoUNb7FY=
+SIZE (xine-lib-1.2.13pl20260207-50d068ed.tar.gz) = 6434542
Index: patches/patch-m4_video_out_m4
===================================================================
RCS file: patches/patch-m4_video_out_m4
diff -N patches/patch-m4_video_out_m4
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-m4_video_out_m4 8 Feb 2026 07:40:05 -0000
@@ -0,0 +1,16 @@
+Enable VA-API support.
+
+Index: m4/video_out.m4
+--- m4/video_out.m4.orig
++++ m4/video_out.m4
+@@ -49,6 +49,10 @@ AC_DEFUN([XINE_VIDEO_OUT_PLUGINS], [
+ default_enable_vaapi=yes
+ ;;
+
++ openbsd*)
++ default_enable_vaapi=yes
++ ;;
++
+ gnu*)
+ default_enable_vdpau=yes
+ ;;
Index: patches/patch-src_combined_ffmpeg_demux_avformat_c
===================================================================
RCS file: patches/patch-src_combined_ffmpeg_demux_avformat_c
diff -N patches/patch-src_combined_ffmpeg_demux_avformat_c
--- patches/patch-src_combined_ffmpeg_demux_avformat_c 21 Oct 2025 13:05:05 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,39 +0,0 @@
-15250:771f4ae27e58
-15287:1e7b18400886
-
-Index: src/combined/ffmpeg/demux_avformat.c
---- src/combined/ffmpeg/demux_avformat.c.orig
-+++ src/combined/ffmpeg/demux_avformat.c
-@@ -1,5 +1,5 @@
- /*
-- * Copyright (C) 2013-2022 the xine project
-+ * Copyright (C) 2013-2023 the xine project
- * Copyright (C) 2013-2020 Petri Hintukainen <phintuka@users.sourceforge.net>
- *
- * This file is part of xine, a free video player.
-@@ -423,8 +423,13 @@ static int find_avformat_streams(avformat_demux_plugin
- }
-
- #ifdef XFF_CODECPAR
-+# if XFF_AUDIO_CHANNEL_LAYOUT < 2
- if (st->codecpar && st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&
- st->codecpar->sample_rate != 0 && st->codecpar->channels != 0)
-+# else
-+ if (st->codecpar && st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&
-+ st->codecpar->sample_rate != 0 && st->codecpar->ch_layout.nb_channels != 0)
-+# endif
- #else
- if (st->codec && st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
- st->codec->sample_rate != 0 && st->codec->channels != 0)
-@@ -501,7 +506,11 @@ static void send_headers_audio(avformat_demux_plugin_t
- buf->size = extradata_size + sizeof(xine_waveformatex);
- buf->decoder_info[1] = ctx->sample_rate;
- buf->decoder_info[2] = ctx->bits_per_coded_sample;
-+#if XFF_AUDIO_CHANNEL_LAYOUT < 2
- buf->decoder_info[3] = ctx->channels;
-+#else
-+ buf->decoder_info[3] = ctx->ch_layout.nb_channels;
-+
No comments:
Post a Comment