/[gentoo-x86]/media-libs/libmpeg2/libmpeg2-0.5.1-r1.ebuild
Gentoo

Contents of /media-libs/libmpeg2/libmpeg2-0.5.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Thu May 17 14:32:33 2012 UTC (2 years, 5 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 aballier 1.8 # Copyright 1999-2012 Gentoo Foundation
2 ssuominen 1.1 # Distributed under the terms of the GNU General Public License v2
3 aballier 1.8 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg2/libmpeg2-0.5.1-r1.ebuild,v 1.7 2011/09/09 18:05:02 scarabeus Exp $
4 scarabeus 1.7
5     EAPI=4
6 ssuominen 1.1
7 josejx 1.4 inherit autotools eutils libtool
8 ssuominen 1.1
9     DESCRIPTION="library for decoding mpeg-2 and mpeg-1 video"
10     HOMEPAGE="http://libmpeg2.sourceforge.net/"
11     SRC_URI="http://libmpeg2.sourceforge.net/files/${P}.tar.gz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 aballier 1.8 KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ppc ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
16 scarabeus 1.7 IUSE="sdl static-libs X"
17 ssuominen 1.1
18     RDEPEND="sdl? ( media-libs/libsdl )
19     X? ( x11-libs/libXv
20     x11-libs/libICE
21     x11-libs/libSM
22     x11-libs/libXt )"
23     DEPEND="${RDEPEND}
24     X? ( x11-proto/xextproto )"
25    
26 scarabeus 1.7 DOCS=( AUTHORS ChangeLog NEWS README TODO )
27    
28 ssuominen 1.1 src_prepare() {
29 scarabeus 1.7 epatch \
30     "${FILESDIR}"/${P}-arm-private-symbols.patch \
31 armin76 1.3 "${FILESDIR}"/${P}-global-symbol-test.patch \
32     "${FILESDIR}"/${P}-armv4l.patch
33 ssuominen 1.1 elibtoolize
34 josejx 1.4 ### PowerPC fix for altivec
35     epatch "${FILESDIR}"/${P}-altivec.patch
36     eautoconf
37 ssuominen 1.1 }
38    
39     src_configure() {
40     econf \
41 scarabeus 1.7 $(use_enable static-libs static) \
42 ssuominen 1.1 --enable-shared \
43     $(use_enable sdl) \
44     $(use_with X x)
45     }
46    
47     src_compile() {
48 scarabeus 1.7 emake OPT_CFLAGS="${CFLAGS}" \
49     MPEG2DEC_CFLAGS="${CFLAGS}" \
50     LIBMPEG2_CFLAGS=""
51 ssuominen 1.1 }
52    
53     src_install() {
54 scarabeus 1.7 default
55    
56     find "${ED}" -name '*.la' -exec rm -f {} +
57 ssuominen 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20