# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ DESCRIPTION="A multi-player 2D client/server space game." HOMEPAGE="http://www.xpilot.org/" LICENSE="GPL-2" DEPEND="x11-base/xfree" RDEPEND=${DEPEND} SLOT="0" SRC_URI="ftp://ftp.xpilot.org/pub/xpilot/${P}.tar.gz" S=${WORKDIR}/${P} src_compile() { cp Local.config Local.config.orig sed -e "s:/usr/local:/usr:" \ -e "s:/man/man:/share/man/man:" \ Local.config.orig > Local.config # the stuff xpilot puts it /usr/lib should go # in /usr/share , but I'm leaving it for now. xmkmf || die "xmkmf Makefile creation failed" make Makefiles local f for f in `find . -type f -regex .*Makefile`; do cp $f $f.orig sed -e "s:CDEBUGFLAGS = -O:CDEBUGFLAGS = ${CFLAGS}:" \ $f.orig > $f done make includes || die make depend || die emake || make || die } src_install () { make DESTDIR=${D} install || die make DESTDIR=${D} install.man || die }