diff options
author | Peter Volkov <pva@gentoo.org> | 2007-05-26 10:23:38 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2007-05-26 10:23:38 +0000 |
commit | 7a2b947a347f79d634f740bde1838e6fa95bac40 (patch) | |
tree | abc37f7bdbcb8ab13b1d1dddef2b87f0c2c2e4e3 /app-emulation | |
parent | Revbump to remove unused gnu-jaxp dep. (diff) | |
download | gentoo-2-7a2b947a347f79d634f740bde1838e6fa95bac40.tar.gz gentoo-2-7a2b947a347f79d634f740bde1838e6fa95bac40.tar.bz2 gentoo-2-7a2b947a347f79d634f740bde1838e6fa95bac40.zip |
Added fix for high cpu usage when compiled with --disable-audio.
(Portage version: 2.1.2.7)
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/e-uae/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/e-uae/e-uae-0.8.29_rc4-r1.ebuild | 142 | ||||
-rw-r--r-- | app-emulation/e-uae/files/digest-e-uae-0.8.29_rc4-r1 | 3 | ||||
-rw-r--r-- | app-emulation/e-uae/files/e-uae-0.8.29_rc4-high-cpu-usage.patch | 18 |
4 files changed, 170 insertions, 1 deletions
diff --git a/app-emulation/e-uae/ChangeLog b/app-emulation/e-uae/ChangeLog index 21acfe397d5a..4848912db66d 100644 --- a/app-emulation/e-uae/ChangeLog +++ b/app-emulation/e-uae/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/e-uae # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/e-uae/ChangeLog,v 1.37 2007/05/09 20:18:47 kevquinn Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/e-uae/ChangeLog,v 1.38 2007/05/26 10:23:38 pva Exp $ + +*e-uae-0.8.29_rc4-r1 (26 May 2007) + + 26 May 2007; <pva@gentoo.org> + +files/e-uae-0.8.29_rc4-high-cpu-usage.patch, +e-uae-0.8.29_rc4-r1.ebuild: + Added fix for high cpu usage when compiled with --disable-audio. 09 May 2007; Kevin F. Quinn <kevquinn@gentoo.org> e-uae-0.8.28-r3.ebuild, e-uae-0.8.29_rc4.ebuild: diff --git a/app-emulation/e-uae/e-uae-0.8.29_rc4-r1.ebuild b/app-emulation/e-uae/e-uae-0.8.29_rc4-r1.ebuild new file mode 100644 index 000000000000..2f9b3de39971 --- /dev/null +++ b/app-emulation/e-uae/e-uae-0.8.29_rc4-r1.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/e-uae/e-uae-0.8.29_rc4-r1.ebuild,v 1.1 2007/05/26 10:23:38 pva Exp $ + +inherit eutils flag-o-matic pax-utils + +DESCRIPTION="The Ubiquitous Amiga Emulator with an emulation core largely based on WinUAE" +HOMEPAGE="http://www.rcdrummond.net/uae/" +# We support _rcX for WIPX versions and _preYYYYMMDD for CVS snapshots. +if [[ "${PV%%_rc*}" = "${PV}" ]] ; then + # _pre is used, cvs version + my_ver=${PV%%_pre*} + snap_ver=${PV##*_pre} + S="${WORKDIR}"/${PN}-${my_ver}-${snap_ver} + SRC_URI="http://www.rcdrummond.net/uae/test/${snap_ver}/${PN}-${my_ver}-${snap_ver}.tar.bz2" +else + my_ver=${PV%%_rc*} + WIP_ver=${PV##*_rc} + S="${WORKDIR}"/${PN}-${my_ver}-WIP${WIP_ver} + SRC_URI="http://www.rcdrummond.net/uae/${PN}-${my_ver}-WIP${WIP_ver}/${PN}-${my_ver}-WIP${WIP_ver}.tar.bz2" +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="X dga ncurses sdl gtk alsa oss sdl-sound capslib" + +# Note: opposed to ./configure --help zlib support required! Check +# src/Makefile.am that includes zfile.c unconditionaly. +RDEPEND="X? ( || ( ( x11-libs/libXt + x11-libs/libxkbfile + x11-libs/libXext + dga? ( x11-libs/libXxf86dga + x11-libs/libXxf86vm ) + ) + virtual/x11 + ) + ) + !X? ( sdl? ( media-libs/libsdl ) + !sdl? ( sys-libs/ncurses ) ) + alsa? ( media-libs/alsa-lib ) + !alsa? ( sdl-sound? ( media-libs/sdl-sound ) ) + gtk? ( >=x11-libs/gtk+-2.0 ) + capslib? ( >=games-emulation/caps-20060612 ) + sys-libs/zlib + virtual/cdrtools" + +DEPEND="$RDEPEND + X? ( dga? ( x11-proto/xf86vidmodeproto + x11-proto/xf86dgaproto ) )" + +pkg_setup() { + # Sound setup. + if use alsa; then + elog "Choosing alsa as sound target to use." + myconf="--with-alsa --without-sdl-sound" + elif use sdl-sound ; then + if ! use sdl ; then + ewarn "sdl-sound is not enabled because sdl USE flag is disabled. Leaving" + ewarn "sound on oss autodetection." + myconf="--without-alsa --without-sdl-sound" + ebeep + else + elog "Choosing sdl-sound as sound target to use." + ewarn "E-UAE with the SDL audio back-end doesn't work correctly in Linux." + ewarn "Better use alsa... You've been warned ;)" + ebeep + myconf="--without-alsa --with-sdl-sound" + fi + elif use oss ; then + elog "Choosing oss as sound target to use." + ewarn "oss will be autodetected. See output of configure." + myconf="--without-alsa --without-sdl-sound" + else + ewarn "There is no alsa, sdl-sound or oss in USE. Sound target disabled!" + myconf="--disable-audio" + fi + + # VIDEO setup. X is autodetected (there is no --with-X option). + if use X ; then + elog "Using X11 for video output." + ewarn "Fullscreen mode is not working in X11 currently. Use sdl." + myconf="$myconf --without-curses --without-sdl-gfx" + use dga && ewarn "To use dga you have to run e-uae as root." + use dga && myconf="$myconf --enable-dga --enable-vidmode" + elif use sdl ; then + elog "Using sdl for video output." + myconf="$myconf --with-sdl --with-sdl-gfx --without-curses" + elif use ncurses; then + elog "Using ncurses for video output." + myconf="$myconf --with-curses --without-sdl-gfx" + else + ewarn "There is no X or sdl or ncurses in USE!" + ewarn "Following upstream falling back on ncurses." + myconf="$myconf --with-curses --without-sdl-gfx" + ebeep + fi + + use gtk && myconf="$myconf --enable-ui --enable-threads" + use gtk || myconf="$myconf --disable-ui" + + myconf="$myconf $(use_with capslib caps)" + + myconf="$myconf --with-zlib" + + # And explicitly state defaults: + myconf="$myconf --enable-aga" + myconf="$myconf --enable-autoconfig --enable-scsi-device --enable-cdtv --enable-cd32" + myconf="$myconf --enable-bsdsock" +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix for high cpu use when compiled with --disable-audio + use alsa || use sdl-sound || use oss || epatch "${FILESDIR}"/${P}-high-cpu-usage.patch +} + +src_compile() { + strip-flags + + econf ${myconf} \ + --with-libscg-includedir=/usr/include/scsilib \ + || die "./configure failed" + + emake -j1 || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + # The emulator needs to be able to create executable heap + # - doesn't need trampoline emulation though. + pax-mark me "${D}/usr/bin/uae" + + # Rename it to e-uae + mv "${D}/usr/bin/uae" "${D}/usr/bin/${PN}" + mv "${D}/usr/bin/readdisk" "${D}/usr/bin/e-readdisk" + + dodoc docs/* README ChangeLog +} diff --git a/app-emulation/e-uae/files/digest-e-uae-0.8.29_rc4-r1 b/app-emulation/e-uae/files/digest-e-uae-0.8.29_rc4-r1 new file mode 100644 index 000000000000..e00c4dc480f7 --- /dev/null +++ b/app-emulation/e-uae/files/digest-e-uae-0.8.29_rc4-r1 @@ -0,0 +1,3 @@ +MD5 cbfd7e3d7a1b323331afbb92ea7ff4f0 e-uae-0.8.29-WIP4.tar.bz2 1122718 +RMD160 823810cd4c41ee31c394fcea9302f4ca680f0567 e-uae-0.8.29-WIP4.tar.bz2 1122718 +SHA256 9828cb0fca783160bcb33900d0254f4bdaade1c9a41256e5f298e973d0c07456 e-uae-0.8.29-WIP4.tar.bz2 1122718 diff --git a/app-emulation/e-uae/files/e-uae-0.8.29_rc4-high-cpu-usage.patch b/app-emulation/e-uae/files/e-uae-0.8.29_rc4-high-cpu-usage.patch new file mode 100644 index 000000000000..ba005cece1ac --- /dev/null +++ b/app-emulation/e-uae/files/e-uae-0.8.29_rc4-high-cpu-usage.patch @@ -0,0 +1,18 @@ +Index: src/sd-none/sound.c +=================================================================== +RCS file: /cvsroot/uaedev/uae/src/sd-none/sound.c,v +retrieving revision 1.4 +diff -u -r1.4 sound.c +--- src/sd-none/sound.c 15 Feb 2007 04:47:38 -0000 1.4 ++++ src/sd-none/sound.c 25 May 2007 14:47:35 -0000 +@@ -30,10 +30,6 @@ + { + } + +-void update_sound (int freq) +-{ +-} +- + void reset_sound (void) + { + } |