/[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.8 - (show annotations) (download)
Thu May 17 14:32:33 2012 UTC (2 years, 1 month ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.7 2011/09/09 18:05:02 scarabeus Exp $
4
5 EAPI=4
6
7 inherit autotools eutils libtool
8
9 DESCRIPTION="library for decoding mpeg-2 and mpeg-1 video"
10 HOMEPAGE="http://libmpeg2.sourceforge.net/"
11 SRC_URI="http://libmpeg2.sourceforge.net/files/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ppc ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
16 IUSE="sdl static-libs X"
17
18 RDEPEND="sdl? ( media-libs/libsdl )
19 X? ( x11-libs/libXv
20 x11-libs/libICE
21 x11-libs/libSM
22 x11-libs/libXt )"
23 DEPEND="${RDEPEND}
24 X? ( x11-proto/xextproto )"
25
26 DOCS=( AUTHORS ChangeLog NEWS README TODO )
27
28 src_prepare() {
29 epatch \
30 "${FILESDIR}"/${P}-arm-private-symbols.patch \
31 "${FILESDIR}"/${P}-global-symbol-test.patch \
32 "${FILESDIR}"/${P}-armv4l.patch
33 elibtoolize
34 ### PowerPC fix for altivec
35 epatch "${FILESDIR}"/${P}-altivec.patch
36 eautoconf
37 }
38
39 src_configure() {
40 econf \
41 $(use_enable static-libs static) \
42 --enable-shared \
43 $(use_enable sdl) \
44 $(use_with X x)
45 }
46
47 src_compile() {
48 emake OPT_CFLAGS="${CFLAGS}" \
49 MPEG2DEC_CFLAGS="${CFLAGS}" \
50 LIBMPEG2_CFLAGS=""
51 }
52
53 src_install() {
54 default
55
56 find "${ED}" -name '*.la' -exec rm -f {} +
57 }

  ViewVC Help
Powered by ViewVC 1.1.20