From ab877c7cf5eadaeb1cfc1779ea2a6ae05304873f Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sat, 30 Oct 2004 23:31:17 +0000 Subject: Removing insecure versions. --- media-sound/mpg123/ChangeLog | 10 +- media-sound/mpg123/files/0.59s-generic.patch | 18 --- media-sound/mpg123/files/digest-mpg123-0.59s-r4 | 1 - media-sound/mpg123/files/digest-mpg123-0.59s-r5 | 2 - .../mpg123/files/mpg123-0.59s-CAN-2004-0805.patch | 15 --- .../mpg123/files/mpg123-0.59s-Makefile.patch | 29 ----- media-sound/mpg123/files/mpg123-0.59s-amd64.patch | 81 ------------- media-sound/mpg123/files/mpg123-0.59s-heapfix.diff | 11 -- media-sound/mpg123/files/mpg123-0.59s-ppc64.patch | 46 ------- .../mpg123/files/mpg123-0.59s-security.diff | 34 ------ media-sound/mpg123/mpg123-0.59s-r4.ebuild | 135 --------------------- media-sound/mpg123/mpg123-0.59s-r5.ebuild | 113 ----------------- 12 files changed, 9 insertions(+), 486 deletions(-) delete mode 100644 media-sound/mpg123/files/0.59s-generic.patch delete mode 100644 media-sound/mpg123/files/digest-mpg123-0.59s-r4 delete mode 100644 media-sound/mpg123/files/digest-mpg123-0.59s-r5 delete mode 100644 media-sound/mpg123/files/mpg123-0.59s-CAN-2004-0805.patch delete mode 100644 media-sound/mpg123/files/mpg123-0.59s-Makefile.patch delete mode 100644 media-sound/mpg123/files/mpg123-0.59s-amd64.patch delete mode 100644 media-sound/mpg123/files/mpg123-0.59s-heapfix.diff delete mode 100644 media-sound/mpg123/files/mpg123-0.59s-ppc64.patch delete mode 100644 media-sound/mpg123/files/mpg123-0.59s-security.diff delete mode 100644 media-sound/mpg123/mpg123-0.59s-r4.ebuild delete mode 100644 media-sound/mpg123/mpg123-0.59s-r5.ebuild (limited to 'media-sound/mpg123') diff --git a/media-sound/mpg123/ChangeLog b/media-sound/mpg123/ChangeLog index 16a8eeaa6ee5..34e053eb8ade 100644 --- a/media-sound/mpg123/ChangeLog +++ b/media-sound/mpg123/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-sound/mpg123 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.67 2004/10/30 22:17:27 geoman Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.68 2004/10/30 23:31:17 eradicator Exp $ + + 30 Oct 2004; Jeremy Huddleston + -files/0.59s-generic.patch, -files/mpg123-0.59s-CAN-2004-0805.patch, + -files/mpg123-0.59s-Makefile.patch, -files/mpg123-0.59s-amd64.patch, + -files/mpg123-0.59s-heapfix.diff, -files/mpg123-0.59s-ppc64.patch, + -files/mpg123-0.59s-security.diff, -mpg123-0.59s-r4.ebuild, + -mpg123-0.59s-r5.ebuild: + Removing insecure versions. 30 Oct 2004; Stephen P. Becker mpg123-0.59s-r6.ebuild: stable on mips diff --git a/media-sound/mpg123/files/0.59s-generic.patch b/media-sound/mpg123/files/0.59s-generic.patch deleted file mode 100644 index 2bbc0002a2f5..000000000000 --- a/media-sound/mpg123/files/0.59s-generic.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- Makefile.orig 2003-11-23 20:15:23.000000000 -0500 -+++ Makefile 2003-11-23 20:16:46.000000000 -0500 -@@ -176,6 +176,15 @@ - -finline-functions -ffast-math' \ - mpg123-make - -+linux-generic: -+ $(MAKE) CC=gcc LDFLAGS= \ -+ OBJECTS='decode.o dct64.o audio_oss.o' \ -+ CFLAGS='$(CFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall \ -+ -DOSS \ -+ -fomit-frame-pointer -funroll-all-loops \ -+ -finline-functions -ffast-math' \ -+ mpg123-make -+ - linux-pentium: - $(MAKE) CC=gcc LDFLAGS= \ - OBJECTS='decode_i386.o dct64_i386.o decode_i586.o \ diff --git a/media-sound/mpg123/files/digest-mpg123-0.59s-r4 b/media-sound/mpg123/files/digest-mpg123-0.59s-r4 deleted file mode 100644 index 88b7f6bafc5b..000000000000 --- a/media-sound/mpg123/files/digest-mpg123-0.59s-r4 +++ /dev/null @@ -1 +0,0 @@ -MD5 a63675b0ea7990d4a7d7e7e14f23a3e4 mpg123-pre0.59s.tar.gz 244899 diff --git a/media-sound/mpg123/files/digest-mpg123-0.59s-r5 b/media-sound/mpg123/files/digest-mpg123-0.59s-r5 deleted file mode 100644 index 55e939750ab2..000000000000 --- a/media-sound/mpg123/files/digest-mpg123-0.59s-r5 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 a63675b0ea7990d4a7d7e7e14f23a3e4 mpg123-pre0.59s.tar.gz 244899 -MD5 cb48de54032d91a3d5557a8ef78696ee mpg123-0.59s-gentoo-1.0.tar.bz2 4992 diff --git a/media-sound/mpg123/files/mpg123-0.59s-CAN-2004-0805.patch b/media-sound/mpg123/files/mpg123-0.59s-CAN-2004-0805.patch deleted file mode 100644 index 5c457af500d6..000000000000 --- a/media-sound/mpg123/files/mpg123-0.59s-CAN-2004-0805.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- mpg123/layer2.c.orig 2004-09-14 17:15:48.000000000 -0400 -+++ mpg123/layer2.c 2004-09-14 17:18:49.000000000 -0400 -@@ -287,6 +287,12 @@ - fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ? - (fr->mode_ext<<2)+4 : fr->II_sblimit; - -+ /* security fix. */ -+ if (fr->jsbound > fr->II_sblimit) { -+ fprintf(stderr, "Truncating stereo boundary to sideband limit.\n"); -+ fr->jsbound=fr->II_sblimit; -+ } -+ - if(stereo == 1 || single == 3) - single = 0; - diff --git a/media-sound/mpg123/files/mpg123-0.59s-Makefile.patch b/media-sound/mpg123/files/mpg123-0.59s-Makefile.patch deleted file mode 100644 index d31d6863e6f8..000000000000 --- a/media-sound/mpg123/files/mpg123-0.59s-Makefile.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- mpg123/Makefile.orig 2004-04-13 09:19:04.445654000 -0600 -+++ mpg123/Makefile 2004-04-13 09:21:41.845654000 -0600 -@@ -402,7 +402,7 @@ - OBJECTS='decode.o dct64.o audio_esd.o' \ - CFLAGS='-DREAL_IS_FLOAT -DUSE_MMAP -DOSS -DUSE_ESD -DSPARCLINUX -Wall \ - -fomit-frame-pointer -funroll-all-loops \ -- -finline-functions -ffast-math \ -+ -finline-functions -ffast-math' \ - mpg123-make - - -@@ -411,7 +411,7 @@ - CFLAGS='-DLINUX -DOSS -Wall \ - -fomit-frame-pointer -funroll-all-loops \ - -finline-functions -ffast-math \ -- -Wall -O6 -DUSE_MMAP \ -+ -Wall -O6 -DUSE_MMAP' \ - mpg123-make - - linux-arm: -@@ -496,7 +496,7 @@ - CFLAGS='$(CFLAGS) -Wall -ansi -pedantic -O4 -fomit-frame-pointer \ - -funroll-all-loops -ffast-math -DROT_I386 \ - -DI386_ASSEM -DREAL_IS_FLOAT -DUSE_MMAP -DOSS -DUSE_ESD \ -- -I/usr/local/include -L/usr/local/lib -+ -I/usr/local/include -L/usr/local/lib' \ - mpg123-make - - freebsd-nas: diff --git a/media-sound/mpg123/files/mpg123-0.59s-amd64.patch b/media-sound/mpg123/files/mpg123-0.59s-amd64.patch deleted file mode 100644 index b8ab3c065c09..000000000000 --- a/media-sound/mpg123/files/mpg123-0.59s-amd64.patch +++ /dev/null @@ -1,81 +0,0 @@ -diff -ruN mpg123.old/Makefile mpg123/Makefile ---- mpg123.old/Makefile 2001-01-23 13:00:46.000000000 -0500 -+++ mpg123/Makefile 2003-10-06 00:19:31.356137840 -0400 -@@ -318,6 +318,29 @@ - $(RPM_OPT_FLAGS)' \ - mpg123-make - -+linux-x86_64: -+ $(MAKE) LDFLAGS= \ -+ OBJECTS='decode.o dct64.o audio_oss.o' \ -+ CFLAGS='-O2 -Wall -DLINUX -DOSS -DUSE_MMAP \ -+ $(RPM_OPT_FLAGS)' \ -+ mpg123-make -+ -+linux-x86_64-esd: -+ $(MAKE) LDFLAGS= \ -+ AUDIO_LIB='-lesd -laudiofile' \ -+ OBJECTS='decode.o dct64.o audio_esd.o' \ -+ CFLAGS='-O2 -Wall -DLINUX -DOSS -DUSE_MMAP \ -+ $(RPM_OPT_FLAGS)' \ -+ mpg123-make -+ -+linux-x86_64-alsa: -+ $(MAKE) LDFLAGS= \ -+ AUDIO_LIB='-lasound' \ -+ OBJECTS='decode.o dct64.o audio_alsa.o' \ -+ CFLAGS='-O2 -Wall -DLINUX -DOSS -DUSE_MMAP \ -+ $(RPM_OPT_FLAGS)' \ -+ mpg123-make -+ - #linux-ppc: - # $(MAKE) CC=gcc LDFLAGS= \ - # OBJECTS='decode.o dct64.o audio_oss.o' \ -diff -ruN mpg123.old/layer3.c mpg123/layer3.c ---- mpg123.old/layer3.c 2001-01-23 10:10:02.000000000 -0500 -+++ mpg123/layer3.c 2003-10-06 00:19:31.357137688 -0400 -@@ -609,7 +609,7 @@ - * Dequantize samples (includes huffman decoding) - */ - /* 24 is enough because tab13 has max. a 19 bit huffvector */ --#define BITSHIFT ((sizeof(long)-1)*8) -+#define BITSHIFT ((sizeof(int)-1)*8) - #define REFRESH_MASK \ - while(num < BITSHIFT) { \ - mask |= ((unsigned long)getbyte(&bsi))<<(BITSHIFT-num); \ -@@ -713,7 +713,7 @@ - if(x == 15 && h->linbits) { - max[lwin] = cb; - REFRESH_MASK; -- x += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits); -+ x += ((unsigned int) mask) >> (BITSHIFT+8-h->linbits); - num -= h->linbits+1; - mask <<= h->linbits; - if(mask < 0) -@@ -737,7 +737,7 @@ - if(y == 15 && h->linbits) { - max[lwin] = cb; - REFRESH_MASK; -- y += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits); -+ y += ((unsigned int) mask) >> (BITSHIFT+8-h->linbits); - num -= h->linbits+1; - mask <<= h->linbits; - if(mask < 0) -@@ -891,7 +891,7 @@ - if (x == 15 && h->linbits) { - max = cb; - REFRESH_MASK; -- x += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits); -+ x += ((unsigned int) mask) >> (BITSHIFT+8-h->linbits); - num -= h->linbits+1; - mask <<= h->linbits; - if(mask < 0) -@@ -915,7 +915,7 @@ - if (y == 15 && h->linbits) { - max = cb; - REFRESH_MASK; -- y += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits); -+ y += ((unsigned int) mask) >> (BITSHIFT+8-h->linbits); - num -= h->linbits+1; - mask <<= h->linbits; - if(mask < 0) diff --git a/media-sound/mpg123/files/mpg123-0.59s-heapfix.diff b/media-sound/mpg123/files/mpg123-0.59s-heapfix.diff deleted file mode 100644 index f5006f2fbc64..000000000000 --- a/media-sound/mpg123/files/mpg123-0.59s-heapfix.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- httpget.c 2000-10-30 18:45:12.000000000 +0100 -+++ httpget.c.patch 2004-02-09 10:05:56.000000000 +0100 -@@ -55,7 +55,7 @@ void readstring (char *string, int maxle - #endif - int pos = 0; - -- while(1) { -+ while(maxlen>pos) { - if( read(fileno(f),string+pos,1) == 1) { - pos++; - if(string[pos-1] == '\n') { diff --git a/media-sound/mpg123/files/mpg123-0.59s-ppc64.patch b/media-sound/mpg123/files/mpg123-0.59s-ppc64.patch deleted file mode 100644 index 299e062e83a5..000000000000 --- a/media-sound/mpg123/files/mpg123-0.59s-ppc64.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- Makefile.orig 2004-10-18 21:58:56.743022904 -0500 -+++ Makefile 2004-10-18 22:00:08.095092976 -0500 -@@ -327,25 +327,25 @@ - $(RPM_OPT_FLAGS)' \ - mpg123-make - --#linux-ppc: --# $(MAKE) CC=gcc LDFLAGS= \ --# OBJECTS='decode.o dct64.o audio_oss.o' \ --# CFLAGS='$(CFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=ppc \ --# -DOSS -DPPC_ENDIAN \ --# -fomit-frame-pointer -funroll-all-loops \ --# -finline-functions -ffast-math' \ --# mpg123-make -- --#linux-ppc-esd: --# $(MAKE) CC=gcc LDFLAGS= \ --# AUDIO_LIB='-lesd -laudiofile' \ --# OBJECTS='decode.o dct64.o audio_esd.o' \ --# CFLAGS='$(CFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=ppc \ --# -DOSS -DPPC_ENDIAN \ --# -fomit-frame-pointer -funroll-all-loops \ --# -finline-functions -ffast-math' \ --# mpg123-make -+linux-ppc64: -+ $(MAKE) CC=gcc LDFLAGS= \ -+ OBJECTS='decode.o dct64.o audio_oss.o' \ -+ CFLAGS='$(CFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -O2 \ -+ -DOSS -DPPC_ENDIAN \ -+ -fomit-frame-pointer -funroll-all-loops \ -+ -finline-functions -ffast-math' \ -+ mpg123-make - -+linux-ppc64-esd: -+ $(MAKE) CC=gcc LDFLAGS= \ -+ AUDIO_LIB='-lesd -laudiofile' \ -+ OBJECTS='decode.o dct64.o audio_esd.o' \ -+ CFLAGS='$(CFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -O2 \ -+ -DOSS -DPPC_ENDIAN \ -+ -fomit-frame-pointer -funroll-all-loops \ -+ -finline-functions -ffast-math' \ -+ mpg123-make -+ - linux-ppc: - $(MAKE) CC=gcc LDFLAGS= \ - OBJECTS='decode.o dct64.o audio_oss.o' \ diff --git a/media-sound/mpg123/files/mpg123-0.59s-security.diff b/media-sound/mpg123/files/mpg123-0.59s-security.diff deleted file mode 100644 index a3e67f75cdb1..000000000000 --- a/media-sound/mpg123/files/mpg123-0.59s-security.diff +++ /dev/null @@ -1,34 +0,0 @@ -diff -urN mpg123.old/common.c mpg123/common.c ---- mpg123.old/common.c 2001-05-16 09:56:56.000000000 -0700 -+++ mpg123/common.c 2003-09-30 00:31:24.000000000 -0700 -@@ -127,7 +127,7 @@ - return FALSE; - if(!((head>>17)&3)) - return FALSE; -- if( ((head>>12)&0xf) == 0xf) -+ if( ((head>>12)&0xf) == 0xf || ((head>>12)&0xf) == 0) - return FALSE; - if( ((head>>10)&0x3) == 0x3 ) - return FALSE; -@@ -140,7 +140,7 @@ - * -1: giving up - * 1: synched - */ --#define MAX_INPUT_FRAMESIZE 1920 -+#define MAX_INPUT_FRAMESIZE 4096 - #define SYNC_HEAD_MASK 0xffff0000 - #define SYNC_HEAD_MASK_FF 0x0000f000 - #define LOOK_AHEAD_NUM 3 -@@ -579,7 +579,11 @@ - fprintf(stderr,"Sorry, unknown layer type.\n"); - return (0); - } -- -+ if (fr->framesize>MAX_INPUT_FRAMESIZE) { -+ fprintf(stderr,"Frame size too big.\n"); -+ fr->framesize = MAX_INPUT_FRAMESIZE; -+ return 0; -+ } - if(!fr->bitrate_index) { - /* fprintf(stderr,"Warning, Free format not heavily tested: (head %08lx)\n",newhead); */ - fr->framesize = 0; diff --git a/media-sound/mpg123/mpg123-0.59s-r4.ebuild b/media-sound/mpg123/mpg123-0.59s-r4.ebuild deleted file mode 100644 index 84047c240d71..000000000000 --- a/media-sound/mpg123/mpg123-0.59s-r4.ebuild +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.59s-r4.ebuild,v 1.10 2004/10/19 03:06:39 tgall Exp $ - -inherit eutils - -DESCRIPTION="Real Time mp3 player" -HOMEPAGE="http://www.mpg123.de/" -SRC_URI="http://www.mpg123.de/mpg123/${PN}-pre${PV}.tar.gz" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="x86 ia64 amd64 ppc sparc alpha hppa mips ppc64" -IUSE="mmx 3dnow esd nas oss" - -RDEPEND="virtual/libc - 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} - >=sys-apps/sed-4" - -PROVIDE="virtual/mpg123" - -S=${WORKDIR}/${PN} - -src_unpack() { - unpack ${A} && cd ${S} || die "unpack failed" - - # Apply security fixes - epatch ${FILESDIR}/${P}-security.diff - epatch ${FILESDIR}/${P}-heapfix.diff - - # Security patch. Bug $63079 - epatch ${FILESDIR}/${PN}-0.59s-CAN-2004-0805.patch - # Add linux-generic target - epatch ${FILESDIR}/${PV}-generic.patch - - # Always apply this patch, even though it's particularly for - # amd64. It's good to understand the distinction between int and - # long: ANSI says that int should be 32-bits, long should be the - # native size of the CPU (usually the same as a pointer). - use ppc64 || epatch ${FILESDIR}/${P}-amd64.patch - - # Fix Makefile missing quotes - epatch ${FILESDIR}/${P}-Makefile.patch - - # ppc64 support - use ppc64 && epatch ${FILESDIR}/${P}-ppc64.patch - - # Don't force gcc since icc/ccc might be possible - sed -i -e "s|CC=gcc||" Makefile - - # Fix a glitch in the x86 related section of the Makefile - sed -i -e "s:-m486::g" Makefile - # Fix a glitch in the ppc-related section of the Makefile - sed -i -e "s:-mcpu=ppc::" Makefile - # Make sure we use our CFLAGS - sed -i -e "s:-O2::g" 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" - - case $ARCH in - 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" - ;; - 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) - # 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 - make clean linux${style} CFLAGS="${CFLAGS}" || 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 -dR gentoo-bin ${D}/usr/bin - doman mpg123.1 - dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO -} diff --git a/media-sound/mpg123/mpg123-0.59s-r5.ebuild b/media-sound/mpg123/mpg123-0.59s-r5.ebuild deleted file mode 100644 index 501fc2a4ec03..000000000000 --- a/media-sound/mpg123/mpg123-0.59s-r5.ebuild +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.59s-r5.ebuild,v 1.8 2004/10/30 15:55:04 tgall Exp $ - -IUSE="mmx 3dnow esd nas oss" - -inherit eutils - -PATCH_VER=1.0 -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 - http://dev.gentoo.org/~eradicator/${PN}/${P}-gentoo-${PATCH_VER}.tar.bz2" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="x86 ia64 amd64 ppc sparc alpha hppa ~mips ppc64" - -RDEPEND="virtual/libc - 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} - >=sys-apps/sed-4" - -PROVIDE="virtual/mpg123" - -PATCHDIR="${WORKDIR}/patches" - -src_unpack() { - unpack ${A} - - cd ${S} - EPATCH_SUFFIX="patch" - epatch ${PATCHDIR} -} - -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" - - case $ARCH in - 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" - ;; - 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 - make clean linux${style} CFLAGS="${CFLAGS}" || 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 -dR gentoo-bin ${D}/usr/bin - doman mpg123.1 - dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO -} -- cgit v1.2.3-65-gdbad