# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" HOMEPAGE="http://www.urbanterror.net/" SRC_URI="ftp://ftp.snt.utwente.nl/pub/games/urbanterror/iourbanterror/source/complete/ioUrbanTerrorSource_2007_12_20.zip ftp://ftp.snt.utwente.nl/pub/games/urbanterror/UrbanTerror_41_FULL.zip http://files.uaaportal.com/gamefiles/current-version/UrbanTerror_41_FULL.zip" LICENSE="freedist" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND="net-misc/curl media-libs/libsdl media-libs/openal virtual/opengl" S=${WORKDIR} src_unpack() { unpack ${A} } src_compile() { cd "${S}"/ioUrbanTerrorClientSource emake || die "emake client failed" cd "${S}"/ioUrbanTerrorServerSource emake || die "emake server failed" } src_install() { use amd64 && ARCH=amd64 use x86 && ARCH=i386 cd "${S}" dogamesbin ioUrbanTerrorClientSource/build/release-linux-${ARCH}/ioUrbanTerror.${ARCH} dogamesbin ioUrbanTerrorServerSource/build/release-linux-${ARCH}/ioUrTded.${ARCH} games_make_wrapper urbanterror "${GAMES_BINDIR}/ioUrbanTerror.${ARCH} +set fs_basepath ${GAMES_DATADIR}/${PN}" ${GAMES_DATADIR}/${PN} games_make_wrapper urbanterrorded "${GAMES_BINDIR}/ioUrTded.${ARCH} +set fs_basepath ${GAMES_DATADIR}/${PN}" ${GAMES_DATADIR}/${PN} cd "${S}"/UrbanTerror/q3ut4 dodoc readme41.txt doicon q3ut.ico insinto "${GAMES_DATADIR}"/${PN}/q3ut4 doins -r *.pk3 autoexec.cfg demos/ description.txt mapcycle.txt screenshots/ server.cfg make_desktop_entry urbanterror "UrbanTerror" q3ut.ico prepgamesdirs }