/[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.1 - (hide annotations) (download)
Fri Jul 24 22:33:34 2009 UTC (5 years, 2 months ago) by ssuominen
Branch: MAIN
Set visibility of global symbols used in ARM specific assembly file to internal. Rewrite the public symbol check to verify the shared libraries, to check for more things, and to avoid duplication; fixes make check on ARM.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 ssuominen 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg2/libmpeg2-0.5.1.ebuild,v 1.9 2009/02/18 19:03:52 armin76 Exp $
4    
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     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
15     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