| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-emulation/dgen-sdl/dgen-sdl-1.30.ebuild,v 1.4 2012/06/13 19:20:17 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit games
|
| 7 |
|
| 8 |
DESCRIPTION="A Linux/SDL-Port of the famous DGen MegaDrive/Genesis-Emulator"
|
| 9 |
HOMEPAGE="http://dgen.sourceforge.net/"
|
| 10 |
SRC_URI="mirror://sourceforge/dgen/files/${P}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="dgen-sdl BSD BSD-2 free-noncomm LGPL-2.1+ GPL-2+"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 x86"
|
| 15 |
IUSE="joystick opengl"
|
| 16 |
|
| 17 |
RDEPEND="media-libs/libsdl[joystick?]
|
| 18 |
app-arch/libarchive
|
| 19 |
opengl? ( virtual/opengl )"
|
| 20 |
DEPEND="${RDEPEND}
|
| 21 |
x86? ( dev-lang/nasm )"
|
| 22 |
|
| 23 |
src_configure() {
|
| 24 |
egamesconf \
|
| 25 |
--disable-dependency-tracking \
|
| 26 |
$(use_enable x86 asm) \
|
| 27 |
$(use_enable joystick) \
|
| 28 |
$(use_enable opengl)
|
| 29 |
}
|
| 30 |
|
| 31 |
src_compile() {
|
| 32 |
emake -C musa m68kops.h || die
|
| 33 |
emake || die
|
| 34 |
}
|
| 35 |
|
| 36 |
src_install() {
|
| 37 |
emake DESTDIR="${D}" install || die
|
| 38 |
dodoc AUTHORS ChangeLog README sample.dgenrc
|
| 39 |
prepgamesdirs
|
| 40 |
}
|