forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-libs/wxsvg: Bump to 1.5.5. Fix build with ffmpeg git master. Ad…
…d USE=libav and := deps on ffmpeg/libav. Package-Manager: portage-2.2.23
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST wxsvg-1.1.13.tar.bz2 669378 SHA256 ebaecb322bb7fad97a3cd686bed9827b00afe84063cf2784a7e19891dabd805e SHA512 6c8dddbb274d1d9cd32fdec1c4ac6f73d3497fd2a29ecbe2d6640c2a65a290940faa92fba954c3990b32f713dc89de74e31484263bbd9c2718dc436ca19d2397 WHIRLPOOL 643aa93161028436c30014cb3a2e36cfab53b5f9341d1e21c129eab6e86b756150dc491cc4cf2be0ef6ff956eb7a5ff5c67f8ee1d26879b228e8af18459e9601 | ||
DIST wxsvg-1.4.2.tar.bz2 461580 SHA256 c7555eacb786583dda4288fa6f3e914a14ec175be0a02b31d9c4e19f173bd760 SHA512 6b6c8c5bf5b369da75ee9d034f6be8611019f48066d352b7268a127f1d9f9487c4aa694b0f0529efa3c0b63d51f7c38ba503d7cf83f9e930b876ebc4bcbce9e1 WHIRLPOOL 84cc8a7b849cac5ad1045572c5ee0aa267d8a6e0e97db0c61f2896def7e347055330a61bf89cfb64360411681c15e0df567c05b5efe4bc5dc456ba9285d9d219 | ||
DIST wxsvg-1.5.4.tar.bz2 478568 SHA256 5ca0ce0fcb45a3f0801b645000e9b5179bab4d62fb56df51f027d75cbef5a655 SHA512 89d909c1db975dcbca464e3d7850277b72e596bb6020d3c796cb235c55fcb9282472b522a1a3a15cc773eb98e8e2c69f463c5085cfc1b66221316d19ca87cf46 WHIRLPOOL c2caf28102c908e6efdaff413224afde2d83a0e24b199b7904696a334b8b9e64f51f91ab6d3a2ed57c69f3ebaaef96bf1ba890d1af600adb92db47ccfcfbf4cf | ||
DIST wxsvg-1.5.5.tar.bz2 478828 SHA256 e6664de4ee2a0481f47f8b718793ef7c14d296ebe7aee4edbf099258cd9525fc SHA512 4b42ba6ea5675f5794e0450809980030175583813db7e4e216dd5d53e92f43c67c0e62208c77e8e455703d62d1e30606a001b28b924c17ed26fd949638340a1b WHIRLPOOL abc95e7b14d0e298d44b0b7d36731f5099de10bd095400ca9c90af67957bc138c2dc0d91c7477b381a88debf6c24a000fb94ebd0b73d31c4d31ff96dc693dcc2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Index: wxsvg-1.5.5/src/mediadec_ffmpeg.cpp | ||
=================================================================== | ||
--- wxsvg-1.5.5.orig/src/mediadec_ffmpeg.cpp | ||
+++ wxsvg-1.5.5/src/mediadec_ffmpeg.cpp | ||
@@ -263,7 +263,7 @@ wxImage wxFfmpegMediaDecoder::GetNextFra | ||
avcodec_decode_video2(m_codecCtx, m_frame, &frameFinished, &packet); | ||
if (frameFinished) { | ||
SwsContext* imgConvertCtx = sws_getContext(m_codecCtx->width, m_codecCtx->height, m_codecCtx->pix_fmt, | ||
- m_width, m_height, PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL); | ||
+ m_width, m_height, AV_PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL); | ||
if (imgConvertCtx == NULL) { | ||
av_free_packet(&packet); | ||
return wxImage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
WX_GTK_VER=3.0 | ||
inherit eutils wxwidgets | ||
|
||
DESCRIPTION="C++ library to create, manipulate and render SVG files" | ||
HOMEPAGE="http://wxsvg.sourceforge.net/" | ||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" | ||
|
||
LICENSE="wxWinLL-3" | ||
SLOT="0/3" # based on SONAME of libwxsvg.so | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="static-libs libav" | ||
|
||
RDEPEND=">=dev-libs/expat-2:= | ||
>=dev-libs/glib-2.28:2= | ||
dev-libs/libxml2:= | ||
media-libs/fontconfig:= | ||
media-libs/freetype:2= | ||
x11-libs/cairo:= | ||
x11-libs/pango:= | ||
x11-libs/wxGTK:${WX_GTK_VER}=[X] | ||
libav? ( >=media-video/libav-9:0= ) | ||
!libav? ( >=media-video/ffmpeg-2.6:0= )" | ||
DEPEND="${RDEPEND} | ||
virtual/pkgconfig" | ||
|
||
DOCS=( AUTHORS ChangeLog TODO ) | ||
|
||
src_prepare() { | ||
epatch "${FILESDIR}/ffmpeg29.patch" | ||
} | ||
|
||
src_configure() { | ||
need-wxwidgets base-unicode | ||
econf \ | ||
$(use_enable static-libs static) \ | ||
--with-wx-config=${WX_CONFIG} | ||
} | ||
|
||
src_install() { | ||
default | ||
prune_libtool_files | ||
} |