e476c021f4
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1456 6952d904-891a-0410-993b-d76249ca496b
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Copyright 1999-2007 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
inherit autotools eutils games subversion
|
|
|
|
DESCRIPTION="Reimplementation of the Infinity engine"
|
|
HOMEPAGE="http://gemrb.sourceforge.net/"
|
|
#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
|
|
ESVN_REPO_URI="https://gemrb.svn.sourceforge.net/svnroot/gemrb/gemrb/trunk"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
#KEYWORDS="~amd64 ~x86"
|
|
IUSE="doc"
|
|
|
|
DEPEND=">=media-libs/libsdl-1.2
|
|
media-libs/openal
|
|
>=dev-lang/python-2.3"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_unpack() {
|
|
subversion_src_unpack ${A}
|
|
cd "${S}"
|
|
sed -i 's|\$(bindir)/plugins/|\$(libdir)/|' \
|
|
Makefile.am || die "move plugindir failed"
|
|
sed -i '/NullSound/d' \
|
|
gemrb/plugins/Makefile.am || die "enable sound failed"
|
|
sed -i '/sysconf_DATA = GemRB.cfg.sample GemRB.cfg.subdir.sample/d' \
|
|
gemrb/Makefile.am || die "remove default config failed"
|
|
if ! use doc ; then
|
|
sed -i 's|^SUBDIRS = \(.*\) docs|SUBDIRS = \1|' \
|
|
gemrb/Makefile.am || die "don't install docs failed"
|
|
fi
|
|
eautoreconf || die "eautoreconf failed"
|
|
}
|
|
|
|
src_compile() {
|
|
egamesconf \
|
|
--docdir="/usr/share/doc/${PF}" \
|
|
|| die "egamesconf failed"
|
|
emake || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die "install failed"
|
|
libtool --finish "${GAMES_LIBDIR}"
|
|
diropts -m0775 -g ${GAMES_GROUP}
|
|
keepdir "/var/cache/gemrb"
|
|
dodoc "${FILESDIR}/GemRB.cfg.sample"
|
|
dodoc README AUTHORS
|
|
prepgamesdirs
|
|
}
|