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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Feb 18 19:03:52 2009 UTC (5 years, 7 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
ia64/sh/sparc stable wrt #255151
(Portage version: 2.1.6.4/cvs/Linux 2.6.27-gentoo-r8 ia64)

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.8 2009/02/18 18:14:30 klausman Exp $
4
5 inherit eutils libtool
6
7 DESCRIPTION="library for decoding mpeg-2 and mpeg-1 video"
8 HOMEPAGE="http://libmpeg2.sourceforge.net/"
9 SRC_URI="http://libmpeg2.sourceforge.net/files/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
14 IUSE="sdl X"
15
16 RDEPEND="sdl? ( media-libs/libsdl )
17 X? (
18 x11-libs/libXv
19 x11-libs/libICE
20 x11-libs/libSM
21 x11-libs/libXt
22 )"
23 DEPEND="${RDEPEND}
24 X? ( x11-proto/xextproto )"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 # Fix problem that the test for external symbols
31 # uses nm which also displays hidden symbols. Bug #130831
32 # Breaks tests on other platforms: bug #255151
33 # epatch "${FILESDIR}"/${PN}-0.4.1-use-readelf-for-test.patch
34
35 elibtoolize
36 }
37
38 src_compile() {
39 econf \
40 --enable-shared \
41 --disable-dependency-tracking \
42 $(use_enable sdl) \
43 $(use_with X x)
44 emake \
45 OPT_CFLAGS="${CFLAGS}" \
46 MPEG2DEC_CFLAGS="${CFLAGS}" \
47 LIBMPEG2_CFLAGS="" \
48 || die "emake failed"
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install || die "make install failed"
53 dodoc AUTHORS ChangeLog NEWS README TODO
54 }

  ViewVC Help
Powered by ViewVC 1.1.20