Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 35746 Details for
Bug 57596
Porting: mpg123
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Updated ebuild
mpg123-0.59s-r4.ebuild (text/plain), 3.81 KB, created by
Joe Jezak (RETIRED)
on 2004-07-19 08:31:34 UTC
(
hide
)
Description:
Updated ebuild
Filename:
MIME Type:
Creator:
Joe Jezak (RETIRED)
Created:
2004-07-19 08:31:34 UTC
Size:
3.81 KB
patch
obsolete
># 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-r3.ebuild,v 1.11 2004/07/01 10:58:53 eradicator Exp $ > >inherit eutils > >IUSE="macos mmx 3dnow esd nas oss" > >DESCRIPTION="Real Time mp3 player" >HOMEPAGE="http://www.mpg123.de/" >OSX_PATCH="mirror://sourceforge/mosx-mpg123/mosx-mpg123-0.4.tar.gz" >SRC_URI="http://www.mpg123.de/mpg123/${PN}-pre${PV}.tar.gz > macos? ( ${OSX_PATCH} )" > >LICENSE="as-is" >SLOT="0" >KEYWORDS="x86 ~ia64 ~amd64 ~ppc sparc ~alpha hppa ~mips macos" > >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" > > # Patch for OSX > if use macos; > then > einfo "Patching for OSX build" > cp ${WORKDIR}/mosx-mpg123/Makefile.pre0.59s ${WORKDIR}/mpg123/Makefile && \ > cp ${WORKDIR}/mosx-mpg123/audio_macosx.c ${WORKDIR}/mpg123/ > fi > > # Apply security fixes > epatch ${FILESDIR}/${P}-security.diff > epatch ${FILESDIR}/${P}-heapfix.diff > > # 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). > epatch ${FILESDIR}/${P}-amd64.patch > > # Fix Makefile missing quotes > epatch ${FILESDIR}/${P}-Makefile.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" > > atype="linux" > > 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" > ;; > macos) > [ -z "${styles}" ] && styles="macosx" > atype="" > ;; > > *) > eerror "No support has been added for your architecture." > exit 1 > ;; > esac > > for style in ${styles}; > do > make clean ${atype}${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 > if use macos; > then > cp -R gentoo-bin/ ${D}/usr/bin/ > else > cp -dR gentoo-bin ${D}/usr/bin/ > fi > doman mpg123.1 > dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 57596
:
35746
|
35748
|
37930