summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2012-05-21 20:42:14 +0000
committerJohannes Huber <johu@gentoo.org>2012-05-21 20:42:14 +0000
commitdf54eebeee820d98c46f5ee025eddb44313c54a6 (patch)
tree408145527668be171ac9e60b0d87873d49e3baf3 /media-libs/opencv/files
parentStable for amd64, wrt bug #416781 (diff)
downloadgentoo-2-df54eebeee820d98c46f5ee025eddb44313c54a6.tar.gz
gentoo-2-df54eebeee820d98c46f5ee025eddb44313c54a6.tar.bz2
gentoo-2-df54eebeee820d98c46f5ee025eddb44313c54a6.zip
Remove old.
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/opencv/files')
-rw-r--r--media-libs/opencv/files/opencv-2.3.0-convert_sets_to_options.patch341
-rw-r--r--media-libs/opencv/files/opencv-2.3.0-ffmpeg.patch156
-rw-r--r--media-libs/opencv/files/opencv-2.3.0-libpng15.patch8
-rw-r--r--media-libs/opencv/files/opencv-2.3.0-symlink.patch12
4 files changed, 0 insertions, 517 deletions
diff --git a/media-libs/opencv/files/opencv-2.3.0-convert_sets_to_options.patch b/media-libs/opencv/files/opencv-2.3.0-convert_sets_to_options.patch
deleted file mode 100644
index 7a794cd28a02..000000000000
--- a/media-libs/opencv/files/opencv-2.3.0-convert_sets_to_options.patch
+++ /dev/null
@@ -1,341 +0,0 @@
---- OpenCV-2.3.0-0-vanilla/CMakeLists.txt
-+++ OpenCV-2.3.0/CMakeLists.txt
-@@ -14,7 +14,7 @@
- # Add these standard paths to the search paths for FIND_LIBRARY
- # to find libraries from these locations first
- if(UNIX)
-- set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /lib /usr/lib)
-+ set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /lib${LIB_SUFFIX} /usr/lib${LIB_SUFFIX})
- endif()
-
-
-@@ -77,13 +77,13 @@
- # Build static or dynamic libs?
- # Default: dynamic libraries
- # ----------------------------------------------------------------------------
--set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)")
-+OPTION(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" ON)
-
- # ----------------------------------------------------------------------------
- # Include debug info into debug libs?
- # Default: yes
- # ----------------------------------------------------------------------------
--set(BUILD_WITH_DEBUG_INFO ON CACHE BOOL "Include debug info into debug libs")
-+OPTION(BUILD_WITH_DEBUG_INFO "Include debug info into debug libs" ON)
-
- # ----------------------------------------------------------------------------
- # Current version number:
-@@ -285,20 +285,20 @@
-
- # Build/install (or not) some apps:
- # ===================================================
--set(BUILD_EXAMPLES OFF CACHE BOOL "Build all examples")
--set(INSTALL_C_EXAMPLES OFF CACHE BOOL "Install C examples")
--set(INSTALL_PYTHON_EXAMPLES OFF CACHE BOOL "Install Python examples")
-+option(BUILD_EXAMPLES "Build all examples" OFF)
-+option(INSTALL_C_EXAMPLES "Install C examples" OFF)
-+option(INSTALL_PYTHON_EXAMPLES "Install Python examples" OFF)
-
- # Build tests:
- # ===================================================
--set(BUILD_TESTS ON CACHE BOOL "Build tests")
-+option(BUILD_TESTS "Build tests" ON)
-
- # Build 3rdparty libraries under unix
- # ===================================================
- if(WIN32)
-- set(OPENCV_BUILD_3RDPARTY_LIBS TRUE CACHE BOOL "Build 3rd party libraries")
-+ option(OPENCV_BUILD_3RDPARTY_LIBS "Build 3rd party libraries" TRUE)
- else()
-- set(OPENCV_BUILD_3RDPARTY_LIBS FALSE CACHE BOOL "Build 3rd party libraries")
-+ option(OPENCV_BUILD_3RDPARTY_LIBS "Build 3rd party libraries" FALSE)
- endif()
-
- include(OpenCVPCHSupport.cmake REQUIRED)
-@@ -324,8 +324,8 @@
- #set(ENABLE_OPENMP ${DEFAULT_ENABLE_OPENMP} CACHE BOOL "")
-
- if(CMAKE_COMPILER_IS_GNUCXX)
-- set(ENABLE_PROFILING OFF CACHE BOOL "Enable profiling in the GCC compiler (Add flags: -g -pg)")
-- set(USE_OMIT_FRAME_POINTER ON CACHE BOOL "Enable -fomit-frame-pointer for GCC")
-+ option(ENABLE_PROFILING "Enable profiling in the GCC compiler (Add flags: -g -pg)" OFF)
-+ option(USE_OMIT_FRAME_POINTER "Enable -fomit-frame-pointer for GCC" ON)
-
- if(${CMAKE_SYSTEM_PROCESSOR} MATCHES amd64*|x86_64*)
- set(X86_64 1)
-@@ -341,58 +341,58 @@
-
- if(X86 OR X86_64)
- # enable everything, since the available set of instructions is checked at runtime
-- set(USE_FAST_MATH ON CACHE BOOL "Enable -ffast-math")
-- set(ENABLE_SSE ON CACHE BOOL "Enable SSE instructions")
-- set(ENABLE_SSE2 ON CACHE BOOL "Enable SSE2 instructions")
-- set(ENABLE_SSE3 OFF CACHE BOOL "Enable SSE3 instructions")
-- set(ENABLE_SSSE3 OFF CACHE BOOL "Enable SSSE3 instructions")
-- set(ENABLE_SSE41 OFF CACHE BOOL "Enable SSE4.1 instructions")
-- set(ENABLE_SSE42 OFF CACHE BOOL "Enable SSE4.2 instructions")
-+ option(USE_FAST_MATH "Enable -ffast-math for GCC" ON)
-+ option(ENABLE_SSE "Enable SSE instructions" ON)
-+ option(ENABLE_SSE2 "Enable SSE2 instructions" ON)
-+ option(ENABLE_SSE3 "Enable SSE3 instructions" OFF)
-+ option(ENABLE_SSSE3 "Enable SSSE3 instructions" OFF)
-+ option(ENABLE_SSE41 "Enable SSE4.1 instructions" OFF)
-+ option(ENABLE_SSE42 "Enable SSE4.2 instructions" OFF)
- endif()
- endif()
-
- if(MSVC)
-- set(ENABLE_SSE ON CACHE BOOL "Enable SSE instructions for MSVC")
-- set(ENABLE_SSE2 ON CACHE BOOL "Enable SSE2 instructions for MSVC")
-+ option(ENABLE_SSE "Enable SSE instructions for MSVC" ON)
-+ option(ENABLE_SSE2 "Enable SSE2 instructions for MSVC" ON)
- if(CMAKE_C_COMPILER MATCHES "icc")
-- set(ENABLE_SSE3 OFF CACHE BOOL "Enable SSE3 instructions for ICC")
-- set(ENABLE_SSE4_1 OFF CACHE BOOL "Enable SSE4.1 instructions for ICC")
-+ option(ENABLE_SSE3 "Enable SSE3 instructions for ICC" OFF)
-+ option(ENABLE_SSE4_1 "Enable SSE4.1 instructions for ICC" OFF)
- endif()
- endif()
-
- # allow fine grained control over which libraries not to link, even if
- # they are available on the system
- # ====================================================================
--set(WITH_PNG ON CACHE BOOL "Include PNG support")
--set(WITH_JPEG ON CACHE BOOL "Include JPEG support")
--set(WITH_JASPER ON CACHE BOOL "Include JPEG2K support")
--set(WITH_TIFF ON CACHE BOOL "Include TIFF support")
--set(WITH_OPENEXR ON CACHE BOOL "Include ILM support via OpenEXR")
-+option(WITH_PNG "Include PNG support" ON)
-+option(WITH_JPEG "Include JPEG support" ON)
-+option(WITH_JASPER "Include JPEG2K support" ON)
-+option(WITH_TIFF "Include TIFF support" ON)
-+option(WITH_OPENEXR "Include ILM support via OpenEXR" ON)
-
- if(UNIX)
-- set(WITH_FFMPEG ON CACHE BOOL "Include FFMPEG support")
-+ option(WITH_FFMPEG "Include FFMPEG support" ON)
- if(NOT APPLE)
-- set(WITH_UNICAP OFF CACHE BOOL "Include Unicap support (GPL)")
-- set(WITH_GTK ON CACHE BOOL "Include GTK support")
-- set(WITH_GSTREAMER ON CACHE BOOL "Include Gstreamer support")
-- set(WITH_V4L ON CACHE BOOL "Include Video 4 Linux support")
-- set(WITH_XINE OFF CACHE BOOL "Include Xine support (GPL)")
-+ option(WITH_UNICAP "Include Unicap support (GPL)" OFF)
-+ option(WITH_GTK "Include GTK support" ON)
-+ option(WITH_GSTREAMER "Include Gstreamer support" ON)
-+ option(WITH_V4L "Include Video 4 Linux support" ON)
-+ option(WITH_XINE "Include Xine support (GPL)" OFF)
- endif()
-- set(WITH_PVAPI ON CACHE BOOL "Include Prosilica GigE support")
-- set(WITH_1394 ON CACHE BOOL "Include IEEE1394 support")
-+ option(WITH_PVAPI "Include Prosilica GigE support" ON)
-+ option(WITH_1394 "Include IEEE1394 support" ON)
- endif()
-
- if(APPLE)
-- set(WITH_CARBON OFF CACHE BOOL "Use Carbon for UI instead of Cocoa")
-- set(WITH_QUICKTIME OFF CACHE BOOL "Use QuickTime for Video I/O insted of QTKit")
-+ option(WITH_CARBON "Use Carbon for UI instead of Cocoa" OFF)
-+ option(WITH_QUICKTIME "Use QuickTime for Video I/O insted of QTKit" OFF)
- endif()
-
--set(WITH_TBB OFF CACHE BOOL "Include Intel TBB support")
--set(WITH_IPP OFF CACHE BOOL "Include Intel IPP support")
--set(WITH_EIGEN ON CACHE BOOL "Include Eigen2/Eigen3 support")
--set(WITH_CUDA ON CACHE BOOL "Include NVidia Cuda Runtime support")
-+option(WITH_TBB "Include TBB support" OFF)
-+option(WITH_IPP "Include Intel IPP support" OFF)
-+option(WITH_EIGEN "Include Eigen2/Eigen3 support" ON)
-+option(WITH_CUDA "Include NVidia Cuda Runtime support" ON)
-
--set(WITH_OPENNI OFF CACHE BOOL "Include OpenNI support")
-+option(WITH_OPENNI "Include OpenNI support" OFF)
-
- # ===================================================
- # Macros that checks if module have been installed.
-@@ -586,13 +586,13 @@
- include(OpenCVFindOpenEXR.cmake)
- endif()
-
--set(BUILD_DOCS ON CACHE BOOL "Build OpenCV Documentation")
-+option(BUILD_DOCS "Build OpenCV Documentation" ON)
-
- if(BUILD_DOCS)
- include(OpenCVFindLATEX.cmake REQUIRED)
- endif()
-
--set(BUILD_NEW_PYTHON_SUPPORT ON CACHE BOOL "Build with Python support")
-+option(BUILD_NEW_PYTHON_SUPPORT "Build with Python support" ON)
-
- if (WIN32)
- if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
-@@ -619,11 +619,11 @@
-
- string(REGEX MATCH "[0-9].[0-9]" PYTHON_VERSION_MAJOR_MINOR "${PYTHON_VERSION_FULL}")
- if(UNIX)
-- set(PYTHON_PLUGIN_INSTALL_PATH lib/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages/opencv)
-+ set(PYTHON_PLUGIN_INSTALL_PATH lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages/opencv)
- if(APPLE)
- set(PYTHON_PACKAGES_PATH lib/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages CACHE PATH "Where to install the python packages.")
- else() #debian based assumed, install to the dist-packages.
-- set(PYTHON_PACKAGES_PATH lib/python${PYTHON_VERSION_MAJOR_MINOR}/dist-packages CACHE PATH "Where to install the python packages.")
-+ set(PYTHON_PACKAGES_PATH lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR_MINOR}/site-packages)
- endif()
- endif()
- if(WIN32)
-@@ -665,8 +665,8 @@
- #YV
- ############################### QT ################################
-
--set(WITH_QT OFF CACHE BOOL "Build with Qt Backend support")
--set(WITH_QT_OPENGL OFF CACHE BOOL "Add OpenGL extension to Qt")
-+option(WITH_QT "Build with Qt Backend support" OFF)
-+option(WITH_QT_OPENGL "Add OpenGL extension to Qt" OFF)
-
- set(HAVE_QT 0)
- set(HAVE_QT_OPENGL 0)
-@@ -876,8 +876,8 @@
- ################## Extra HighGUI libs on Windows ###################
-
- if(WIN32)
-- set(WITH_VIDEOINPUT ON CACHE BOOL "Build HighGUI with DirectShow support")
--
-+ option(WITH_VIDEOINPUT "Build HighGUI with DirectShow support" ON)
-+
- set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} comctl32 gdi32 ole32)
-
- if(WITH_VIDEOINPUT)
-@@ -956,7 +956,7 @@
- # Set the maximum level of warnings:
- # ----------------------------------------------------------------------------
- # Should be set to true for development
--set(OPENCV_WARNINGS_ARE_ERRORS OFF CACHE BOOL "Treat warnings as errors")
-+option(OPENCV_WARNINGS_ARE_ERRORS "Treat warnings as errors" OFF)
-
- set(EXTRA_C_FLAGS "")
- set(EXTRA_C_FLAGS_RELEASE "")
-@@ -1073,14 +1073,6 @@
- endif()
- endif()
-
-- if(X86 OR X86_64)
-- if(NOT APPLE)
-- if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
-- set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -mfpmath=387")
-- endif()
-- endif()
-- endif()
--
- # Profiling?
- if(ENABLE_PROFILING)
- set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -pg -g")
-@@ -1197,7 +1197,7 @@
- if(WIN32)
- set(OPENCV_DOC_INSTALL_PATH doc)
- else()
--set(OPENCV_DOC_INSTALL_PATH share/opencv/doc)
-+set(OPENCV_DOC_INSTALL_PATH share/doc/opencv-${OPENCV_VERSION}/ CACHE PATH "Directory for documentation to install (without prefix)")
- endif()
-
-
-@@ -1232,7 +1232,7 @@
- set(CMAKE_INCLUDE_DIRS_CONFIGCMAKE "\"\${THIS_OPENCV_CONFIG_PATH}/../../include/opencv" "\${THIS_OPENCV_CONFIG_PATH}/../../include\"")
- set(CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE "\"\"")
-
--set(CMAKE_LIB_DIRS_CONFIGCMAKE "\"\${THIS_OPENCV_CONFIG_PATH}/../../lib\"")
-+set(CMAKE_LIB_DIRS_CONFIGCMAKE "\"\${THIS_OPENCV_CONFIG_PATH}/../../lib${LIB_SUFFIX}\"")
-
- exec_program(mkdir ARGS "-p \"${CMAKE_BINARY_DIR}/unix-install/\"" OUTPUT_VARIABLE RET_VAL)
- configure_file("${CMAKE_CURRENT_SOURCE_DIR}/OpenCVConfig.cmake.in" "${CMAKE_BINARY_DIR}/unix-install/OpenCVConfig.cmake" IMMEDIATE @ONLY)
-@@ -1327,14 +1327,14 @@
- # -------------------------------------------------------------------------------------------
- set(prefix ${CMAKE_INSTALL_PREFIX})
- set(exec_prefix "\${prefix}")
--set(libdir "\${exec_prefix}/lib")
-+set(libdir "\${exec_prefix}/lib${LIB_SUFFIX}")
- set(includedir "\${prefix}/include")
- set(VERSION ${OPENCV_VERSION})
-
- configure_file("${CMAKE_CURRENT_SOURCE_DIR}/opencv.pc.cmake.in" "${CMAKE_BINARY_DIR}/unix-install/opencv.pc" @ONLY IMMEDIATE)
-
- if(UNIX)
-- install(FILES ${CMAKE_BINARY_DIR}/unix-install/opencv.pc DESTINATION lib/pkgconfig)
-+ install(FILES ${CMAKE_BINARY_DIR}/unix-install/opencv.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig)
- endif()
-
-
-@@ -1354,7 +1354,7 @@
- # CPack target
- # ----------------------------------------------------------------------------
-
--set(BUILD_PACKAGE ON CACHE BOOL "Enables 'make package_source' command")
-+option(BUILD_PACKAGE "Build a installer with the SDK" ON)
-
- if(BUILD_PACKAGE)
-
---- OpenCV-2.3.0-0-vanilla/OpenCVModule.cmake
-+++ OpenCV-2.3.0/OpenCVModule.cmake
-@@ -63,7 +63,7 @@
- DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
- ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
- RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
-- INSTALL_NAME_DIR lib
-+ INSTALL_NAME_DIR lib${LIB_SUFFIX}
- )
-
- if(PCHSupport_FOUND AND USE_PRECOMPILED_HEADERS)
-@@ -97,8 +97,8 @@
-
- install(TARGETS ${the_target}
- RUNTIME DESTINATION bin COMPONENT main
-- LIBRARY DESTINATION lib COMPONENT main
-- ARCHIVE DESTINATION lib COMPONENT main)
-+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
-+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
-
- install(FILES ${lib_hdrs}
- DESTINATION include/opencv2/${name}
---- OpenCV-2.3.0-0-vanilla/modules/gpu/CMakeLists.txt
-+++ OpenCV-2.3.0/modules/gpu/CMakeLists.txt
-@@ -121,7 +121,7 @@
- DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
- ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
- RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
-- INSTALL_NAME_DIR lib
-+ INSTALL_NAME_DIR lib${LIB_SUFFIX}
- )
-
- # Add the required libraries for linking:
-@@ -149,8 +149,8 @@
-
- install(TARGETS ${the_target}
- RUNTIME DESTINATION bin COMPONENT main
-- LIBRARY DESTINATION lib COMPONENT main
-- ARCHIVE DESTINATION lib COMPONENT main)
-+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
-+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
-
- install(FILES ${lib_hdrs}
- DESTINATION include/opencv2/${name}
---- OpenCV-2.3.0-0-vanilla/modules/highgui/CMakeLists.txt
-+++ OpenCV-2.3.0/modules/highgui/CMakeLists.txt
-@@ -295,7 +295,7 @@
- DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
- ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH}
- RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
-- INSTALL_NAME_DIR lib
-+ INSTALL_NAME_DIR lib${LIB_SUFFIX}
- LINK_INTERFACE_LIBRARIES ""
- )
-
-@@ -362,8 +362,8 @@
-
- install(TARGETS ${the_target}
- RUNTIME DESTINATION bin COMPONENT main
-- LIBRARY DESTINATION lib COMPONENT main
-- ARCHIVE DESTINATION lib COMPONENT main)
-+ LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT main
-+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT main)
-
- install(FILES ${highgui_ext_hdrs}
- DESTINATION include/opencv2/highgui
diff --git a/media-libs/opencv/files/opencv-2.3.0-ffmpeg.patch b/media-libs/opencv/files/opencv-2.3.0-ffmpeg.patch
deleted file mode 100644
index 4f93d4eed425..000000000000
--- a/media-libs/opencv/files/opencv-2.3.0-ffmpeg.patch
+++ /dev/null
@@ -1,156 +0,0 @@
-diff -ruN OpenCV-2.3.0-0-vanilla/modules/highgui/src/cap_ffmpeg_impl.hpp OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp
---- OpenCV-2.3.0-0-vanilla/modules/highgui/src/cap_ffmpeg_impl.hpp 2011-07-04 06:21:58.000000000 +0200
-+++ OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp 2011-09-18 20:27:05.000000000 +0200
-@@ -489,7 +489,7 @@
- AVCodecContext *enc = &ic->streams[i]->codec;
- #endif
-
-- if( CODEC_TYPE_VIDEO == enc->codec_type && video_stream < 0) {
-+ if( AVMEDIA_TYPE_VIDEO == enc->codec_type && video_stream < 0) {
- AVCodec *codec = avcodec_find_decoder(enc->codec_id);
- if (!codec ||
- avcodec_open(enc, codec) < 0)
-@@ -576,15 +576,27 @@
- continue;
- }
-
--#if LIBAVFORMAT_BUILD > 4628
-- avcodec_decode_video(video_st->codec,
-- picture, &got_picture,
-- packet.data, packet.size);
--#else
-- avcodec_decode_video(&video_st->codec,
-- picture, &got_picture,
-- packet.data, packet.size);
--#endif
-+
-+ AVPacket avpkt;
-+ av_init_packet(&avpkt);
-+ avpkt.data = packet.data;
-+ avpkt.size = packet.size;
-+ //
-+ // HACK for CorePNG to decode as normal PNG by default
-+ // same method used by ffmpeg
-+ avpkt.flags = AV_PKT_FLAG_KEY;
-+ avcodec_decode_video2(video_st->codec,
-+ picture, &got_picture, &avpkt);
-+//Functions Removed from ffmpeg on 4/19/11
-+//#if LIBAVFORMAT_BUILD > 4628
-+// avcodec_decode_video(video_st->codec,
-+// picture, &got_picture,
-+// packet.data, packet.size);
-+//#else
-+// avcodec_decode_video(&video_st->codec,
-+// picture, &got_picture,
-+// packet.data, packet.size);
-+//#endif
-
- if (got_picture) {
- // we have a new picture, so memorize it
-@@ -822,24 +834,25 @@
- #endif
- };
-
--static const char * icvFFMPEGErrStr(int err)
--{
-- switch(err) {
-- case AVERROR_NUMEXPECTED:
-- return "Incorrect filename syntax";
-- case AVERROR_INVALIDDATA:
-- return "Invalid data in header";
-- case AVERROR_NOFMT:
-- return "Unknown format";
-- case AVERROR_IO:
-- return "I/O error occurred";
-- case AVERROR_NOMEM:
-- return "Memory allocation error";
-- default:
-- break;
-- }
-- return "Unspecified error";
--}
-+//Deprecated Errors, should be using AVERROR(EINVAL) to return error strings
-+//static const char * icvFFMPEGErrStr(int err)
-+//{
-+// switch(err) {
-+// case AVERROR_NUMEXPECTED:
-+// return "Incorrect filename syntax";
-+// case AVERROR_INVALIDDATA:
-+// return "Invalid data in header";
-+// case AVERROR_NOFMT:
-+// return "Unknown format";
-+// case AVERROR_IO:
-+// return "I/O error occurred";
-+// case AVERROR_NOMEM:
-+// return "Memory allocation error";
-+// default:
-+// break;
-+// }
-+// return "Unspecified error";
-+//}
-
- /* function internal to FFMPEG (libavformat/riff.c) to lookup codec id by fourcc tag*/
- extern "C" {
-@@ -918,7 +931,7 @@
- #endif
-
- #if LIBAVFORMAT_BUILD > 4621
-- c->codec_id = av_guess_codec(oc->oformat, NULL, oc->filename, NULL, CODEC_TYPE_VIDEO);
-+ c->codec_id = av_guess_codec(oc->oformat, NULL, oc->filename, NULL, AVMEDIA_TYPE_VIDEO);
- #else
- c->codec_id = oc->oformat->video_codec;
- #endif
-@@ -930,7 +943,7 @@
- //if(codec_tag) c->codec_tag=codec_tag;
- codec = avcodec_find_encoder(c->codec_id);
-
-- c->codec_type = CODEC_TYPE_VIDEO;
-+ c->codec_type = AVMEDIA_TYPE_VIDEO;
-
- /* put sample parameters */
- c->bit_rate = bitrate;
-@@ -1015,7 +1028,7 @@
- AVPacket pkt;
- av_init_packet(&pkt);
-
-- pkt.flags |= PKT_FLAG_KEY;
-+ pkt.flags |= AV_PKT_FLAG_KEY;
- pkt.stream_index= video_st->index;
- pkt.data= (uint8_t *)picture;
- pkt.size= sizeof(AVPicture);
-@@ -1035,7 +1048,7 @@
- pkt.pts = c->coded_frame->pts;
- #endif
- if(c->coded_frame->key_frame)
-- pkt.flags |= PKT_FLAG_KEY;
-+ pkt.flags |= AV_PKT_FLAG_KEY;
- pkt.stream_index= video_st->index;
- pkt.data= outbuf;
- pkt.size= out_size;
-@@ -1237,7 +1250,7 @@
- av_register_all ();
-
- /* auto detect the output format from the name and fourcc code. */
-- fmt = guess_format(NULL, filename, NULL);
-+ fmt = av_guess_format(NULL, filename, NULL);
- if (!fmt)
- return false;
-
-@@ -1260,7 +1273,7 @@
- #endif
-
- // alloc memory for context
-- oc = av_alloc_format_context();
-+ oc = avformat_alloc_context();
- assert (oc);
-
- /* set file name */
-@@ -1336,7 +1349,7 @@
- /* open the codec */
- if ( (err=avcodec_open(c, codec)) < 0) {
- char errtext[256];
-- sprintf(errtext, "Could not open codec '%s': %s", codec->name, icvFFMPEGErrStr(err));
-+ sprintf(errtext, "Could not open codec '%s': %s", codec->name, AVERROR(EINVAL));
- return false;
- }
-
diff --git a/media-libs/opencv/files/opencv-2.3.0-libpng15.patch b/media-libs/opencv/files/opencv-2.3.0-libpng15.patch
deleted file mode 100644
index c811766bf8c9..000000000000
--- a/media-libs/opencv/files/opencv-2.3.0-libpng15.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- opencv/modules/highgui/src/grfmt_png.cpp (revision 4945)
-+++ opencv/modules/highgui/src/grfmt_png.cpp (revision 6143)
-@@ -57,4 +57,5 @@
- #include <png.h>
- #endif
-+#include <zlib.h>
- #include "grfmt_png.hpp"
-
diff --git a/media-libs/opencv/files/opencv-2.3.0-symlink.patch b/media-libs/opencv/files/opencv-2.3.0-symlink.patch
deleted file mode 100644
index d6f5efb249d2..000000000000
--- a/media-libs/opencv/files/opencv-2.3.0-symlink.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ruN OpenCV-2.3.0-1-s2o/CMakeLists.txt OpenCV-2.3.0/CMakeLists.txt
---- OpenCV-2.3.0-1-s2o/CMakeLists.txt 2011-09-18 18:40:04.000000000 +0200
-+++ OpenCV-2.3.0/CMakeLists.txt 2011-09-18 18:55:47.000000000 +0200
-@@ -1240,7 +1240,7 @@
- if(UNIX)
- # For a command "FIND_PACKAGE(FOO)", CMake will look at the directory /usr/share|lib/cmake/FOO/FOOConfig.cmake, so:
- install(FILES ${CMAKE_BINARY_DIR}/unix-install/OpenCVConfig.cmake DESTINATION share/opencv/)
-- install(CODE "exec_program(ln ARGS -sf \"${CMAKE_INSTALL_PREFIX}/share/opencv\" \"${CMAKE_INSTALL_PREFIX}/share/OpenCV\")")
-+ install(CODE "exec_program(ln ARGS -sf \"${CMAKE_INSTALL_PREFIX}/share/opencv\" \"$ENV{D}/${CMAKE_INSTALL_PREFIX}/share/OpenCV\")")
- endif()
-
- # --------------------------------------------------------------------------------------------