49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Copyright 1999-2005 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/media-video/mpgtx/mpgtx-1.3.1.ebuild,v 1.6 2007/02/28 22:17:33 genstef Exp $
|
|
|
|
inherit eutils toolchain-funcs
|
|
|
|
DESCRIPTION="mpgtx a command line MPEG audio/video/system file toolbox"
|
|
SRC_URI="mirror://sourceforge/mpgtx/${P}.tar.gz"
|
|
HOMEPAGE="http://mpgtx.sourceforge.net/"
|
|
|
|
KEYWORDS="amd64 ~ppc x86"
|
|
IUSE=""
|
|
SLOT="0"
|
|
LICENSE="GPL-2"
|
|
|
|
DEPEND=""
|
|
|
|
src_compile() {
|
|
./configure --parachute --prefix=/usr
|
|
|
|
if [ "$(gcc-major-version)" -eq "3" -a "$(gcc-minor-version)" -ge "4" ] || \
|
|
[ "$(gcc-major-version)" -ge "4" ]; then
|
|
sed -i "s:-O3:-O3 -fno-unit-at-a-time:" Makefile
|
|
fi
|
|
|
|
emake || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
exeinto /usr/bin
|
|
doexe mpgtx
|
|
|
|
dosym /usr/bin/mpgtx /usr/bin/mpgjoin
|
|
dosym /usr/bin/mpgtx /usr/bin/mpgsplit
|
|
dosym /usr/bin/mpgtx /usr/bin/mpgcat
|
|
dosym /usr/bin/mpgtx /usr/bin/mpginfo
|
|
dosym /usr/bin/mpgtx /usr/bin/mpgdemux
|
|
dosym /usr/bin/mpgtx /usr/bin/tagmp3
|
|
|
|
doman man/mpgtx.1 man/tagmp3.1
|
|
|
|
dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpgcat.1
|
|
dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpgjoin.1
|
|
dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpginfo.1
|
|
dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpgsplit.1
|
|
dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpgdemux.1
|
|
|
|
dodoc AUTHORS ChangeLog README TODO
|
|
}
|