You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.4 KiB
64 lines
1.4 KiB
13 years ago
|
# Copyright 1999-2007 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b.ebuild,v 1.9 2009/04/14 07:28:49 mr_bones_ Exp $
|
||
|
|
||
|
inherit eutils games
|
||
|
|
||
|
MY_P="wolfspdemo-linux-${PV}.x86.run"
|
||
|
|
||
|
DESCRIPTION="Return to Castle Wolfenstein - Single-player demo"
|
||
|
HOMEPAGE="http://games.activision.com/games/wolfenstein/"
|
||
|
SRC_URI="mirror://idsoftware/wolf/linux/old/${MY_P}
|
||
|
mirror://3dgamers/returnwolfenstein/${MY_P}"
|
||
|
|
||
|
LICENSE="RTCW"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="-* amd64 x86"
|
||
|
IUSE=""
|
||
|
RESTRICT="strip mirror"
|
||
|
PROPERTIES="interactive"
|
||
|
|
||
|
RDEPEND="sys-libs/glibc
|
||
|
virtual/opengl
|
||
|
x86? (
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXext
|
||
|
x11-libs/libXau
|
||
|
x11-libs/libXdmcp )
|
||
|
amd64? (
|
||
|
app-emulation/emul-linux-x86-xlibs )"
|
||
|
|
||
|
S=${WORKDIR}
|
||
|
|
||
|
GAMES_CHECK_LICENSE="yes"
|
||
|
dir=${GAMES_PREFIX_OPT}/${PN}
|
||
|
Ddir=${D}/${dir}
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack_makeself ${A} || die "Unpacking files"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
insinto "${dir}"
|
||
|
doins -r demomain Docs
|
||
|
|
||
|
exeinto "${dir}"
|
||
|
doexe bin/x86/wolfsp.x86 openurl.sh || die "copying exe"
|
||
|
|
||
|
games_make_wrapper ${PN} ./wolfsp.x86 "${dir}" "${dir}"
|
||
|
|
||
|
doins WolfSP.xpm CHANGES
|
||
|
newicon WolfSP.xpm ${PN}.xpm
|
||
|
|
||
|
prepgamesdirs
|
||
|
make_desktop_entry ${PN} "Return to Castle Wolfenstein (SP demo)" \
|
||
|
${PN}.xpm
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
games_pkg_postinst
|
||
|
elog "Install 'rtcwmp-demo' for multi-player"
|
||
|
elog
|
||
|
elog "Run '${PN}' for single-player"
|
||
|
}
|