diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-06-16 16:36:55 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-06-16 16:36:55 +0000 |
commit | f03df0f096ee90bb2a794a66ae70fb4fbf294fa3 (patch) | |
tree | 340f4529f23c420ef8d9aced542dce56de743814 /media-libs/opencv | |
parent | Version bumped. (diff) | |
download | gentoo-2-f03df0f096ee90bb2a794a66ae70fb4fbf294fa3.tar.gz gentoo-2-f03df0f096ee90bb2a794a66ae70fb4fbf294fa3.tar.bz2 gentoo-2-f03df0f096ee90bb2a794a66ae70fb4fbf294fa3.zip |
Fix building with FFmpeg >= 0.6 wrt #324259 by Alexis Ballier.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/opencv')
-rw-r--r-- | media-libs/opencv/ChangeLog | 6 | ||||
-rw-r--r-- | media-libs/opencv/opencv-2.0.0-r1.ebuild | 30 |
2 files changed, 23 insertions, 13 deletions
diff --git a/media-libs/opencv/ChangeLog b/media-libs/opencv/ChangeLog index e2d8aa6efeb6..c5a2c35086f5 100644 --- a/media-libs/opencv/ChangeLog +++ b/media-libs/opencv/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-libs/opencv # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/ChangeLog,v 1.20 2010/05/12 11:33:38 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/ChangeLog,v 1.21 2010/06/16 16:36:55 ssuominen Exp $ + + 16 Jun 2010; Samuli Suominen <ssuominen@gentoo.org> + opencv-2.0.0-r1.ebuild: + Fix building with FFmpeg >= 0.6 wrt #324259 by Alexis Ballier. 12 May 2010; Samuli Suominen <ssuominen@gentoo.org> opencv-2.0.0.ebuild: Backport -libpng14.patch to -r0 of 2.0.0 because -r1 can't be stabilized. diff --git a/media-libs/opencv/opencv-2.0.0-r1.ebuild b/media-libs/opencv/opencv-2.0.0-r1.ebuild index 0357e17c3bca..a02a84b23df2 100644 --- a/media-libs/opencv/opencv-2.0.0-r1.ebuild +++ b/media-libs/opencv/opencv-2.0.0-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/opencv-2.0.0-r1.ebuild,v 1.4 2010/03/09 12:45:38 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/opencv-2.0.0-r1.ebuild,v 1.5 2010/06/16 16:36:55 ssuominen Exp $ EAPI=2 -inherit cmake-utils +inherit cmake-utils flag-o-matic MY_P=OpenCV-${PV} @@ -38,12 +38,16 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${MY_P} -PATCHES=( "${FILESDIR}/${P}-multilib.patch" - "${FILESDIR}/${P}-libpng14.patch" ) +PATCHES=( + "${FILESDIR}/${P}-multilib.patch" + "${FILESDIR}/${P}-libpng14.patch" + ) src_configure() { - mycmakeargs="${mycmakeargs} - -DCMAKE_SKIP_RPATH=ON + append-cppflags -D__STDC_CONSTANT_MACROS + + mycmakeargs=( + "-DCMAKE_SKIP_RPATH=ON" $(cmake-utils_use_build examples) $(cmake-utils_use_build python NEW_PYTHON_SUPPORT) $(cmake-utils_use_build octave OCTAVE_SUPPORT) @@ -51,8 +55,8 @@ src_configure() { $(cmake-utils_use_enable openmp) $(cmake-utils_use ipp USE_IPP) $(cmake-utils_use mmx USE_MMX) - -DUSE_O3=OFF - -DUSE_OMIT_FRAME_POINTER=OFF + "-DUSE_O3=OFF" + "-DUSE_OMIT_FRAME_POINTER=OFF" $(cmake-utils_use sse USE_SSE) $(cmake-utils_use sse2 USE_SSE2) $(cmake-utils_use sse3 USE_SSE3) @@ -64,13 +68,15 @@ src_configure() { $(cmake-utils_use_with jpeg) $(cmake-utils_use_with png) $(cmake-utils_use_with tiff) - -DWITH_UNICAP=OFF + "-DWITH_UNICAP=OFF" $(cmake-utils_use_with v4l) - $(cmake-utils_use_with xine)" + $(cmake-utils_use_with xine) + ) if use python; then - mycmakeargs="${mycmakeargs} - $(cmake-utils_use_build deprecated SWIG_PYTHON_SUPPORT)" + mycmakeargs+=( + $(cmake-utils_use_build deprecated SWIG_PYTHON_SUPPORT) + ) fi cmake-utils_src_configure |