# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils cmake-utils games DESCRIPTION="OpenMW: an Open Source Morrowind engine" HOMEPAGE="http://openmw.org/" SRC_URI="https://openmw.googlecode.com/files/openmw-${PV}-source.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" S="${WORKDIR}/zinnschlag-${PN}-94498f5" #S="${WORKDIR}/${PN}-${PV}-source" RDEPEND="media-sound/mpg123 media-libs/libsndfile =dev-games/ogre-1.8*[boost,cg,freeimage,ois,opengl,threads,zip] dev-games/mygui[ogre] sci-physics/bullet dev-games/ois games-rpg/morrowind-data" DEPEND="${RDEPEND}" src_configure() { cmake-utils_src_configure } src_compile() { cmake-utils_src_make } src_install() { cd "${WORKDIR}/${P}_build" dogamesbin esmtool dogamesbin omwlauncher dogamesbin openmw dogamesbin mwiniimport prepgamesdirs sed -i \ -e 's:data=./data:data=/opt/morrowind:' \ -e 's:resources=./resources:resources=/usr/share/games/openmw/resources:' \ openmw.cfg dodir /usr/share/games/openmw/resources insinto /usr/share/games/openmw/resources doins resources/* dodir /usr/share/games/openmw/resources/mygui insinto /usr/share/games/openmw/resources/mygui doins resources/mygui/* dodir /usr/share/games/openmw/resources/shadows insinto /usr/share/games/openmw/resources/shadows doins resources/shadows/* dodir /usr/share/games/openmw/resources/water insinto /usr/share/games/openmw/resources/water doins resources/water/* dodir /usr/share/games/openmw/resources/gbuffer insinto /usr/share/games/openmw/resources/gbuffer doins resources/gbuffer/* dodir /etc/openmw insinto /etc/openmw doins settings-default.cfg doins transparency-overrides.cfg doins openmw.cfg doins plugins.cfg }