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

Diff of /media-libs/libmpeg2/libmpeg2-0.5.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20