# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="e-uae-0.8.28-RC2" DESCRIPTION="The Eggplant Ubiquitous Amiga Emulator" HOMEPAGE="http://www.rcdrummond.net/uae/" SRC_URI="http://www.rcdrummond.net/uae/${MY_P}/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="X gtk sdl ncurses svga" RESTRICT="nomirror" DEPEND="virtual/libc X? ( virtual/x11 gtk? ( >=x11-libs/gtk+-2.0.0 ) ) !X? ( ncurses? ( sys-libs/ncurses ) svga? ( media-libs/svgalib ) ) sdl? ( media-libs/libsdl ) app-cdr/cdrtools games-emulation/caps" S="${WORKDIR}/${MY_P}" src_unpack() { unpack ${A} cd "${S}" } src_compile() { use ppc && strip-flags "-maltivec" "-mabi=altivec" use sdl && myconf="--with-sdl-sound --with-sdl-gfx" export WANT_AUTOMAKE=1.7 export WANT_AUTOCONF=2.5 ./bootstrap.sh || die "bootstrap failed" econf ${myconf} \ --enable-threads \ --enable-cdtv \ --enable-cd32 \ --enable-scsi-device \ --enable-bsdsock-new \ --with-libscg-includedir=/usr/include/scsilib \ || die "./configure failed" emake -j1 || die "emake failed" } src_install() { dodoc docs/* dodoc README COPYING ChangeLog CHANGES make install DESTDIR=${D} # Rename executables, to prevent conflict with uae ebuild mv ${D}/usr/bin/uae ${D}/usr/bin/e-uae mv ${D}/usr/bin/readdisk ${D}/usr/bin/e-readdisk }