/[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.5 - (show annotations) (download)
Thu Jul 29 23:17:08 2010 UTC (4 years ago) by darkside
Branch: MAIN
Changes since 1.4: +2 -2 lines
add ~x64-macos, bug 328183
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2010 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-r1.ebuild,v 1.4 2010/05/25 17:24:05 josejx Exp $
4
5 EAPI=2
6 inherit autotools 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 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
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 "${FILESDIR}"/${P}-armv4l.patch
29 elibtoolize
30 ### PowerPC fix for altivec
31 epatch "${FILESDIR}"/${P}-altivec.patch
32 eautoconf
33 }
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