From e5d2fe8e3f236487e4928ff4facf136ece0db0e7 Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Thu, 27 Aug 2009 16:49:13 +0000 Subject: Fix building with USE="-encode". (Portage version: 2.2_rc40/cvs/Linux x86_64) --- media-libs/libtheora/ChangeLog | 7 ++++++- .../files/libtheora-1.1_beta3-theora_disable_encode.patch | 15 +++++++++++++++ media-libs/libtheora/libtheora-1.1_beta3.ebuild | 5 +++-- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 media-libs/libtheora/files/libtheora-1.1_beta3-theora_disable_encode.patch (limited to 'media-libs/libtheora') diff --git a/media-libs/libtheora/ChangeLog b/media-libs/libtheora/ChangeLog index dfcd5e5c22b8..8fbfe9eaabbd 100644 --- a/media-libs/libtheora/ChangeLog +++ b/media-libs/libtheora/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-libs/libtheora # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libtheora/ChangeLog,v 1.94 2009/08/27 09:33:36 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libtheora/ChangeLog,v 1.95 2009/08/27 16:49:13 ssuominen Exp $ + + 27 Aug 2009; Samuli Suominen + libtheora-1.1_beta3.ebuild, + +files/libtheora-1.1_beta3-theora_disable_encode.patch: + Fix building with USE="-encode". *libtheora-1.1_beta3 (27 Aug 2009) diff --git a/media-libs/libtheora/files/libtheora-1.1_beta3-theora_disable_encode.patch b/media-libs/libtheora/files/libtheora-1.1_beta3-theora_disable_encode.patch new file mode 100644 index 000000000000..b335c9ff2531 --- /dev/null +++ b/media-libs/libtheora/files/libtheora-1.1_beta3-theora_disable_encode.patch @@ -0,0 +1,15 @@ +diff -ur libtheora-1.1beta3.orig/lib/Makefile.am libtheora-1.1beta3/lib/Makefile.am +--- libtheora-1.1beta3.orig/lib/Makefile.am 2009-08-06 04:43:12.000000000 +0300 ++++ libtheora-1.1beta3/lib/Makefile.am 2009-08-27 19:46:10.000000000 +0300 +@@ -17,7 +17,11 @@ + x86/x86state.c \ + x86_vc + ++if THEORA_DISABLE_ENCODE + lib_LTLIBRARIES = libtheoradec.la libtheoraenc.la libtheora.la ++else ++lib_LTLIBRARIES = libtheoradec.la libtheora.la ++endif + + if THEORA_DISABLE_ENCODE + encoder_uniq_sources = \ diff --git a/media-libs/libtheora/libtheora-1.1_beta3.ebuild b/media-libs/libtheora/libtheora-1.1_beta3.ebuild index 97cc8f80a6fe..8147c0ce425c 100644 --- a/media-libs/libtheora/libtheora-1.1_beta3.ebuild +++ b/media-libs/libtheora/libtheora-1.1_beta3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libtheora/libtheora-1.1_beta3.ebuild,v 1.1 2009/08/27 09:33:36 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libtheora/libtheora-1.1_beta3.ebuild,v 1.2 2009/08/27 16:49:13 ssuominen Exp $ EAPI=2 inherit autotools eutils flag-o-matic @@ -27,7 +27,8 @@ VARTEXFONTS=${T}/fonts S=${WORKDIR}/${P/_} src_prepare() { - epatch "${FILESDIR}"/${PN}-1.0_beta2-flags.patch + epatch "${FILESDIR}"/${PN}-1.0_beta2-flags.patch \ + "${FILESDIR}"/${P}-theora_disable_encode.patch AT_M4DIR="m4" eautoreconf } -- cgit v1.2.3-65-gdbad