Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 2021 15:13:47 GMT
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ca252e85c736 - main - */*: Remove expired ports:
Message-ID:  <202106261513.15QFDlgI041261@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ca252e85c736de4413370aa3e93110a590aff6a0

commit ca252e85c736de4413370aa3e93110a590aff6a0
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2021-06-26 15:13:36 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2021-06-26 15:13:36 +0000

    */*: Remove expired ports:
    
    2020-12-31 audio/xmms2: Uses Python 2.7 which is EOLed upstream
    2021-06-23 audio/gxmms2: Uses EOL Python 2.7 via audio/xmms2
    2021-06-23 audio/lxmusic: Uses EOL Python 2.7 via audio/xmms2
---
 MOVED                                              |   3 +
 audio/Makefile                                     |   3 -
 audio/gxmms2/Makefile                              |  35 --
 audio/gxmms2/distinfo                              |   2 -
 audio/gxmms2/files/patch-Makefile                  |  20 -
 audio/gxmms2/pkg-descr                             |   4 -
 audio/lxmusic/Makefile                             |  42 --
 audio/lxmusic/distinfo                             |   3 -
 audio/lxmusic/files/patch-configure                |  11 -
 audio/lxmusic/pkg-descr                            |   6 -
 audio/lxmusic/pkg-plist                            |  67 ---
 audio/xmms2/Makefile                               | 223 ---------
 audio/xmms2/distinfo                               |   2 -
 .../files/extra-patch-src-clients-vistest-wscript  |  30 --
 .../patch-src_clients_lib_xmmsclient-glib_wscript  |  34 --
 .../files/patch-src_clients_lib_xmmsclient_wscript |  34 --
 audio/xmms2/files/patch-src_include_wscript        |  22 -
 ...atch-src_include_xmmsclient_xmmsclient++_coll.h |  11 -
 .../files/patch-src_plugins_airplay_raop__client.c |  25 -
 .../xmms2/files/patch-src_plugins_airplay_wscript  |  11 -
 audio/xmms2/files/patch-src_plugins_ao_ao.c        |  10 -
 .../files/patch-src_plugins_avcodec_avcodec.c      | 527 ---------------------
 .../patch-src_plugins_avcodec_avcodec__compat.h    |  69 ---
 audio/xmms2/files/patch-src_plugins_cdda_cdda.c    |  11 -
 audio/xmms2/files/patch-src_plugins_file_wscript   |  19 -
 .../files/patch-src_plugins_modplug_modplug.c      |  11 -
 .../xmms2/files/patch-src_plugins_musepack_wscript |  11 -
 audio/xmms2/files/patch-wscript                    |  40 --
 audio/xmms2/pkg-descr                              |   6 -
 audio/xmms2/pkg-plist                              | 153 ------
 30 files changed, 3 insertions(+), 1442 deletions(-)

diff --git a/MOVED b/MOVED
index f858ed7c5ed3..751a96ba6851 100644
--- a/MOVED
+++ b/MOVED
@@ -16442,3 +16442,6 @@ sysutils/usbhotkey||2021-06-26|Has expired: Uses EOL Python 2.7 via devel/libhid
 net/panoptis||2021-06-26|Has expired: Unmaintained upstream
 databases/elixir-mongo||2021-06-26|Has expired: Upsupported by upstream
 irc/eggdrop-devel|irc/eggdrop|2021-06-26|Has expired: Use stable version instead, irc/eggdrop
+audio/xmms2||2021-06-26|Has expired: Uses Python 2.7 which is EOLed upstream
+audio/gxmms2||2021-06-26|Has expired: Uses EOL Python 2.7 via audio/xmms2
+audio/lxmusic||2021-06-26|Has expired: Uses EOL Python 2.7 via audio/xmms2
diff --git a/audio/Makefile b/audio/Makefile
index 81162b7b4205..6a8d2587b935 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -292,7 +292,6 @@
     SUBDIR += gula-plugins-lv2
     SUBDIR += guspat
     SUBDIR += gvolwheel
-    SUBDIR += gxmms2
     SUBDIR += gxplugins-lv2
     SUBDIR += harp
     SUBDIR += headsetcontrol
@@ -452,7 +451,6 @@
     SUBDIR += lv2lint
     SUBDIR += lv2proc
     SUBDIR += lvtk
-    SUBDIR += lxmusic
     SUBDIR += mac
     SUBDIR += madfufw
     SUBDIR += madplay
@@ -858,7 +856,6 @@
     SUBDIR += xmix
     SUBDIR += xmixer
     SUBDIR += xmmix
-    SUBDIR += xmms2
     SUBDIR += xmp
     SUBDIR += xmradio
     SUBDIR += xoscope
diff --git a/audio/gxmms2/Makefile b/audio/gxmms2/Makefile
deleted file mode 100644
index 58f09caf2e2a..000000000000
--- a/audio/gxmms2/Makefile
+++ /dev/null
@@ -1,35 +0,0 @@
-# Created by: Alexander Botero-Lowry <alex@foxybanana.com>
-
-PORTNAME=	gxmms2
-PORTVERSION=	0.7.1
-PORTREVISION=	2
-CATEGORIES=	audio
-MASTER_SITES=	DEBIAN
-DISTNAME=	${PORTNAME}_${PORTVERSION}.orig
-
-MAINTAINER=	madpilot@FreeBSD.org
-COMMENT=	GTK2 based XMMS2 client, written in C
-
-LICENSE=	GPLv2
-LICENSE_FILE=	${WRKSRC}/COPYING
-
-DEPRECATED=	Uses EOL Python 2.7 via audio/xmms2
-EXPIRATION_DATE=2021-06-23
-
-LIB_DEPENDS=	libxmmsclient.so:audio/xmms2
-
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
-USE_GNOME=	gtk20
-USES=		gmake gnome pkgconfig
-ALL_TARGET=	${PORTNAME}
-
-PLIST_FILES=	bin/gxmms2 \
-		%%DATADIR%%/gxmms2_mini.xpm
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-	${MKDIR} ${STAGEDIR}${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/gxmms2src/gxmms2_mini.xpm ${STAGEDIR}${DATADIR}
-
-.include <bsd.port.mk>
diff --git a/audio/gxmms2/distinfo b/audio/gxmms2/distinfo
deleted file mode 100644
index 99c62e45d1d4..000000000000
--- a/audio/gxmms2/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (gxmms2_0.7.1.orig.tar.gz) = fa3fef28935d29665bd7d788db2dcd131e177c7d9ee71423c096a410bfc05a27
-SIZE (gxmms2_0.7.1.orig.tar.gz) = 76473
diff --git a/audio/gxmms2/files/patch-Makefile b/audio/gxmms2/files/patch-Makefile
deleted file mode 100644
index fc3f45c9b6f7..000000000000
--- a/audio/gxmms2/files/patch-Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
---- Makefile.orig	2009-01-04 18:30:38 UTC
-+++ Makefile
-@@ -1,8 +1,6 @@
- # Makefile for gxmms2 and gkrellxmms2
- 
- # Installation directory
--PREFIX=/usr/local
--KRELLPREFIX=/usr
- 
- ALLFILES=gkrellxmms2/*.c gkrellxmms2/*.h gkrellxmms2/*.xpm gmedialib/*.c gmedialib/*.h gmedialib/*.xpm gtrackinfo/*.c gtrackinfo/*.h gxmms2src/*.c gxmms2src/*.h gxmms2src/*.xpm sdecode/*.c sdecode/*.h xmms2ctrl/*.c xmms2ctrl/*.h Makefile README COPYING CHANGELOG
- 
-@@ -13,7 +11,7 @@ XMMS2_LIB=$(shell pkg-config xmms2-clien
- 
- CFLAGS ?= -O2
- CFLAGS := -Wall -fPIC $(GTK_CFLAGS) $(XMMS2_CFLAGS) -I. $(CFLAGS)
--LIBS = $(GTK_LIB) $(XMMS2_LIB)
-+LIBS = $(GTK_LIB) $(XMMS2_LIB) -lX11
- 
- KRELLLFLAGS=-shared
- 
diff --git a/audio/gxmms2/pkg-descr b/audio/gxmms2/pkg-descr
deleted file mode 100644
index 89acec5b80b1..000000000000
--- a/audio/gxmms2/pkg-descr
+++ /dev/null
@@ -1,4 +0,0 @@
-gxmms2 is a GTK2 based XMMS2 client, written in C. Its main window is small and
-simple. It includes a playlist editor and a file details dialog.
-
-WWW: http://wejp.k.vu/projects/xmms2/
diff --git a/audio/lxmusic/Makefile b/audio/lxmusic/Makefile
deleted file mode 100644
index 0023aec44154..000000000000
--- a/audio/lxmusic/Makefile
+++ /dev/null
@@ -1,42 +0,0 @@
-# Created by: Eric Turgeon <ericturgeon.bsd at gmail.com>
-
-PORTNAME=	lxmusic
-PORTVERSION=	0.4.7
-CATEGORIES=	audio
-MASTER_SITES=	SF/lxde/LXMusic%20%28music%20player%29/LXMusic%20${PORTVERSION:R}.x/
-
-MAINTAINER=	ericbsd@FreeBSD.org
-COMMENT=	LXDE music player based on xmms2
-
-LICENSE=	MIT GPLv2+
-LICENSE_COMB=	dual
-LICENSE_FILE=	${WRKSRC}/COPYING
-
-DEPRECATED=	Uses EOL Python 2.7 via audio/xmms2
-EXPIRATION_DATE=2021-06-23
-
-LIB_DEPENDS=	libxmmsclient.so:audio/xmms2 \
-		libnotify.so:devel/libnotify
-
-USES=		desktop-file-utils gettext-tools gmake gnome localbase \
-		pkgconfig tar:xz
-USE_GNOME=	gtk20 intltool
-GNU_CONFIGURE=	yes
-INSTALLS_ICONS=	yes
-INSTALL_TARGET=	install-strip
-
-LDFLAGS+=	-lpthread
-
-PORTDOCS=	AUTHORS README
-
-OPTIONS_DEFINE=	DOCS NLS
-OPTIONS_SUB=	yes
-
-NLS_USES=	gettext-runtime
-NLS_CONFIGURE_ENABLE=nls
-
-post-install-DOCS-on:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
-
-.include <bsd.port.mk>
diff --git a/audio/lxmusic/distinfo b/audio/lxmusic/distinfo
deleted file mode 100644
index 4eeb56ca3bea..000000000000
--- a/audio/lxmusic/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1464014391
-SHA256 (lxmusic-0.4.7.tar.xz) = 4933987338eb6e8c77d63b14cea5a8886146e75acbc38a21438c6c3f47bc06ba
-SIZE (lxmusic-0.4.7.tar.xz) = 180300
diff --git a/audio/lxmusic/files/patch-configure b/audio/lxmusic/files/patch-configure
deleted file mode 100644
index b38ff0a50375..000000000000
--- a/audio/lxmusic/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig	2016-02-21 00:00:57 UTC
-+++ configure
-@@ -6815,7 +6815,7 @@ $as_echo "#define HAVE_LC_MESSAGES 1" >>
- 
-     fi
-   fi
--     USE_NLS=yes
-+     #USE_NLS=yes
- 
- 
-     gt_cv_have_gettext=no
diff --git a/audio/lxmusic/pkg-descr b/audio/lxmusic/pkg-descr
deleted file mode 100644
index da4796aa0a07..000000000000
--- a/audio/lxmusic/pkg-descr
+++ /dev/null
@@ -1,6 +0,0 @@
-LXMusic is the minimalist music player for LXDE. This is based on
-xmms2, which is lightweight and has server/client design. LXMusic
-has very few features, it can do nothing more than just playing a
-list of music files.
-
-WWW: https://wiki.lxde.org/en/LXMusic
diff --git a/audio/lxmusic/pkg-plist b/audio/lxmusic/pkg-plist
deleted file mode 100644
index d49dbfb4259b..000000000000
--- a/audio/lxmusic/pkg-plist
+++ /dev/null
@@ -1,67 +0,0 @@
-bin/lxmusic
-man/man1/lxmusic.1.gz
-share/applications/lxmusic.desktop
-%%NLS%%share/locale/af/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ar/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/be/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/bg/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/bn/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/bn_IN/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ca/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/cs/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/da/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/de/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/el/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/en_GB/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/es/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/et/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/eu/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/fa/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/fi/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/fo/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/fr/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/frp/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/gl/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/he/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/hr/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/hu/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/id/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/is/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/it/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ja/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/kk/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ko/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/lg/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/lt/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ml/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ms/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/nb/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/nl/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/nn/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/pa/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/pl/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ps/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/pt/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/pt_BR/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ro/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ru/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/sk/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/sl/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/sr/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/sr@latin/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/sv/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/te/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/th/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/tr/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/tt_RU/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ug/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/uk/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ur/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/ur_PK/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/vi/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/zh_CN/LC_MESSAGES/lxmusic.mo
-%%NLS%%share/locale/zh_TW/LC_MESSAGES/lxmusic.mo
-%%DATADIR%%/lxmusic.ui.glade
-%%DATADIR%%/pref-dlg.ui.glade
-%%DATADIR%%/track-info.ui.glade
-share/pixmaps/lxmusic.png
diff --git a/audio/xmms2/Makefile b/audio/xmms2/Makefile
deleted file mode 100644
index 116f7203c74a..000000000000
--- a/audio/xmms2/Makefile
+++ /dev/null
@@ -1,223 +0,0 @@
-# Created by: Alexander Botero-Lowry <alex@foxybanana.com>
-
-PORTNAME?=	xmms2
-PORTVERSION=	0.8
-DISTVERSIONSUFFIX=	DrO_o
-PORTREVISION?=	35
-CATEGORIES?=	audio
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20${DISTVERSIONSUFFIX}
-
-MAINTAINER?=	madpilot@FreeBSD.org
-COMMENT?=	Rewrite of xmms as a client/server system (developer release)
-
-USES+=		pkgconfig tar:bzip2 waf
-
-CONFIGURE_ARGS+=	--conf-prefix=${LOCALBASE} \
-		--mandir=${MANPREFIX}/man \
-		--without-plugins="ofa"
-INSTALL_TARGET=	install --without-ldconfig
-
-.if !defined(XMMS2_SLAVE)
-USE_GNOME=	glib20
-USES+=		gnome python:2.7,build readline sqlite
-
-USE_LDCONFIG=	yes
-
-PLIST_SUB+=	INCLUDEDIR="include/${PORTNAME}" LIBDIR="lib/${PORTNAME}"
-
-CPPFLAGS+=	-I${LOCALBASE}/include
-
-OPTIONS_DEFINE=	AIRPLAY AO APE AVCODEC CDDA CURL ET FAAD FAM FLAC \
-		GME GVFS ICES JACK MAD MDNS MMS \
-		MODPLUG MPG123 MUSEPACK PULSEAUDIO SAMBA SID \
-		SNDFILE SPEEX TREMOR VISUAL VOCODER VORBIS WAVPACK XML
-OPTIONS_SINGLE=	MDNS
-OPTIONS_SINGLE_MDNS=	MDNS_APPLE MDNS_AVAHI
-OPTIONS_DEFAULT=	CURL FAAD FLAC MPG123 MDNS MDNS_AVAHI VORBIS
-
-AIRPLAY_DESC=	Support output via Airport Express
-AVCODEC_DESC=	Avcodevc playback support
-ET_DESC=	Install usage feedback reporting client
-FAM_DESC=	Support to update Media Library on file change
-GME_DESC=	Video game music files support
-GVFS_DESC=	Playback files via GVFS
-ICES_DESC=	Playback files to an icecast server
-MDNS_DESC=	Announce XMMS2d via mDNS (Choose implementation)
-MDNS_APPLE_DESC=	Use Apple mDNS implementation
-MDNS_AVAHI_DESC=	Use Avahi mDNS implementation
-SAMBA_DESC=	Playback files via SMB
-SID_DESC=	Playback SID files
-VISUAL_DESC=	Visualization plugins support
-VOCODER_DESC=	Phase Vocoder effect plugin
-XML_DESC=	Support XML based playlists (XSPF, RSS)
-
-OPTIONS_SUB=	yes
-
-AIRPLAY_USES=		ssl
-AIRPLAY_CONFIGURE_OFF=	--without-plugins="airplay"
-
-AO_LIB_DEPENDS=		libao.so:audio/libao
-AO_CONFIGURE_OFF=	--without-plugins="ao"
-
-APE_LIB_DEPENDS=	libmac.so:audio/mac
-APE_CONFIGURE_OFF=	--without-plugins="mac"
-
-AVCODEC_LIB_DEPENDS=	libavutil.so:multimedia/ffmpeg
-AVCODEC_CONFIGURE_OFF=	--without-plugins="avcodec"
-
-CDDA_LIB_DEPENDS=	libcdio.so:sysutils/libcdio \
-			libcdio_cdda.so:sysutils/libcdio-paranoia \
-			libdiscid.so:audio/libdiscid
-CDDA_CONFIGURE_OFF=	--without-plugins="cdda"
-
-CURL_LIB_DEPENDS=	libcurl.so:ftp/curl
-CURL_CONFIGURE_OFF=	--without-plugins="curl" --without-plugins="icymetaint"
-
-FAAD_LIB_DEPENDS=	libfaad.so:audio/faad
-FAAD_CONFIGURE_OFF=	--without-plugins="faad" --without-plugins="mp4"
-
-FAM_USES=		fam:gamin
-FAM_CONFIGURE_OFF=	--without-optionals="medialib-updater"
-
-FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
-
-GME_LIB_DEPENDS=	libgme.so:audio/libgme
-GME_CONFIGURE_OFF=	--without-plugins="gme"
-
-GVFS_USE=		GNOME=gvfs
-GVFS_CONFIGURE_OFF=	--without-plugins="gvfs"
-
-ICES_LIB_DEPENDS=	libshout.so:audio/libshout
-ICES_CONFIGURE_OFF=	--without-plugins="ices"
-
-JACK_LIB_DEPENDS=	libjack.so:audio/jack
-JACK_CONFIGURE_OFF=	--without-plugins="jack"
-
-MAD_LIB_DEPENDS=	libmad.so:audio/libmad
-MAD_CONFIGURE_OFF=	--without-plugins="mad"
-
-MDNS_CONFIGURE_OFF=	--without-optionals="mdns"
-
-MDNS_APPLE_CONFIGURE_ON=	--with-mdns-backend="dns_sd"
-MDNS_APPLE_LIB_DEPENDS=		libdns_sd.so:net/mDNSResponder
-
-MDNS_AVAHI_CONFIGURE_ON=	--with-mdns-backend="avahi"
-MDNS_AVAHI_LIB_DEPENDS=		libavahi-core.so:net/avahi-app
-
-MMS_LIB_DEPENDS=	libmms.so:net/libmms
-MMS_CONFIGURE_OFF=	--without-plugins="mms"
-
-MODPLUG_LIB_DEPENDS=	libmodplug.so:audio/libmodplug
-MODPLUG_CONFIGURE_OFF=	--without-plugins="modplug"
-
-MPG123_LIB_DEPENDS=	libmpg123.so:audio/mpg123
-MPG123_CONFIGURE_OFF=	--without-plugins="mpg123"
-
-MUSEPACK_LIB_DEPENDS=	libmpcdec.so:audio/musepack
-MUSEPACK_CONFIGURE_OFF=	--without-plugins="musepack"
-
-PULSEAUDIO_LIB_DEPENDS=		libpulse.so:audio/pulseaudio
-PULSEAUDIO_CONFIGURE_OFF=	--without-plugins="pulse"
-
-SAMBA_USES=	samba:lib
-SAMBA_CPPFLAGS=	-I${SAMBAINCLUDES}
-SAMBA_LDFLAGS=	-L${SAMBALIBS}
-SAMBA_CONFIGURE_OFF=	--without-plugins="samba"
-
-SID_LIB_DEPENDS=	libsidplay2.so:audio/libsidplay2
-SID_CONFIGURE_OFF=	--without-plugins="sid"
-
-SNDFILE_LIB_DEPENDS=	libsndfile.so:audio/libsndfile
-SNDFILE_CONFIGURE_OFF=	--without-plugins="sndfile"
-
-SPEEX_LIB_DEPENDS=	libspeex.so:audio/speex
-SPEEX_CONFIGURE_OFF=	--without-plugins="speex"
-
-TREMOR_LIB_DEPENDS=	libvorbisidec.so:audio/libtremor
-TREMOR_CONFIGURE_OFF=	--without-plugins="tremor"
-
-VISUAL_USES=		sdl
-VISUAL_USE=		SDL=sdl
-VISUAL_LIB_DEPENDS=	libvisual-0.4.so:graphics/libvisual04
-VISUAL_CONFIGURE_OFF=	--without-optionals="vistest"
-VISUAL_CONFIGURE_ON=	--with-vis-reference-clients
-
-VOCODER_LIB_DEPENDS=	libfftw3f.so:math/fftw3-float \
-			libsamplerate.so:audio/libsamplerate
-VOCODER_CONFIGURE_OFF=	--without-plugins="vocoder"
-
-VORBIS_LIB_DEPENDS=	libvorbis.so:audio/libvorbis
-VORBIS_CONFIGURE_OFF=	--without-plugins="vorbis"
-
-WAVPACK_LIB_DEPENDS=	libwavpack.so:audio/wavpack
-WAVPACK_CONFIGURE_OFF=	--without-plugins="wavpack"
-
-XML_USE=		GNOME=libxml2
-XML_CONFIGURE_OFF=	--without-plugins="xml" --without-plugins="rss" \
-			--without-plugins="xspf"
-
-ET_CONFIGURE_OFF=	--without-optionals="et"
-
-.endif # !XMMS2_SLAVE
-
-.include <bsd.port.options.mk>
-
-.if defined(XMMS2_SLAVE)
-CONFIGURE_ARGS+=	--without-xmms2d
-
-.if   ${XMMS2_SLAVE} == "python"
-CONFIGURE_ARGS+=	--with-optionals="python"
-.elif ${XMMS2_SLAVE} == "ruby"
-CONFIGURE_ARGS+=	--with-optionals="ruby"
-.elif ${XMMS2_SLAVE} == "perl"
-CONFIGURE_ARGS+=	--with-optionals="perl"
-.elif ${XMMS2_SLAVE} == "ruby-ecore"
-CONFIGURE_ARGS+=	--with-optionals="ruby" --with-optionals="xmmsclient-ecore"
-.elif ${XMMS2_SLAVE} == "cpp"
-CONFIGURE_ARGS+=	--with-optionals="xmmsclient++" \
-		--with-optionals="xmmsclient++-glib"
-.endif
-
-.else # XMMS2_SLAVE
-CONFIGURE_ARGS+=	--without-optionals="python" \
-		--without-optionals="ruby" \
-		--without-optionals="xmmsclient-ecore" \
-		--without-optionals="xmmsclient++" \
-		--without-optionals="xmmsclient++-glib" \
-		--without-optionals="perl"
-.endif # XMMS2_SLAVE
-
-.if !defined(XMMS2_SLAVE)
-
-# xmms2-ripper
-.if ${PORT_OPTIONS:MVISUAL} && ${PORT_OPTIONS:MVORBIS}
-LIB_DEPENDS+=	libvorbisenc.so:audio/libvorbis
-.else
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-src-clients-vistest-wscript
-.endif
-
-.endif # !XMMS2_SLAVE
-
-# Force to nothing to avoid bsd.openssl.mk adding definitions
-# to it when AIRPLAY option is active, waf does not understand it anyway.
-MAKE_ARGS=
-
-post-patch:
-	@${REINPLACE_CMD} -e "s|%%WRKSRC%%|${WRKSRC}|" ${WRKSRC}/wscript
-.if ${PORT_OPTIONS:MVISUAL} && ${PORT_OPTIONS:MVORBIS}
-	@${REINPLACE_CMD} -e "s|'vorbisenc',|'vorbisenc vorbis ogg',|" \
-		${WRKSRC}/src/clients/vistest/wscript
-.endif
-
-post-install:
-.if !defined(XMMS2_SLAVE)
-	${MKDIR} ${STAGEDIR}${DATADIR}/scripts/startup.d
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/*
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxmmsclient*
-.else
-	${RM} -R ${STAGEDIR}${PREFIX}/lib/xmms2
-	${FIND} ${STAGEDIR}${PREFIX}/lib -name '*.so*' | ${XARGS} ${STRIP_CMD} 
-.endif
-
-.include <bsd.port.mk>
diff --git a/audio/xmms2/distinfo b/audio/xmms2/distinfo
deleted file mode 100644
index 0db108e337bf..000000000000
--- a/audio/xmms2/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (xmms2-0.8DrO_o.tar.bz2) = c77e41e7bd5788889d5a2f78331ca8c748b8721bd2e59f36c36ad4c7cae8694a
-SIZE (xmms2-0.8DrO_o.tar.bz2) = 1670726
diff --git a/audio/xmms2/files/extra-patch-src-clients-vistest-wscript b/audio/xmms2/files/extra-patch-src-clients-vistest-wscript
deleted file mode 100644
index db0c7495c7b1..000000000000
--- a/audio/xmms2/files/extra-patch-src-clients-vistest-wscript
+++ /dev/null
@@ -1,30 +0,0 @@
---- src/clients/vistest/wscript~
-+++ src/clients/vistest/wscript
-@@ -23,17 +23,6 @@ def build(bld):
-             t.install_path = None
- 
- 
--    if bld.env.LIB_vorbisenc:
--        t = bld(features = 'c cprogram',
--            target = 'xmms2-ripper',
--            source = 'ripper.c',
--            includes = '. ../../.. ../../include',
--            uselib = 'vorbisenc',
--            use = 'xmmsclient'
--            )
--        if not bld.env.INSTALL_VIS_REFERENCE_CLIENTS:
--            t.install_path = None
--
-     if bld.env.LIB_visual and bld.env.LIB_sdl:
-         t = bld(features = 'c cprogram',
-             target = 'xmms2-libvisual',
-@@ -53,9 +42,6 @@ def configure(conf):
- 
-     conf.check_cc(lib="m", uselib_store="math", mandatory=False)
- 
--    conf.check_cfg(package='vorbisenc', uselib_store='vorbisenc',
--            args='--cflags --libs', mandatory=False)
--
-     if conf.check_cfg(package='libvisual-0.4', uselib_store='visual',
-             args='--cflags --libs', mandatory=False):
-         conf.check_cfg(package='sdl', uselib_store='sdl',
diff --git a/audio/xmms2/files/patch-src_clients_lib_xmmsclient-glib_wscript b/audio/xmms2/files/patch-src_clients_lib_xmmsclient-glib_wscript
deleted file mode 100644
index 782a4b98cafb..000000000000
--- a/audio/xmms2/files/patch-src_clients_lib_xmmsclient-glib_wscript
+++ /dev/null
@@ -1,34 +0,0 @@
---- src/clients/lib/xmmsclient-glib/wscript.orig	2011-10-20 19:26:08 UTC
-+++ src/clients/lib/xmmsclient-glib/wscript
-@@ -1,19 +1,21 @@
- from waftools import tool
- 
- def build(bld):
--    obj = bld(features='c cshlib',
--        target = 'xmmsclient-glib',
--        includes = '../../../.. ../../../include',
--        source = 'xmmsclient-glib.c',
--        uselib = 'glib2',
--        use = 'xmmsclient',
--        vnum = '1.0.0'
--        )
-+    if bld.env.BUILD_XMMS2D:
-+        obj = bld(features='c cshlib',
-+            target = 'xmmsclient-glib',
-+            includes = '../../../.. ../../../include',
-+            source = 'xmmsclient-glib.c',
-+            uselib = 'glib2',
-+            use = 'xmmsclient',
-+            vnum = '1.0.0'
-+            )
- 
--    tool.add_install_flag(bld, obj)
-+        tool.add_install_flag(bld, obj)
- 
- def configure(conf):
--    conf.env.XMMS_PKGCONF_FILES.append(('xmms2-client-glib', '-lxmmsclient-glib'))
-+    if not conf.options.without_xmms2d:
-+        conf.env.XMMS_PKGCONF_FILES.append(('xmms2-client-glib', '-lxmmsclient-glib'))
- 
-     return True
- 
diff --git a/audio/xmms2/files/patch-src_clients_lib_xmmsclient_wscript b/audio/xmms2/files/patch-src_clients_lib_xmmsclient_wscript
deleted file mode 100644
index a8135f56f562..000000000000
--- a/audio/xmms2/files/patch-src_clients_lib_xmmsclient_wscript
+++ /dev/null
@@ -1,34 +0,0 @@
---- src/clients/lib/xmmsclient/wscript.orig	2011-10-20 19:26:08 UTC
-+++ src/clients/lib/xmmsclient/wscript
-@@ -25,19 +25,21 @@ def build(bld):
-     else:
-         source.extend(["visualization/dummy.c"])
- 
--    obj = bld(features = 'c cshlib',
--        target = 'xmmsclient',
--        includes = '../../../.. ../../../include ../../../includepriv',
--        source = source,
--        uselib = 'socket time',
--        use = 'xmmsipc xmmssocket xmmsutils xmmstypes xmmsvisualization',
--        vnum = '6.0.0'
--        )
-+    if bld.env.BUILD_XMMS2D:
-+       obj = bld(features = 'c cshlib',
-+           target = 'xmmsclient',
-+           includes = '../../../.. ../../../include ../../../includepriv',
-+           source = source,
-+           uselib = 'socket time',
-+           use = 'xmmsipc xmmssocket xmmsutils xmmstypes xmmsvisualization',
-+           vnum = '6.0.0'
-+           )
- 
--    tool.add_install_flag(bld, obj)
-+       tool.add_install_flag(bld, obj)
- 
- def configure(conf):
--    conf.env.XMMS_PKGCONF_FILES.append(("xmms2-client", "-lxmmsclient"))
-+    if not conf.options.without_xmms2d:
-+        conf.env.XMMS_PKGCONF_FILES.append(("xmms2-client", "-lxmmsclient"))
- 
-     conf.check_cc(function_name="semtimedop",
-             header_name=["sys/types.h", "sys/ipc.h", "sys/sem.h"],
diff --git a/audio/xmms2/files/patch-src_include_wscript b/audio/xmms2/files/patch-src_include_wscript
deleted file mode 100644
index a4e84c9edaa5..000000000000
--- a/audio/xmms2/files/patch-src_include_wscript
+++ /dev/null
@@ -1,22 +0,0 @@
---- src/include/wscript.orig	2011-10-20 19:26:08 UTC
-+++ src/include/wscript
-@@ -2,12 +2,13 @@ import os
- 
- def build(bld):
-     # FIXME: This is a test that should work.
--    for d in bld.path.ant_glob('**', dir=True, src=False):
--        rpath = d.path_from(bld.path)
--        bld.recurse(rpath)
--        f = d.ant_glob('*.h')
--        if f:
--            bld.install_files(os.path.join(bld.env.INCLUDEDIR, 'xmms2', rpath), f)
-+    if bld.env.BUILD_XMMS2D:
-+        for d in bld.path.ant_glob('**', dir=True, src=False):
-+            rpath = d.path_from(bld.path)
-+            bld.recurse(rpath)
-+            f = d.ant_glob('*.h')
-+            if f:
-+                bld.install_files(os.path.join(bld.env.INCLUDEDIR, 'xmms2', rpath), f)
- 
-     #paths = ['xmms', 'xmmsc', 'xmmsclient', 'xmmsclient/xmmsclient++']
-     #for p in paths:
diff --git a/audio/xmms2/files/patch-src_include_xmmsclient_xmmsclient++_coll.h b/audio/xmms2/files/patch-src_include_xmmsclient_xmmsclient++_coll.h
deleted file mode 100644
index f237eea4085b..000000000000
--- a/audio/xmms2/files/patch-src_include_xmmsclient_xmmsclient++_coll.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/include/xmmsclient/xmmsclient++/coll.h.orig	2011-10-20 19:26:08 UTC
-+++ src/include/xmmsclient/xmmsclient++/coll.h
-@@ -612,7 +612,7 @@ namespace Xmms 
- 
- 		template< typename keyT, typename valT >
- 		AbstractElement< keyT, valT >::AbstractElement( const Coll& coll, keyT index )
--			: coll_ (coll), index_( index )
-+			: coll_ ( const_cast< Coll& >( coll ) ), index_( index )
- 		{
- 			xmmsv_coll_ref( coll_.getColl() );
- 		}
diff --git a/audio/xmms2/files/patch-src_plugins_airplay_raop__client.c b/audio/xmms2/files/patch-src_plugins_airplay_raop__client.c
deleted file mode 100644
index ddf7db6376c4..000000000000
--- a/audio/xmms2/files/patch-src_plugins_airplay_raop__client.c
+++ /dev/null
@@ -1,25 +0,0 @@
---- src/plugins/airplay/raop_client.c.orig	2011-10-20 19:26:08 UTC
-+++ src/plugins/airplay/raop_client.c
-@@ -1,6 +1,8 @@
- #include <string.h>
- #include <unistd.h>
- 
-+#include <openssl/opensslv.h>
-+#include <openssl/ossl_typ.h>
- #include <openssl/rand.h>
- #include <openssl/rsa.h>
- #include <openssl/bio.h>
-@@ -137,8 +139,13 @@ raop_rsa_encrypt (guchar *text, gint len, guchar *res)
- 	static const guchar exp[] = {0x01, 0x00, 0x01};
- 
- 	rsa = RSA_new ();
-+
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
- 	rsa->n = BN_bin2bn (mod, 256, NULL);
- 	rsa->e = BN_bin2bn (exp, 3, NULL);
-+#else
-+	RSA_set0_key(rsa, BN_bin2bn (mod, 256, NULL), BN_bin2bn (exp, 3, NULL), NULL);
-+#endif
- 
- 	size = RSA_public_encrypt (len, text, res, rsa, RSA_PKCS1_OAEP_PADDING);
- 
diff --git a/audio/xmms2/files/patch-src_plugins_airplay_wscript b/audio/xmms2/files/patch-src_plugins_airplay_wscript
deleted file mode 100644
index 5b1e9bf87006..000000000000
--- a/audio/xmms2/files/patch-src_plugins_airplay_wscript
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/plugins/airplay/wscript.orig	2011-10-20 19:26:08 UTC
-+++ src/plugins/airplay/wscript
-@@ -12,8 +12,6 @@ rtspmessage.c
- def plugin_configure(conf):
-     # MinGW doesn't ship sys/select.h
-     conf.check_cc(header_name='sys/select.h')
--    conf.check_cfg(package="openssl", args="--cflags --libs",
--            uselib_store="openssl")
- 
- configure, build = plugin("airplay", configure=plugin_configure,
-                           source = source, libs=["openssl"], output_prio=4)
diff --git a/audio/xmms2/files/patch-src_plugins_ao_ao.c b/audio/xmms2/files/patch-src_plugins_ao_ao.c
deleted file mode 100644
index 972ef05bbfe4..000000000000
--- a/audio/xmms2/files/patch-src_plugins_ao_ao.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/plugins/ao/ao.c.orig	2011-10-20 19:26:08 UTC
-+++ src/plugins/ao/ao.c
-@@ -162,6 +162,7 @@ xmms_ao_new (xmms_output_t *output)
- 
- 		/* let's just use some common format to check if the device
- 		 * name is valid */
-+		memset(&format, 0, sizeof(format));
- 		format.bits = 16;
- 		format.rate = 44100;
- 		format.channels = 2;
diff --git a/audio/xmms2/files/patch-src_plugins_avcodec_avcodec.c b/audio/xmms2/files/patch-src_plugins_avcodec_avcodec.c
deleted file mode 100644
index da9bd420ba57..000000000000
--- a/audio/xmms2/files/patch-src_plugins_avcodec_avcodec.c
+++ /dev/null
@@ -1,527 +0,0 @@
---- src/plugins/avcodec/avcodec.c.orig	2011-10-20 19:26:08 UTC
-+++ src/plugins/avcodec/avcodec.c
-@@ -1,7 +1,7 @@
- /** @file avcodec.c
-  *  Decoder plugin for ffmpeg avcodec formats
-  *
-- *  Copyright (C) 2006-2011 XMMS2 Team
-+ *  Copyright (C) 2006-2014 XMMS2 Team
-  *
-  *  This library is free software; you can redistribute it and/or
-  *  modify it under the terms of the GNU Lesser General Public
-@@ -14,15 +14,16 @@
-  *  Lesser General Public License for more details.
-  */
- 
--#include "xmms_configuration.h"
--#include "xmms/xmms_xformplugin.h"
--#include "xmms/xmms_sample.h"
--#include "xmms/xmms_log.h"
-+#include <xmms_configuration.h>
-+#include <xmms/xmms_xformplugin.h>
-+#include <xmms/xmms_sample.h>
-+#include <xmms/xmms_log.h>
- 
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <glib.h>
-+#include <libavutil/mem.h>
- 
- #include "avcodec_compat.h"
- 
-@@ -36,6 +37,8 @@ typedef struct {
- 	guint buffer_size;
- 	gboolean no_demuxer;
- 
-+	AVFrame *read_out_frame;
-+
- 	guint channels;
- 	guint samplerate;
- 	xmms_sample_format_t sampleformat;
-@@ -53,10 +56,14 @@ typedef struct {
- static gboolean xmms_avcodec_plugin_setup (xmms_xform_plugin_t *xform_plugin);
- static gboolean xmms_avcodec_init (xmms_xform_t *xform);
- static void xmms_avcodec_destroy (xmms_xform_t *xform);
-+static gint xmms_avcodec_internal_read_some (xmms_xform_t *xform, xmms_avcodec_data_t *data, xmms_error_t *error);
-+static gint xmms_avcodec_internal_decode_some (xmms_avcodec_data_t *data);
-+static void xmms_avcodec_internal_append (xmms_avcodec_data_t *data);
- static gint xmms_avcodec_read (xmms_xform_t *xform, xmms_sample_t *buf, gint len,
-                                xmms_error_t *error);
- static gint64 xmms_avcodec_seek (xmms_xform_t *xform, gint64 samples,
-                                  xmms_xform_seek_mode_t whence, xmms_error_t *err);
-+static xmms_sample_format_t xmms_avcodec_translate_sample_format (enum AVSampleFormat av_sample_format);
- 
- /*
-  * Plugin header
-@@ -85,13 +92,23 @@ xmms_avcodec_plugin_setup (xmms_xform_pl
- 	xmms_magic_add ("A/52 (AC-3) header", "audio/x-ffmpeg-ac3",
- 	                "0 beshort 0x0b77", NULL);
- 	xmms_magic_add ("DTS header", "audio/x-ffmpeg-dca",
--	                "0 belong 0x7ffe8001", NULL); 
-+	                "0 belong 0x7ffe8001", NULL);
- 
- 	xmms_xform_plugin_indata_add (xform_plugin,
- 	                              XMMS_STREAM_TYPE_MIMETYPE,
- 	                              "audio/x-ffmpeg-*",
- 	                              NULL);
- 
-+	XMMS_DBG ("avcodec version at build time is %d.%d.%d",
-+	          (LIBAVCODEC_VERSION_INT >> 16),
-+	          (LIBAVCODEC_VERSION_INT >> 8) & 0xff,
-+	          LIBAVCODEC_VERSION_INT & 0xff);
-+	XMMS_DBG ("avcodec version at run time is %d.%d.%d",
-+	          (avcodec_version() >> 16),
-+	          (avcodec_version() >> 8) & 0xff,
-+	          avcodec_version() & 0xff);
-+	XMMS_DBG ("avcodec configuration is %s", avcodec_configuration());
-+
- 	return TRUE;
- }
- 
-@@ -107,6 +124,7 @@ xmms_avcodec_destroy (xmms_xform_t *xfor
- 
- 	avcodec_close (data->codecctx);
- 	av_free (data->codecctx);
-+	av_frame_free (&data->read_out_frame);
- 
- 	g_string_free (data->outbuf, TRUE);
- 	g_free (data->buffer);
-@@ -132,9 +150,10 @@ xmms_avcodec_init (xmms_xform_t *xform)
- 	data->buffer_size = AVCODEC_BUFFER_SIZE;
- 	data->codecctx = NULL;
- 
-+	data->read_out_frame = av_frame_alloc ();
-+
- 	xmms_xform_private_data_set (xform, data);
- 
--	avcodec_init ();
- 	avcodec_register_all ();
- 
- 	mimetype = xmms_xform_indata_get_str (xform,
-@@ -161,12 +180,12 @@ xmms_avcodec_init (xmms_xform_t *xform)
- 		data->channels = ret;
- 	}
- 
--	/* bitrate required for WMA files */
-+	/* Required by WMA xform. */
- 	xmms_xform_auxdata_get_int (xform,
- 	                            "bitrate",
- 	                            &data->bitrate);
- 
--	/* ALAC and MAC require bits per sample field to be 16 */
-+	/* Required by tta and apefile xforms. */
- 	xmms_xform_auxdata_get_int (xform,
- 	                            "samplebits",
- 	                            &data->samplebits);
-@@ -188,7 +207,8 @@ xmms_avcodec_init (xmms_xform_t *xform)
- 		    !strcmp (data->codec_id, "adpcm_swf") ||
- 		    !strcmp (data->codec_id, "pcm_s16le") ||
- 		    !strcmp (data->codec_id, "ac3") ||
--		    !strcmp (data->codec_id, "dca")) {
-+		    !strcmp (data->codec_id, "dca") ||
-+		    !strcmp (data->codec_id, "nellymoser")) {
- 			/* number 1024 taken from libavformat raw.c RAW_PACKET_SIZE */
- 			data->extradata = g_malloc0 (1024);
- 			data->extradata_size = 1024;
-@@ -196,22 +216,22 @@ xmms_avcodec_init (xmms_xform_t *xform)
- 		} else {
- 			/* A demuxer plugin forgot to give decoder config? */
- 			xmms_log_error ("Decoder config data not found!");
--			return FALSE;
-+			goto err;
- 		}
- 	}
- 
--	data->codecctx = avcodec_alloc_context ();
-+	data->codecctx = avcodec_alloc_context3 (codec);
- 	data->codecctx->sample_rate = data->samplerate;
- 	data->codecctx->channels = data->channels;
- 	data->codecctx->bit_rate = data->bitrate;
--	CONTEXT_BPS (data->codecctx) = data->samplebits;
-+	data->codecctx->bits_per_coded_sample = data->samplebits;
- 	data->codecctx->block_align = data->block_align;
- 	data->codecctx->extradata = data->extradata;
- 	data->codecctx->extradata_size = data->extradata_size;
- 	data->codecctx->codec_id = codec->id;
- 	data->codecctx->codec_type = codec->type;
- 
--	if (avcodec_open (data->codecctx, codec) < 0) {
-+	if (avcodec_open2 (data->codecctx, codec, NULL) < 0) {
- 		XMMS_DBG ("Opening decoder '%s' failed", codec->name);
- 		goto err;
- 	} else {
-@@ -220,7 +240,7 @@ xmms_avcodec_init (xmms_xform_t *xform)
- 
- 		/* some codecs need to have something read before they set
- 		 * the samplerate and channels correctly, unfortunately... */
--		if ((ret = xmms_avcodec_read (xform, buf, 42, &error)) > 0) {
-+		if ((ret = xmms_avcodec_read (xform, buf, sizeof (buf), &error)) > 0) {
- 			g_string_insert_len (data->outbuf, 0, buf, ret);
- 		} else {
- 			XMMS_DBG ("First read failed, codec is not working...");
-@@ -231,19 +251,27 @@ xmms_avcodec_init (xmms_xform_t *xform)
- 
- 	data->samplerate = data->codecctx->sample_rate;
- 	data->channels = data->codecctx->channels;
-+	data->sampleformat = xmms_avcodec_translate_sample_format (data->codecctx->sample_fmt);
-+	if (data->sampleformat == XMMS_SAMPLE_FORMAT_UNKNOWN) {
-+		avcodec_close (data->codecctx);
-+		goto err;
-+	}
- 
- 	xmms_xform_outdata_type_add (xform,
- 	                             XMMS_STREAM_TYPE_MIMETYPE,
- 	                             "audio/pcm",
- 	                             XMMS_STREAM_TYPE_FMT_FORMAT,
--	                             XMMS_SAMPLE_FORMAT_S16,
-+	                             data->sampleformat,
- 	                             XMMS_STREAM_TYPE_FMT_CHANNELS,
- 	                             data->channels,
- 	                             XMMS_STREAM_TYPE_FMT_SAMPLERATE,
- 	                             data->samplerate,
- 	                             XMMS_STREAM_TYPE_END);
- 
--	XMMS_DBG ("Decoder '%s' initialized successfully!", codec->name);
-+	XMMS_DBG ("Decoder %s at rate %d with %d channels of format %s initialized",
-+	          codec->name, data->codecctx->sample_rate,
-+	          data->codecctx->channels,
*** 707 LINES SKIPPED ***



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