/[gentoo-x86]/media-libs/libmpeg3/libmpeg3-1.8.ebuild
Gentoo

Contents of /media-libs/libmpeg3/libmpeg3-1.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sat Aug 4 12:00:31 2012 UTC (2 years, 4 months ago) by jer
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for HPPA (bug #419087).

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

1 scarabeus 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jer 1.4 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg3/libmpeg3-1.8.ebuild,v 1.3 2012/08/03 16:36:32 ago Exp $
4 scarabeus 1.1
5     EAPI=4
6    
7     inherit eutils autotools toolchain-funcs
8    
9     DESCRIPTION="An mpeg library for linux"
10     HOMEPAGE="http://heroinewarrior.com/libmpeg3.php"
11     SRC_URI="mirror://sourceforge/heroines/${P}-src.tar.bz2
12     mirror://gentoo/${PN}-1.7-gentoo.tar.bz2"
13    
14     LICENSE="GPL-2"
15     SLOT="0"
16 jer 1.4 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc x86"
17 scarabeus 1.1 IUSE="mmx"
18    
19     RDEPEND="sys-libs/zlib
20     virtual/jpeg
21     media-libs/a52dec"
22     DEPEND="${RDEPEND}
23     mmx? ( dev-lang/nasm )"
24    
25     src_prepare() {
26     epatch "${WORKDIR}"/${PN}-1.7-mpeg3split.patch
27     epatch "${WORKDIR}"/${PN}-1.7-textrel.patch
28     epatch "${WORKDIR}"/${PN}-1.7-gnustack.patch
29     epatch "${WORKDIR}"/${PN}-1.7-a52.patch
30     epatch "${WORKDIR}"/${PN}-1.7-all_gcc4.patch
31     epatch "${WORKDIR}"/${PN}-1.7-all_pthread.patch
32    
33     cp -rf "${WORKDIR}"/1.7/* .
34     eautoreconf
35     }
36    
37     src_configure() {
38     #disabling css since it's a fake one.
39     #One can find in the sources this message :
40     # Stubs for deCSS which can't be distributed in source form
41    
42     econf \
43     $(use_enable mmx) \
44     --disable-css
45     }
46    
47     src_install() {
48     default
49     dohtml -r docs
50     # This is a workaround, it wants to rebuild
51     # everything if the headers have changed
52     # So we patch them after install...
53     cd "${ED}/usr/include/libmpeg3"
54     # This patch patches the .h files that get installed into /usr/include
55     # to show the correct include syntax '<>' instead of '""' This patch
56     # was also generated using info from SF's src.rpm
57     epatch "${WORKDIR}"/gentoo-p2.patch
58    
59     find "${ED}" -name '*.la' -exec rm -f '{}' +
60     }

  ViewVC Help
Powered by ViewVC 1.1.20