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.
70 lines
1.7 KiB
70 lines
1.7 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
inherit eutils unpacker
|
||
|
|
||
|
MY_P="wolfmpdemo-linux-${PV}-MP.x86.run"
|
||
|
|
||
|
DESCRIPTION="Return to Castle Wolfenstein - Multi-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 GPL-2" # gpl for init script bug #425946
|
||
|
SLOT="0"
|
||
|
KEYWORDS="-* ~amd64 ~x86"
|
||
|
IUSE="dedicated"
|
||
|
RESTRICT="strip mirror"
|
||
|
|
||
|
RDEPEND="sys-libs/glibc
|
||
|
amd64? ( sys-libs/glibc[multilib] )
|
||
|
dedicated? ( app-misc/screen )
|
||
|
!dedicated? (
|
||
|
virtual/opengl
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXext
|
||
|
)"
|
||
|
|
||
|
QA_PREBUILT="/opt/${PN}/*
|
||
|
/opt/${PN}/demomain/*"
|
||
|
|
||
|
S=${WORKDIR}
|
||
|
|
||
|
dir="/opt/${PN}"
|
||
|
|
||
|
src_install() {
|
||
|
insinto "${dir}"
|
||
|
doins -r demomain Docs
|
||
|
doins WolfMP.xpm
|
||
|
dodoc CHANGES QUICKSTART
|
||
|
|
||
|
exeinto "${dir}"
|
||
|
doexe bin/x86/wolfded.x86 openurl.sh
|
||
|
make_wrapper rtcwmp-demo-ded ./wolfded.x86 "${dir}" "${dir}"
|
||
|
newinitd "${FILESDIR}"/rtcwmp-demo-ded.rc rtcwmp-demo-ded
|
||
|
sed "s:GENTOO_DIR:${dir}:" "${ED}"/etc/init.d/rtcwmp-demo-ded || die
|
||
|
|
||
|
if ! use dedicated; then
|
||
|
doexe bin/x86/wolf.x86
|
||
|
make_wrapper rtcwmp-demo ./wolf.x86 "${dir}" "${dir}"
|
||
|
newicon WolfMP.xpm rtcwmp-demo.xpm
|
||
|
make_desktop_entry rtcwmp-demo "Return to Castle Wolfenstein (MP demo)" \
|
||
|
rtcwmp-demo.xpm
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "Install 'rtcwsp-demo' for single-player"
|
||
|
elog
|
||
|
if ! use dedicated; then
|
||
|
elog "Run 'rtcwmp-demo' for multi-player"
|
||
|
elog
|
||
|
fi
|
||
|
elog "Start a dedicated server with"
|
||
|
elog "'/etc/init.d/rtcwmp-demo-ded start'"
|
||
|
elog
|
||
|
elog "Start the server at boot with"
|
||
|
elog "'rc-update add rtcwmp-demo-ded default'"
|
||
|
}
|