# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-emulation/advancemame/advancemame-0.63.0.ebuild,v 1.4 2003/02/28 23:21:37 vapier Exp $ inherit eutils # This build we configure to explicitly use SDL, as it is very # difficult to get it working with fb or svgalib support. Anyway, # it do not look as good ;-) MY_PV="$(echo ${PV} | cut -d. -f1,2)" S="${WORKDIR}/daphne" DESCRIPTION="Laserdisc Arcade Game Emulator" SRC_URI="http://www.xmission.com/~redflame/daphne/download/daphne-0.99.5-src.zip" HOMEPAGE="http://www.daphne-emu.com/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 -ppc -mips" RDEPEND="virtual/glibc media-libs/libogg media-libs/libvorbis sys-libs/zlib media-libs/libsdl media-libs/sdl-mixer" DEPEND="${RDEPEND} sys-kernel/linux-headers" src_unpack() { mkdir -p ${S} cd ${S} unpack ${A} cd ${S}/src cp -f Makefile Makefile.patched # The change "s:DFLAGS =:#DFLAGS =:g" is needed because without it daphne won't compile. # But don't ask me why :) # The var CFLAGS2 is set because daphne try to use a proprietary CFLAGS sed -e 's:g++-3.0:gcc:g' \ -e 's:${DFLAGS}:${CFLAGS2}:g' \ -e 's:DFLAGS =:#DFLAGS =:g' Makefile.patched > Makefile rm -f Makefile.patched cd ${S}/src/vldp sed -e 's:gcc-3.0:gcc:g' Makefile.linux > Makefile } src_compile() { local myconf="" export CFLAGS2=$CFLAGS cd ${S}/src emake || die cd ${S}/src/vldp emake || die } src_install() { # The install script do not create this one dodir /usr/bin cd ${S} dobin daphne dolib libvldp.so }