View | Details | Raw Unified | Return to bug 214184 | Differences between
and this patch

Collapse All | Expand All

(-)audio/amarok-kde4/Makefile (-11 / +11 lines)
Lines 10-20 Link Here
10
MAINTAINER=	kde@FreeBSD.org
10
MAINTAINER=	kde@FreeBSD.org
11
COMMENT=	KDE music player
11
COMMENT=	KDE music player
12
12
13
LICENSE=	GPLv2
14
13
LIB_DEPENDS=	libtag.so:audio/taglib \
15
LIB_DEPENDS=	libtag.so:audio/taglib \
14
		libtag-extras.so:audio/taglib-extras \
16
		libtag-extras.so:audio/taglib-extras \
15
		liblastfm.so:audio/liblastfm \
17
		liblastfm.so:audio/liblastfm \
16
		libofa.so:audio/libofa \
18
		libofa.so:audio/libofa \
17
		libavcodec.so:multimedia/ffmpeg \
19
		libavcodec.so:multimedia/ffmpeg \
20
		libmtp.so:multimedia/libmtp \
18
		libqjson.so:devel/qjson \
21
		libqjson.so:devel/qjson \
19
		libqca.so:devel/qca \
22
		libqca.so:devel/qca \
20
		libdbus-1.so:devel/dbus
23
		libdbus-1.so:devel/dbus
Lines 22-42 Link Here
22
RUN_DEPENDS=	${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:devel/qtscriptgenerator \
25
RUN_DEPENDS=	${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:devel/qtscriptgenerator \
23
		${KDE_PREFIX}/lib/kde4/kio_upnp_ms.so:net/kio-upnp-ms
26
		${KDE_PREFIX}/lib/kde4/kio_upnp_ms.so:net/kio-upnp-ms
24
27
25
USES=		cmake kde:4 pkgconfig shared-mime-info shebangfix tar:bzip2
28
USES=		cmake execinfo kde:4 mysql:embedded pkgconfig shared-mime-info shebangfix ssl tar:bzip2
26
USE_KDE=	kdelibs libkcddb libkcompactdisc \
29
USE_GL=		gl
27
		nepomuk-core runtime automoc4 strigi
30
USE_KDE=	automoc4 kdelibs libkcddb libkcompactdisc \
28
USE_MYSQL=	embedded
31
		nepomuk-core runtime soprano strigi
29
USE_QT4=	corelib dbus designer gui network opengl \
32
USE_QT4=	corelib dbus designer gui network opengl \
30
		phonon script sql svg webkit xml \
33
		phonon script sql svg webkit xml \
31
		qmake_build moc_build rcc_build uic_build
34
		qmake_build moc_build rcc_build uic_build
32
USE_XORG=	x11
35
USE_XORG=	sm ice x11 xau xdmcp xext xft xpm
33
SHEBANG_FILES=	src/kconf_update/amarok-2.4.1-tokens_syntax_update.pl
36
SHEBANG_FILES=	src/kconf_update/amarok-2.4.1-tokens_syntax_update.pl
34
USE_LDCONFIG=	yes
37
USE_LDCONFIG=	yes
35
38
36
BROKEN_sparc64=	does not build (GCC-related error)
39
BROKEN_sparc64=	does not build (GCC-related error)
37
40
38
OPTIONS_DEFINE=	AMAZON IPOD MP3TUNES MTP NLS
41
OPTIONS_DEFINE=	AMAZON IPOD MP3TUNES NLS
39
OPTIONS_DEFAULT=IPOD MP3TUNES MTP
42
OPTIONS_DEFAULT=IPOD MP3TUNES
40
OPTIONS_SUB=	yes
43
OPTIONS_SUB=	yes
41
44
42
AMAZON_DESC=		Amazon MP3 store support via clamz
45
AMAZON_DESC=		Amazon MP3 store support via clamz
Lines 51-61 Link Here
51
MP3TUNES_LIB_DEPENDS=	libloudmouth-1.so:net-im/loudmouth \
54
MP3TUNES_LIB_DEPENDS=	libloudmouth-1.so:net-im/loudmouth \
52
			libcurl.so:ftp/curl
55
			libcurl.so:ftp/curl
53
MP3TUNES_USE=		GNOME=glib20,libxml2
56
MP3TUNES_USE=		GNOME=glib20,libxml2
54
MP3TUNES_CMAKE_OFF=	-DWITH_MP3tunes:BOOL=Off
57
MP3TUNES_CMAKE_OFF=	-DWITH_MP3Tunes:BOOL=Off
55
58
56
MTP_LIB_DEPENDS=	libmtp.so:multimedia/libmtp
57
MTP_CMAKE_OFF=		-DWITH_Mtp:BOOL=Off
58
59
NLS_USES=		gettext
59
NLS_USES=		gettext
60
NLS_CMAKE_OFF=		-DBUILD_po:BOOL=Off
60
NLS_CMAKE_OFF=		-DBUILD_po:BOOL=Off
61
61
(-)audio/amarok-kde4/files/patch-kde_rb-126682 (+85 lines)
Line 0 Link Here
1
diff --git a/src/musicbrainz/MusicDNSAudioDecoder.cpp b/src/musicbrainz/MusicDNSAudioDecoder.cpp
2
index 6216e5ce26cc3461b89aea560943ad7a79101af9..65a92fb43811d0cbdde5e2442880496b3417da68 100644
3
--- src/musicbrainz/MusicDNSAudioDecoder.cpp
4
+++ src/musicbrainz/MusicDNSAudioDecoder.cpp
5
@@ -243,7 +243,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
6
             {
7
                 if( !decodedFrame )
8
                 {
9
-                    decodedFrame = avcodec_alloc_frame();
10
+                    decodedFrame = av_frame_alloc();
11
                     if( !decodedFrame )
12
                     {
13
                         warning() << "Unable to allocate enough memory to decode file.";
14
@@ -251,7 +251,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
15
                         break;
16
                     }
17
                     else
18
-                        avcodec_get_frame_defaults( decodedFrame );
19
+                        av_frame_unref( decodedFrame );
20
                 }
21
 
22
                 decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
23
@@ -287,7 +287,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
24
 
25
     avcodec_close( pCodecCtx );
26
     avformat_close_input( &pFormatCtx );
27
-    av_free( decodedFrame );
28
+    av_frame_free( &decodedFrame );
29
 
30
     return data->duration();
31
 }
32
@@ -361,7 +361,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
33
             {
34
                 if( !decodedFrame )
35
                 {
36
-                    decodedFrame = avcodec_alloc_frame();
37
+                    decodedFrame = av_frame_alloc();
38
                     if( !decodedFrame )
39
                     {
40
                         warning() << "Unable to allocate enough memory to decode file.";
41
@@ -369,7 +369,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
42
                         break;
43
                     }
44
                     else
45
-                        avcodec_get_frame_defaults( decodedFrame );
46
+                        av_frame_unref( decodedFrame );
47
                 }
48
 
49
                 decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
50
@@ -405,7 +405,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
51
 
52
     avcodec_close( pCodecCtx );
53
     avformat_close_input( &pFormatCtx );
54
-    av_free( decodedFrame );
55
+    av_frame_free( &decodedFrame );
56
 
57
     return data->duration();
58
 }
59
@@ -479,7 +479,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
60
             {
61
                 if( !decodedFrame )
62
                 {
63
-                    decodedFrame = avcodec_alloc_frame();
64
+                    decodedFrame = av_frame_alloc();
65
                     if( !decodedFrame )
66
                     {
67
                         warning() << "Unable to allocate enough memory to decode file.";
68
@@ -487,7 +487,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
69
                         break;
70
                     }
71
                     else
72
-                        avcodec_get_frame_defaults( decodedFrame );
73
+                        av_frame_unref( decodedFrame );
74
                 }
75
 
76
                 decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
77
@@ -523,7 +523,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
78
 
79
     avcodec_close( pCodecCtx );
80
     av_close_input_file( pFormatCtx );
81
-    av_free( decodedFrame );
82
+    av_frame_free( &decodedFrame );
83
 
84
     return data->duration();
85
 }

Return to bug 214184