From b6e089af2108c095f1e18b46d280f58eab269c1c Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Thu, 11 Mar 2010 16:32:44 +0000 Subject: Fix building with libpng14. (Portage version: 2.2_rc67/cvs/Linux x86_64) --- net-analyzer/driftnet/ChangeLog | 8 ++++++-- net-analyzer/driftnet/driftnet-0.1.6_p20090401.ebuild | 10 ++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'net-analyzer/driftnet') diff --git a/net-analyzer/driftnet/ChangeLog b/net-analyzer/driftnet/ChangeLog index cc6d1750b266..78c6f1b04236 100644 --- a/net-analyzer/driftnet/ChangeLog +++ b/net-analyzer/driftnet/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-analyzer/driftnet -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/ChangeLog,v 1.36 2009/07/27 19:31:11 ssuominen Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/ChangeLog,v 1.37 2010/03/11 16:32:44 ssuominen Exp $ + + 11 Mar 2010; Samuli Suominen + driftnet-0.1.6_p20090401.ebuild: + Fix building with libpng14. 27 Jul 2009; Samuli Suominen driftnet-0.1.6-r4.ebuild: diff --git a/net-analyzer/driftnet/driftnet-0.1.6_p20090401.ebuild b/net-analyzer/driftnet/driftnet-0.1.6_p20090401.ebuild index 1cfd450278a4..cd5a6b113243 100644 --- a/net-analyzer/driftnet/driftnet-0.1.6_p20090401.ebuild +++ b/net-analyzer/driftnet/driftnet-0.1.6_p20090401.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/driftnet-0.1.6_p20090401.ebuild,v 1.3 2009/09/06 17:58:32 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/driftnet-0.1.6_p20090401.ebuild,v 1.4 2010/03/11 16:32:44 ssuominen Exp $ EAPI=2 inherit eutils flag-o-matic toolchain-funcs @@ -25,6 +25,12 @@ DEPEND="${CDEPEND} RDEPEND="${CDEPEND} mp3? ( media-sound/mpg123 )" +src_prepare() { + sed -i \ + -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \ + png.c || die +} + src_compile() { export CC=$(tc-getCC) if use gtk; then -- cgit v1.2.3-65-gdbad