summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-01-30 22:43:23 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-01-30 22:43:23 +0000
commit4e542476b904b4a473d153d3bfd9b6aca6dd786e (patch)
treec3d70e154537a1676c8fac8ed9414430cfd926a2 /media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild
parentstable on all archs (diff)
downloadgentoo-2-4e542476b904b4a473d153d3bfd9b6aca6dd786e.tar.gz
gentoo-2-4e542476b904b4a473d153d3bfd9b6aca6dd786e.tar.bz2
gentoo-2-4e542476b904b4a473d153d3bfd9b6aca6dd786e.zip
use sed -i; use emake; more error checking/messages
Diffstat (limited to 'media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild')
-rw-r--r--media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild39
1 files changed, 20 insertions, 19 deletions
diff --git a/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild b/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild
index b5f71e46aa5f..d924159f75f7 100644
--- a/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild
+++ b/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild
@@ -1,36 +1,37 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild,v 1.15 2003/12/03 15:52:52 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild,v 1.16 2004/01/30 22:43:05 mr_bones_ Exp $
-MY_P=${PN}_v${PV}
-S=${WORKDIR}/mpeg2
+MY_P="${PN}_v${PV}"
+S="${WORKDIR}/mpeg2"
DESCRIPTION="MPEG Library"
-SRC_URI="ftp://ftp.mpeg.org/pub/mpeg/mssg/${MY_P}.tar.gz"
HOMEPAGE="http://www.mpeg.org"
+SRC_URI="ftp://ftp.mpeg.org/pub/mpeg/mssg/${MY_P}.tar.gz"
-DEPEND="virtual/glibc"
-
-SLOT="0"
-LICENSE="as-is"
KEYWORDS="x86 ppc alpha sparc amd64 hppa"
+LICENSE="as-is"
+SLOT="0"
+IUSE=""
+
+RDEPEND="virtual/glibc"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
src_unpack() {
unpack ${A}
- cd ${S}
- cp Makefile Makefile.orig
- sed -e "s:-O2:${CFLAGS}:" Makefile.orig > Makefile
+
+ sed -i \
+ -e "s:-O2:${CFLAGS}:" "${S}/Makefile" \
+ || die "sed Makefile failed"
}
src_compile() {
- cd ${S}
- make || die
+ emake || die "emake failed"
}
src_install() {
- cd ${S}
- into /usr
- dobin src/mpeg2dec/mpeg2decode
- dobin src/mpeg2enc/mpeg2encode
- dodoc README doc/*
+ dobin src/mpeg2dec/mpeg2decode src/mpeg2enc/mpeg2encode \
+ || die "dobin failed"
+ dodoc README doc/* || die "dodoc failed"
}