/[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.3 - (hide annotations) (download)
Sun Jan 24 15:59:57 2010 UTC (4 years, 8 months ago) by armin76
Branch: MAIN
Changes since 1.2: +4 -3 lines
Add a patch to fix build failure on armv4l, and stabilize on arm
(Portage version: 2.1.6.13/cvs/Linux ia64)

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 armin76 1.3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg2/libmpeg2-0.5.1-r1.ebuild,v 1.2 2010/01/15 09:34:31 fauli Exp $
4 ssuominen 1.1
5     EAPI=2
6     inherit eutils libtool
7    
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 armin76 1.3 KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-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     }
31    
32     src_configure() {
33     econf \
34     --enable-shared \
35     --disable-dependency-tracking \
36     $(use_enable sdl) \
37     $(use_with X x)
38     }
39    
40     src_compile() {
41     emake OPT_CFLAGS="${CFLAGS}" MPEG2DEC_CFLAGS="${CFLAGS}" \
42     LIBMPEG2_CFLAGS="" || die "emake failed"
43     }
44    
45     src_install() {
46     emake DESTDIR="${D}" install || die "emake install failed"
47     dodoc AUTHORS ChangeLog NEWS README TODO
48     }

  ViewVC Help
Powered by ViewVC 1.1.20