# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-engines/exult/exult-1.2.ebuild,v 1.6 2006/05/05 06:21:55 tupone Exp $ inherit eutils games DESCRIPTION="an Ultima 7 game engine that runs on modern operating systems" HOMEPAGE="http://exult.sourceforge.net/" SRC_URI="mirror://sourceforge/exult/${P}.tar.gz mirror://sourceforge/exult/U7MusicOGG_1of2.zip mirror://sourceforge/exult/U7MusicOGG_2of2.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ppc ~sparc x86" IUSE="3dnow mmx timidity zlib" RDEPEND=">=media-libs/libsdl-1.2 >=media-libs/sdl-mixer-1.2.4 media-libs/smpeg media-libs/libogg media-libs/libvorbis timidity? ( >=media-sound/timidity++-2 ) zlib? ( sys-libs/zlib )" DEPEND="${RDEPEND} app-arch/unzip" # upstream says... "the opengl renderer is very very experimental and # not recommended for actual use" #opengl? ( virtual/opengl ) src_unpack() { unpack ${P}.tar.gz mkdir music/ cd music/ unpack U7MusicOGG_{1,2}of2.zip cd "${S}" epatch "${FILESDIR}/${P}"-gcc41.patch sed -i \ -e "s/u7siinstrics.data/u7siintrinsics.data/" \ usecode/ucxt/data/Makefile.in \ || die "sed usecode/ucxt/data/Makefile.in failed" # This fix is needed for gimp-plugin support if we want to turn that on. #sed -i \ #-e 's/$(DESTDIR)$(GIMP_PLUGINS) /$(GIMP_PLUGINS) $(DESTDIR)/' \ #mapedit/Makefile.in \ #|| die "sed mapedit/Makefile.in failed" } src_compile() { egamesconf \ --disable-dependency-tracking \ --disable-tools \ --disable-opengl \ $(use_enable 3dnow) \ $(use_enable mmx) \ $(use_enable timidity) \ $(use_enable zlib zip-support) \ || die emake || die "emake failed" } src_install() { make DESTDIR="${D}" \ desktopdir=/usr/share/applications/ \ icondir=/usr/share/icons \ install || die "make install failed" # no need for this directory for just playing the game rm -rf "${D}${GAMES_DATADIR}/${PN}/estudio" dodoc AUTHORS ChangeLog NEWS FAQ README README.1ST insinto "${GAMES_DATADIR}/${PN}/music" doins "${WORKDIR}/music/"*ogg || die "doins failed" newdoc "${WORKDIR}/music/readme.txt" music-readme.txt prepgamesdirs } pkg_postinst() { games_pkg_postinst echo if use timidity ; then einfo "To hear music in exult, you have to install a timidity-patch." einfo "Try this:" einfo " $ emerge timidity-eawpatches" einfo "kernel drivers. Install alsa instead." echo fi einfo "You *must* have the original Ultima7 The Black Gate and/or" einfo "The Serpent Isle installed. " einfo "See /usr/share/doc/${PF}/README.gz for information!" }