linamh/games-engines/gemrb/gemrb-0.6.0.ebuild
2010-05-09 07:54:00 +00:00

59 lines
1.2 KiB
Bash

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-engines/gemrb/gemrb-0.6.0.ebuild,v 1.3 2010/04/27 08:48:06 tupone Exp $
PYTHON_DEPEND="2"
EAPI=2
inherit autotools eutils python games
DESCRIPTION="Reimplementation of the Infinity engine"
HOMEPAGE="http://gemrb.sourceforge.net/"
SRC_URI="mirror://sourceforge/gemrb/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc"
DEPEND=">=media-libs/libsdl-1.2
sys-libs/zlib
media-libs/libvorbis
media-libs/libpng
media-libs/openal"
pkg_setup() {
python_set_active_version 2
games_pkg_setup
}
src_prepare() {
sed -i \
-e 's|\$(bindir)/plugins/|\$(libdir)/|' \
Makefile.am \
|| die "sed failed"
sed -i \
-e '/NullSound/d' \
gemrb/plugins/Makefile.am \
|| die "sed failed"
sed -i \
-e '/sysconf_DATA = /d' \
gemrb/Makefile.am \
|| die "sed failed"
eautoreconf
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
--docdir="/usr/share/doc/${PF}"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
diropts -m0775 -g ${GAMES_GROUP}
keepdir "/var/cache/gemrb"
dodoc "${FILESDIR}/GemRB.cfg.sample" README AUTHORS
prepalldocs
prepgamesdirs
}