/[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.2 - (hide annotations) (download)
Fri Jan 15 09:34:31 2010 UTC (4 years, 6 months ago) by fauli
Branch: MAIN
Changes since 1.1: +3 -3 lines
Transfer Prefix keywords
(Portage version: 2.1.6.13/cvs/Linux i686)

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 fauli 1.2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg2/libmpeg2-0.5.1-r1.ebuild,v 1.1 2009/07/24 22:33:34 ssuominen 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 fauli 1.2 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     "${FILESDIR}"/${P}-global-symbol-test.patch
28     elibtoolize
29     }
30    
31     src_configure() {
32     econf \
33     --enable-shared \
34     --disable-dependency-tracking \
35     $(use_enable sdl) \
36     $(use_with X x)
37     }
38    
39     src_compile() {
40     emake OPT_CFLAGS="${CFLAGS}" MPEG2DEC_CFLAGS="${CFLAGS}" \
41     LIBMPEG2_CFLAGS="" || die "emake failed"
42     }
43    
44     src_install() {
45     emake DESTDIR="${D}" install || die "emake install failed"
46     dodoc AUTHORS ChangeLog NEWS README TODO
47     }

  ViewVC Help
Powered by ViewVC 1.1.20