summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/mpg123/mpg123-0.59s-r11.ebuild')
-rw-r--r--media-sound/mpg123/mpg123-0.59s-r11.ebuild134
1 files changed, 0 insertions, 134 deletions
diff --git a/media-sound/mpg123/mpg123-0.59s-r11.ebuild b/media-sound/mpg123/mpg123-0.59s-r11.ebuild
deleted file mode 100644
index c5e8d4d76535..000000000000
--- a/media-sound/mpg123/mpg123-0.59s-r11.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.59s-r11.ebuild,v 1.15 2008/01/17 19:09:51 grobian Exp $
-
-inherit eutils toolchain-funcs
-
-PATCH_VER="1.6"
-S="${WORKDIR}/${PN}"
-
-DESCRIPTION="Real Time mp3 player"
-HOMEPAGE="http://www.mpg123.de/"
-SRC_URI="http://www.mpg123.de/mpg123/${PN}-pre${PV}.tar.gz
- mirror://gentoo/${P}-gentoo-${PATCH_VER}.tar.bz2"
-
-LICENSE="as-is"
-SLOT="0"
-
-KEYWORDS="mips"
-IUSE="mmx 3dnow esd nas oss"
-
-RDEPEND="esd? ( media-sound/esound )
- nas? ( media-libs/nas )"
-
-# alsa-1 b0rks and it's not a simple fix
-# alsa? ( media-libs/alsa-lib )"
-
-DEPEND="${RDEPEND}
- dev-lang/perl"
-
-PROVIDE="virtual/mpg123"
-
-PATCHDIR="${WORKDIR}/patches"
-
-src_unpack() {
- unpack ${A}
-
- cd "${S}"
-
- EPATCH_SUFFIX="patch"
- epatch ${PATCHDIR}
-
- # Bug #70592; terminal line settings should only be set once; not everytime a new song starts
- epatch "${FILESDIR}/${PV}-set-terminal-line-settings-once.patch"
-
- # Bug #87539; user CFLAGS are not respected on amd64
- epatch "${FILESDIR}/${PN}-respectusercflags.patch"
-
- sed -i "s:${PV}-mh4:${PVR}:" version.h
-
- epatch "${FILESDIR}/${P}-gmake-3.81.patch"
-
- # Bug #130577
- perl -e 'my @text = <STDIN>; my $str = join "",@text; $str =~ s/\\\n//gs; print $str' < Makefile > Makefile.fixed
- mv Makefile.fixed Makefile
-}
-
-src_compile() {
- mkdir gentoo-bin
-
- # The last one in $styles is the default
- local styles
-
- use nas && styles="${styles} -nas"
- use oss && styles="${styles} -generic"
- atype="linux"
-
- case $ARCH in
- ppc64)
- use esd && styles="${styles} -ppc64-esd"
- use oss && styles="${styles} -ppc64"
-
- [[ -z "${styles}" ]] && styles="-ppc64"
- ;;
- ppc)
- use esd && styles="${styles} -ppc-esd"
- use oss && styles="${styles} -ppc"
-
- [ -z "${styles}" ] && styles="-ppc"
- ;;
- x86)
- use esd && styles="${styles} -esd"
- use esd && use 3dnow && styles="${styles} -3dnow-esd"
- use oss && styles="${styles} -i486"
- use oss && use mmx && styles="${styles} -mmx"
- use oss && use 3dnow && styles="${styles} -3dnow"
- # use alsa && styles="${styles} -alsa"
- # use alsa && use 3dnow && styles="${styles} -3dnow-alsa"
-
- [[ -z "${styles}" ]] && styles="-generic"
- ;;
- sparc*)
- use esd && styles="${styles} -sparc-esd"
- styles="${styles} -sparc -generic"
- ;;
- amd64)
- use esd && styles="${styles} -x86_64-esd"
- use oss && styles="${styles} -x86_64"
- # use alsa && styles="${styles} -x86_64-alsa"
-
- [[ -z "${styles}" ]] && styles="-x86_64"
- ;;
- alpha)
- use esd && styles="${styles} -alpha-esd"
- use oss && styles="${styles} -alpha"
- # use alsa && styles="${styles} -alpha-alsa"
-
- [[ -z "${styles}" ]] && styles="-generic"
- ;;
- mips|hppa|ia64)
- # use alsa && styles="${styles} -mips-alsa"
-
- [[ -z "${styles}" ]] && styles="-generic"
- ;;
- *)
- eerror "No support has been added for your architecture."
- exit 1
- ;;
- esac
-
- for style in ${styles};
- do
- emake -j1 clean ${atype}${style} CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
- mv mpg123 gentoo-bin/mpg123${style}
- [[ -L "gentoo-bin/mpg123" ]] && rm gentoo-bin/mpg123
- ln -s mpg123${style} gentoo-bin/mpg123
- done
-}
-
-src_install() {
- dodir /usr
- cp -R gentoo-bin "${D}/usr/bin"
- doman mpg123.1
- dodoc BENCHMARKING BUGS CHANGES JUKEBOX README* TODO
-}