# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games MY_P=${PN} DESCRIPTION="A fast-paced first-person-perspective online multiplayer game" HOMEPAGE="http://hosted.tribalwar.com/legends/" SRC_URI="http://hosted.tribalwar.com/legends/files/legends.tar.gz" LICENSE="TGE" SLOT="0" KEYWORDS="x86" RESTRICT="nomirror nostrip" IUSE="" DEPEND="" RDEPEND=">=media-libs/libsdl-1.2 media-libs/openal" S=${WORKDIR}/${MY_P} src_unpack() { mkdir ${MY_P} cd ${MY_P} unpack ${A} rm runlegends libSDL-*.so* libopenal.so chmod -R a-x * chmod a+x common legends show ispawn lindedicated LinLegends } src_compile() { echo "#!/bin/bash" > ${T}/${PN} echo "cd ${GAMES_PREFIX_OPT}/${MY_P}" >> ${T}/${PN} echo "./LinLegends \$*" >> ${T}/${PN} echo "#!/bin/bash" > ${T}/${PN}-ded echo "cd ${GAMES_PREFIX_OPT}/${MY_P}" >> ${T}/${PN}-ded echo "./lindedicated \$*" >> ${T}/${PN}-ded } src_install() { dodir ${GAMES_PREFIX_OPT}/${MY_P} cp -R * ${D}/${GAMES_PREFIX_OPT}/${MY_P}/ dogamesbin ${T}/${PN} dogamesbin ${T}/${PN}-ded prepgamesdirs }