# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A stragegy game" HOMEPAGE="http://machinations.sourceforge.net/" SRC_URI="http://machinations.sourceforge.net/mach${PV/0./}_src.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="virtual/opengl >=media-libs/devil-1.6 >=media-libs/openal-20040817" RDEPEND="virtual/x11" S=${WORKDIR}/src src_unpack() { unpack ${A} cd ${S} # remove the include dir, we don't want to use different headers than we have installed. Therefore # enhance the Makefile to find the libs rm -rf include sed -i \ -e "s/-I\/usr\/local\/include/-I\/usr\/include/g" linux/makefile # copy the makefile to the base dir cp linux/makefile Makefile # fix case problem mv Glext.h glext.h # fix build warning echo "" >> gamedefs.h # fix some errors epatch ${FILESDIR}/${P}.patch || die "epatch failed" } src_compile() { make || die "make failed" } src_install() { make install || die "make install failed" }