/[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.6 - (hide annotations) (download)
Mon Sep 20 22:00:06 2010 UTC (3 years, 11 months ago) by josejx
Branch: MAIN
Changes since 1.5: +2 -2 lines
Marked ppc/ppc64 stable.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20