diff options
author | 2006-03-26 07:26:45 +0000 | |
---|---|---|
committer | 2006-03-26 07:26:45 +0000 | |
commit | 862effc4f488d08251efa2c058ce2cf957c87e8e (patch) | |
tree | 4a2f8de185231d92c4cf5f15131e4638219342ca /games-roguelike/crossfire-client/crossfire-client-1.9.0.ebuild | |
parent | (#127452) Add evieext to RDEPEND. (diff) | |
download | historical-862effc4f488d08251efa2c058ce2cf957c87e8e.tar.gz historical-862effc4f488d08251efa2c058ce2cf957c87e8e.tar.bz2 historical-862effc4f488d08251efa2c058ce2cf957c87e8e.zip |
version bump
Package-Manager: portage-2.1_pre6-r7
Diffstat (limited to 'games-roguelike/crossfire-client/crossfire-client-1.9.0.ebuild')
-rw-r--r-- | games-roguelike/crossfire-client/crossfire-client-1.9.0.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/games-roguelike/crossfire-client/crossfire-client-1.9.0.ebuild b/games-roguelike/crossfire-client/crossfire-client-1.9.0.ebuild new file mode 100644 index 000000000000..5678d328e97e --- /dev/null +++ b/games-roguelike/crossfire-client/crossfire-client-1.9.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/crossfire-client/crossfire-client-1.9.0.ebuild,v 1.1 2006/03/26 07:26:45 mr_bones_ Exp $ + +inherit games + +DESCRIPTION="Client for the nethack-style but more in the line of UO" +HOMEPAGE="http://crossfire.real-time.com/" +SRC_URI="mirror://sourceforge/crossfire/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~x86" +IUSE="alsa gtk oss sdl" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + gtk? ( >=x11-libs/gtk+-2 + sdl? ( media-libs/libsdl + media-libs/sdl-image ) ) + virtual/glut + media-libs/libpng + sys-libs/zlib" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -r 's:TH (g?)cfclient:TH \1cfclient 6:' \ + {gtk,x11}/*cfclient.man \ + || die "sed failed" +} + +src_compile() { + # bugs in configure script so we cant use $(use_enable ...) + local myconf="--disable-dependency-tracking" + + if use gtk ; then + use sdl || myconf="${myconf} --disable-sdl" + else + myconf="${myconf} --disable-gtk" + fi + if ! use alsa ; then + myconf="${myconf} --disable-alsa9 --disable-alsa" + fi + if ! use alsa && ! use oss ; then + myconf="${myconf} --disable-sound" + fi + egamesconf ${myconf} || die + emake -j1 -C sound-src || die "sound building failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog README TODO + prepgamesdirs +} |