[kde-freebsd] [PATCH] audio/akode-plugins-ffmpeg: Fix build against ffmpeg 0.5

Mario Sergio Fujikawa Ferreira lioux at FreeBSD.org
Fri Nov 13 11:15:54 CET 2009


>Submitter-Id:	current-users
>Originator:	Mario Sergio Fujikawa Ferreira
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] audio/akode-plugins-ffmpeg: Fix build against ffmpeg 0.5
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 8.0-RC2 i386
>Environment:
System: FreeBSD exxodus.fedaykin.here 8.0-RC2 FreeBSD 8.0-RC2 #1: Wed Nov  4 20:02:03 BRST
>Description:
- Remove BROKEN: fix build against ffmpeg 0.5
- Pet portlint

Obtained from:	NetBSD pkgsrc [1]

[1] http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/audio/akode/patches/patch-ad?rev=1.2&content-type=text/x-cvsweb-markup

Added file(s):
- files/patch-akode__plugins__ffmpeg_decoder__ffmpeg_decoder.cpp

Port maintainer (kde at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- akode-plugins-ffmpeg-2.0.2,1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/audio/akode-plugins-ffmpeg/Makefile,v
retrieving revision 1.5
diff -d -u -u -r1.5 Makefile
--- Makefile	12 Aug 2009 08:55:45 -0000	1.5
+++ Makefile	13 Nov 2009 10:14:30 -0000
@@ -5,29 +5,28 @@
 # $FreeBSD: ports/audio/akode-plugins-ffmpeg/Makefile,v 1.5 2009/08/12 08:55:45 mm Exp $
 #
 
-PORTNAME=   akode-plugins-${PORTNAMESUFX}
-PORTVERSION=    2.0.2
-PORTEPOCH=  1
-CATEGORIES= audio kde
-MASTER_SITES=   ${MASTER_SITE_GENTOO}
+PORTNAME=	akode
+PORTVERSION=	2.0.2
+PORTEPOCH=	1
+CATEGORIES=	audio kde
+MASTER_SITES=	${MASTER_SITE_GENTOO}
 MASTER_SITE_SUBDIR=distfiles
-DISTNAME=   30375-akode-${PORTVERSION}.tar.bz2
-EXTRACT_SUFX=   # none
+PKGNAMESUFFIX=	-plugins-${PORTNAMESUFX}
+DISTNAME=	30375-akode-${PORTVERSION}.tar.bz2
+EXTRACT_SUFX=	# none
 
 MAINTAINER=	kde at FreeBSD.org
 COMMENT=	FFMPEG decoder plugin for akode
 
 LIB_DEPENDS=	avcodec:${PORTSDIR}/multimedia/ffmpeg
 
-BROKEN=		does not compile with ffmpeg 0.5 and later
-
 CONFLICTS=	kdemultimedia-3.[1-3]*
 
 PLUGIN=		ffmpeg_decoder
 PORTNAMESUFX=	${PLUGIN:S/_sink//:S/_decoder//:S/src_//}
 
 USE_AUTOTOOLS=	libltdl
-USE_AUTOTOOLS=  libtool:22
+USE_AUTOTOOLS=	libtool:22
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 WRKSRC=		${WRKDIR}/akode-${PORTVERSION}
Index: files/patch-akode__plugins__ffmpeg_decoder__ffmpeg_decoder.cpp
===================================================================
RCS file: files/patch-akode__plugins__ffmpeg_decoder__ffmpeg_decoder.cpp
diff -N files/patch-akode__plugins__ffmpeg_decoder__ffmpeg_decoder.cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-akode__plugins__ffmpeg_decoder__ffmpeg_decoder.cpp	13 Nov 2009 10:14:30 -0000
@@ -0,0 +1,28 @@
+--- ./akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp.orig	2009-11-13 07:52:52.000000000 -0200
++++ ./akode/plugins/ffmpeg_decoder/ffmpeg_decoder.cpp	2009-11-13 08:04:20.000000000 -0200
+@@ -26,6 +26,7 @@
+ #include "decoder.h"
+ 
+ #include <assert.h>
++
+ #include <ffmpeg/avcodec.h>
+ #include <ffmpeg/avformat.h>
+ #include <ffmpeg/avio.h>
+@@ -45,7 +46,7 @@
+         aKode::File *file = (aKode::File*)opaque;
+         return file->write((char*)buf, size);
+     }
+-    static offset_t akode_seek(void* opaque, offset_t pos, int whence)
++    static int64_t akode_seek(void* opaque, int64_t pos, int whence)
+     {
+         aKode::File *file = (aKode::File*)opaque;
+         return file->seek(pos, whence);
+@@ -314,7 +315,7 @@
+     assert(d->packet.stream_index == d->audioStream);
+ 
+ retry:
+-    int len = avcodec_decode_audio( d->ic->streams[d->audioStream]->codec,
++    int len = avcodec_decode_audio2( d->ic->streams[d->audioStream]->codec,
+                                     (short*)d->buffer, &d->buffer_size,
+                                     d->packetData, d->packetSize );
+ 
--- akode-plugins-ffmpeg-2.0.2,1.patch ends here ---



More information about the kde-freebsd mailing list