# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Multi player, real time, 3D, labyrinth, run & shoot game" HOMEPAGE="http://home.tu-clausthal.de/student/iMaze/" # The ebuild x11/xview does not provide headers nor libraries and we # need it in order to have Xview widget support (Bug #36911) so i made # a tarball with Xview headers... a non elegant solution. :-/ SRC_URI="http://home.tu-clausthal.de/student/iMaze/files/${P}.tar.gz X? ( http://www.tacvbo.net/pub/Gentoo/distfiles/xview-3.2p1.4-headers.tbz2 )" KEYWORDS="~x86" LICENSE="BSD" SLOT="0" # The ipv6 support its buggy :( #IUSE="X Xaw3d motif joystick ipv6" IUSE="X Xaw3d motif joystick" S=${WORKDIR}/${P}/source MY_XV_HEADERS="${WORKDIR}/xview-headers" RDEPEND="virtual/glibc" DEPEND="virtual/x11 || ( motif? ( virtual/motif ) Xaw3d? ( x11-libs/Xaw3d ) X? ( x11-libs/xview ) )" src_unpack() { unpack ${A} cd ${S} mv Makefile.in Makefile.orig sed -e s:'DEFINES=-DDEFAULT_SOUND_DIR=\\"`pwd`/../sounds\\"':\ 'DEFINES=-DDEFAULT_SERVER=\\"localhost\\" -DDEFAULT_SOUND_DIR=\\"/usr/share/games/imaze/sounds\\"':\ Makefile.orig > Makefile.in # if [ -n "`use ipv6`" ]; then # epatch ${FILESDIR}/${P}-ipv6patch.diff.gz # fi } src_compile() { local myconf use X \ && myconf="${myconf} XViewCFlags=-I${MY_XV_HEADERS}/include XViewLFlags=-L${MY_XV_HEADERS}/lib xview" \ || myconf="${myconf}" use Xaw3d \ && myconf="${myconf} athena" \ || myconf="${myconf}" use motif \ && myconf="${myconf} motif" \ || myconf="${myconf}" use joystick \ && myconf="${myconf} joystick" \ || myconf="${myconf} nojoystick" # use ipv6 \ # && myconf="${myconf} ipv6" \ # || myconf="${myconf}" ./configure \ ${myconf} || die emake \ DEFAULTS='-DDEFAULT_SERVER=\"localhost\" -DDEFAULT_SOUND_DIR=\"/usr/share/games/imaze/sounds\"' \ || die "emake failed" } src_install() { dogamesbin genlab imaze imazesrv imazestat ninja xlabed || die "dobin failed" dodoc ../README || die "dodoc failed" doman ../man6/*6 || die "doman failed" dodir ${GAMES_DATADIR}/${PN}/labs || die "dodir failed" insinto ${GAMES_DATADIR}/${PN}/labs doins ../labs/*lab || die "doins failed" dodir ${GAMES_DATADIR}/${PN}/sounds || die "dodir failed" insinto ${GAMES_DATADIR}/${PN}/sounds doins ../sounds/*au || die "doins failed" prepgamesdirs }