# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/quake3-1.32b-r3.ebuild,v 1.14 2004/08/15 06:15:35 vapier Exp $ inherit games DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter" HOMEPAGE="http://www.idsoftware.com/" SRC_URI="ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3apoint-${PV}-3.x86.run" LICENSE="Q3AEULA" SLOT="0" KEYWORDS="-* x86 amd64" IUSE="dedicated X opengl" RESTRICT="nostrip" RDEPEND="virtual/libc opengl? ( virtual/opengl ) X? ( virtual/x11 ) dedicated? ( app-misc/screen ) amd64? ( app-emulation/emul-linux-x86-baselibs app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-nvidia )" S=${WORKDIR} dir=${GAMES_PREFIX_OPT}/${PN} Ddir=${D}/${dir} pkg_setup() { check_license games_pkg_setup } src_unpack() { unpack_makeself } src_install() { dodir ${dir} insinto ${dir}/baseq3 doins baseq3/*.pk3 mv Docs ${Ddir}/ insinto ${dir}/missionpack doins missionpack/*.pk3 mv pb ${Ddir}/ exeinto ${dir} insinto ${dir} doexe bin/Linux/x86/{quake3.x86,q3ded} doins quake3.xpm README* Q3A_EULA.txt games_make_wrapper quake3 ./quake3.x86 ${dir} games_make_wrapper q3ded ./q3ded ${dir} exeinto /etc/init.d ; newexe ${FILESDIR}/q3ded.rc q3ded insinto /etc/conf.d ; newins ${FILESDIR}/q3ded.conf.d q3ded insinto /usr/share/pixmaps doins ${FILESDIR}/quake3.png #doins quake3.xpm prepgamesdirs make_desktop_entry quake3 "Quake III Arena" quake3.png } pkg_postinst() { games_pkg_postinst einfo "You need to copy pak0.pk3 from your Quake3 CD into ${dir}/baseq3." einfo "Or if you have got a Window installation of Q3 make a symlink to save space." echo einfo "To start a dedicated server, run" einfo "\t/etc/init.d/q3ded start" echo einfo "The dedicated server is started under the ${GAMES_USER_DED} user account." # IA32 Emulation required for amd64 if use amd64 ; then echo ewarn "NOTE: IA32 Emulation must be compiled into your kernel for Quake3 to run." fi }