media-libs/libde265: fix PIX_FMT_YUV420P undefined err
authorYixun Lan <dlan@gentoo.org>
Mon, 5 Dec 2016 07:56:14 +0000 (15:56 +0800)
committerYixun Lan <dlan@gentoo.org>
Mon, 5 Dec 2016 07:57:17 +0000 (15:57 +0800)
Gentoo-Bug: 575554

Package-Manager: portage-2.3.2

media-libs/libde265/libde265-1.0.2.ebuild

index 7b52f0011412060f9cafbd7b105ffcd04e68f3fe..e132363504121f9d3b6b6e6c29c25d147a9ca15a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -27,6 +27,11 @@ RDEPEND="${DEPEND}"
 
 REQUIRED_USE="tools? ( || ( qt4 qt5 ) )"
 
+src_prepare() {
+       sed -ri 's/(PIX_FMT_)/AV_\1/g' sherlock265/VideoDecoder.cc || die
+       autotools-multilib_src_prepare
+}
+
 src_configure() {
        local myeconfargs=(
                $(use_enable cpu_flags_x86_sse sse)