diff options
author | dinoex <dinoex@FreeBSD.org> | 2007-06-17 15:18:37 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2007-06-17 15:18:37 +0800 |
commit | 8ac2c031e76a2abf7c01f8560524da7eecea6117 (patch) | |
tree | 5899b4b2b477914742f99d752e6bfd99f54c3c43 /multimedia/sabbu | |
parent | 6a57e79eaf97572e27e5c6c871f4b6da5e9b5559 (diff) | |
download | freebsd-ports-gnome-8ac2c031e76a2abf7c01f8560524da7eecea6117.tar.gz freebsd-ports-gnome-8ac2c031e76a2abf7c01f8560524da7eecea6117.tar.zst freebsd-ports-gnome-8ac2c031e76a2abf7c01f8560524da7eecea6117.zip |
- fix build with new ffmpeg
Diffstat (limited to 'multimedia/sabbu')
-rw-r--r-- | multimedia/sabbu/Makefile | 2 | ||||
-rw-r--r-- | multimedia/sabbu/files/patch-video.cpp | 39 | ||||
-rw-r--r-- | multimedia/sabbu/files/patch-video.h | 16 |
3 files changed, 42 insertions, 15 deletions
diff --git a/multimedia/sabbu/Makefile b/multimedia/sabbu/Makefile index fd593cb31fc9..ff03f43c9a3d 100644 --- a/multimedia/sabbu/Makefile +++ b/multimedia/sabbu/Makefile @@ -7,7 +7,7 @@ PORTNAME= sabbu PORTVERSION= 0.3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/multimedia/sabbu/files/patch-video.cpp b/multimedia/sabbu/files/patch-video.cpp index 03fbe88ef80a..ad926261acc7 100644 --- a/multimedia/sabbu/files/patch-video.cpp +++ b/multimedia/sabbu/files/patch-video.cpp @@ -1,11 +1,22 @@ -Index: Source/video.cpp -=================================================================== -RCS file: /cvsroot/sabbu/sabbu/Source/video.cpp,v -retrieving revision 1.36 -diff -u -r1.36 video.cpp ---- Source/video.cpp 11 Aug 2005 17:16:17 -0000 1.36 -+++ Source/video.cpp 24 Nov 2005 09:40:33 -0000 -@@ -213,7 +213,7 @@ +--- Source/video.cpp.orig Thu Aug 11 19:16:17 2005 ++++ Source/video.cpp Sun Jun 17 08:40:11 2007 +@@ -74,6 +74,7 @@ + } + #else + ++extern "C" { + #ifndef _WINDOWS + #include <ffmpeg/avformat.h> + #include <ffmpeg/avcodec.h> +@@ -99,6 +100,7 @@ + int (*avpicture_alloc)(AVPicture *picture, int pix_fmt, int width, int height) = NULL; + void (*avpicture_free)(AVPicture *picture) = NULL; + #endif ++} + + + GModule *module_avformat = NULL; +@@ -213,7 +215,7 @@ for(i = 0; i < video->ic->nb_streams; i++) { @@ -14,7 +25,7 @@ diff -u -r1.36 video.cpp if(enc->codec_type == CODEC_TYPE_VIDEO) { video->video_index = i; -@@ -227,7 +227,7 @@ +@@ -227,7 +229,7 @@ throw kryError(_("The video file does not seem to contain a video stream.")); } @@ -23,7 +34,7 @@ diff -u -r1.36 video.cpp enc->debug_mv = 0; enc->debug = 0; enc->workaround_bugs = 1; -@@ -291,9 +291,9 @@ +@@ -291,9 +293,9 @@ frame = avcodec_alloc_frame(); while(1) { @@ -36,7 +47,7 @@ diff -u -r1.36 video.cpp if(got_picture) break; -@@ -302,14 +302,14 @@ +@@ -302,14 +304,14 @@ return FALSE; } @@ -54,7 +65,7 @@ diff -u -r1.36 video.cpp width, height) < 0) { av_free(frame); -@@ -323,17 +323,17 @@ +@@ -323,17 +325,17 @@ int video_get_width(struct video_ffmpeg *video) { @@ -75,7 +86,7 @@ diff -u -r1.36 video.cpp } int64_t video_get_duration(struct video_ffmpeg *video) -@@ -348,7 +348,7 @@ +@@ -348,7 +350,7 @@ free(video->last_pkt); video->last_pkt = NULL; } @@ -84,7 +95,7 @@ diff -u -r1.36 video.cpp av_close_input_file(video->ic); } -@@ -376,11 +376,11 @@ +@@ -376,11 +378,11 @@ if(av_seek_frame(video->ic, -1, target_time) < 0) #endif { diff --git a/multimedia/sabbu/files/patch-video.h b/multimedia/sabbu/files/patch-video.h new file mode 100644 index 000000000000..0b0f69dba90d --- /dev/null +++ b/multimedia/sabbu/files/patch-video.h @@ -0,0 +1,16 @@ +--- Source/video.h.orig Thu Jul 14 17:52:07 2005 ++++ Source/video.h Sun Jun 17 08:57:32 2007 +@@ -23,11 +23,13 @@ + }; + + #else ++extern "C" { + #ifndef _WINDOWS + #include <ffmpeg/avformat.h> + #else + #include "video_ffmpeg.h" + #endif ++} + #endif + + void video_uninit(); |