Lines 1-19
Link Here
|
1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2006 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/libmpeg3/libmpeg3-1.5.2-r3.ebuild,v 1.5 2006/07/02 20:21:36 vapier Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit flag-o-matic eutils toolchain-funcs |
5 |
inherit flag-o-matic eutils toolchain-funcs |
6 |
|
6 |
|
7 |
PATCHLEVEL="3" |
7 |
PATCHLEVEL="1" |
8 |
DESCRIPTION="An mpeg library for linux" |
8 |
DESCRIPTION="An mpeg library for linux" |
9 |
HOMEPAGE="http://heroinewarrior.com/libmpeg3.php3" |
9 |
HOMEPAGE="http://heroinewarrior.com/libmpeg3.php3" |
10 |
SRC_URI="mirror://sourceforge/heroines/${P}-src.tar.bz2 |
10 |
SRC_URI="mirror://sourceforge/heroines/${P}-src.tar.bz2 |
11 |
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2 |
11 |
mirror://gentoo/${P}-patches-${PATCHLEVEL}.tar.bz2" |
12 |
mirror://gentoo/${P}-textrel-fix.patch.bz2" |
12 |
#FIXME - port 1.5.2 textrel patch to 1.7 |
|
|
13 |
#mirror://gentoo/${P}-textrel-fix.patch.bz2" |
13 |
|
14 |
|
14 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
15 |
SLOT="0" |
16 |
SLOT="0" |
16 |
KEYWORDS="~alpha ~amd64 arm hppa ia64 ~mips ppc ~ppc64 sh ~sparc ~x86" |
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" |
17 |
IUSE="mmx" |
18 |
IUSE="mmx" |
18 |
|
19 |
|
19 |
RDEPEND="sys-libs/zlib |
20 |
RDEPEND="sys-libs/zlib |
Lines 28-45
Link Here
|
28 |
# The Makefile is patched to install the header files as well. |
29 |
# The Makefile is patched to install the header files as well. |
29 |
# This patch was generated using the info in the src.rpm that |
30 |
# This patch was generated using the info in the src.rpm that |
30 |
# SourceForge provides for this package. |
31 |
# SourceForge provides for this package. |
31 |
[ "`gcc-version`" == "3.4" -o "`gcc-major-version`" -ge 4 ] || \ |
|
|
32 |
EPATCH_EXCLUDE="${EPATCH_EXCLUDE} 08_all_gcc34.patch" |
33 |
[ "`gcc-major-version`" -ge 4 ] || \ |
34 |
EPATCH_EXCLUDE="${EPATCH_EXCLUDE} 09_all_gcc4.patch" |
35 |
|
32 |
|
36 |
EPATCH_SUFFIX="patch" epatch ${WORKDIR}/${PV} |
33 |
EPATCH_SUFFIX="patch" epatch ${WORKDIR}/${PV} |
37 |
|
34 |
|
38 |
sed -i -e "/LIBS = /s:$: -L\${ROOT}usr/$(get_libdir) -la52:" Makefile |
35 |
sed -i -e "/LIBS = /s:$: -L\${ROOT}usr/$(get_libdir) -la52:" Makefile |
39 |
|
36 |
|
40 |
epatch "${FILESDIR}/${P}-a52.patch" |
|
|
41 |
epatch "${FILESDIR}/${P}-gnustack.patch" |
37 |
epatch "${FILESDIR}/${P}-gnustack.patch" |
42 |
epatch "${DISTDIR}/${P}-textrel-fix.patch.bz2" |
38 |
#FIXME - port 1.5.2 textrel patch to 1.7 |
|
|
39 |
#epatch "${DISTDIR}/${P}-textrel-fix.patch.bz2" |
43 |
|
40 |
|
44 |
if ! use mmx; then |
41 |
if ! use mmx; then |
45 |
sed -i -e 's:^NASM =.*:NASM =:' \ |
42 |
sed -i -e 's:^NASM =.*:NASM =:' \ |