You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/fceux/fceux-2.2.2.ebuild,v 1.1 2014/12/31 07:53:54 mr_bones_ Exp $
EAPI=5
inherit eutils scons-utils games
DESCRIPTION="A portable Famicom/NES emulator, an evolution of the original FCE Ultra"
HOMEPAGE="http://fceux.com/"
SRC_URI="mirror://sourceforge/fceultra/${P}.src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk +lua +opengl"
DEPEND="lua? ( dev-lang/lua )
media-libs/libsdl[opengl?,video]
opengl? ( virtual/opengl )
gtk? ( x11-libs/gtk+:3 )
sys-libs/zlib[minizip]"
RDEPEND=${DEPEND}
src_prepare() {
epatch "${FILESDIR}"/${P}-warnings.patch
}
src_compile() {
escons \
GTK=0 \
CREATE_AVI=1 \
SYSTEM_LUA=1 \
SYSTEM_MINIZIP=1 \
$(use_scons gtk GTK3) \
$(use_scons opengl OPENGL) \
$(use_scons lua LUA)
}
src_install() {
dogamesbin bin/fceux
doman documentation/fceux.6
docompress -x /usr/share/doc/${PF}/documentation /usr/share/doc/${PF}/fceux.chm
dodoc -r Authors changelog.txt TODO-SDL bin/fceux.chm documentation
rm -f "${D}/usr/share/doc/${PF}/documentation/fceux.6"
make_desktop_entry fceux FCEUX
doicon fceux.png
prepgamesdirs
}