# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games 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="" RDEPEND="virtual/x11 virtual/opengl >=media-libs/openal-20040817 >=media-libs/glfw-2.4" DEPEND="${RDEPEND} app-arch/unzip >=media-libs/devil-1.6" 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 \ || die "sed failed" # 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 } src_install() { make install || die "make install failed" }