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.
56 lines
1.3 KiB
56 lines
1.3 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
|
|
||
3 years ago
|
inherit desktop unpacker wrapper
|
||
13 years ago
|
|
||
|
DESCRIPTION="Third-person classic magical action-adventure game"
|
||
|
HOMEPAGE="http://www.lokigames.com/products/heretic2/
|
||
|
http://www.hereticii.com/"
|
||
|
SRC_URI="mirror://lokigames/loki_demos/${PN}.run"
|
||
3 years ago
|
S="${WORKDIR}"
|
||
13 years ago
|
|
||
|
LICENSE="LOKI-EULA"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
3 years ago
|
|
||
5 years ago
|
RESTRICT="strip mirror bindist"
|
||
13 years ago
|
|
||
10 years ago
|
RDEPEND="
|
||
9 years ago
|
x11-libs/libX11[abi_x86_32(-)]
|
||
3 years ago
|
x11-libs/libXext[abi_x86_32(-)]
|
||
|
"
|
||
|
BDEPEND="games-util/loki_patch"
|
||
13 years ago
|
|
||
3 years ago
|
dir=/opt/${PN}
|
||
|
QA_PREBUILT="${dir#/}/*"
|
||
3 years ago
|
QA_TEXTRELS="opt/heretic2-demo/ref_glx.so"
|
||
13 years ago
|
|
||
|
src_install() {
|
||
10 years ago
|
ABI=x86
|
||
|
|
||
13 years ago
|
local demo="data/demos/heretic2_demo"
|
||
|
local exe="heretic2_demo.x86"
|
||
|
|
||
9 years ago
|
loki_patch patch.dat data/ || die
|
||
13 years ago
|
|
||
|
# Remove bad opengl library
|
||
3 years ago
|
rm -r "${demo}/gl_drivers/" || die
|
||
13 years ago
|
|
||
|
# Change to safe default of 800x600 and option of normal opengl driver
|
||
9 years ago
|
sed -i \
|
||
13 years ago
|
-e "s:fullscreen \"1\":fullscreen \"1\"\nset vid_mode \"4\":" \
|
||
|
-e "s:libGL:/usr/$(get_libdir)/libGL:" \
|
||
9 years ago
|
"${demo}"/base/default.cfg || die
|
||
13 years ago
|
|
||
3 years ago
|
insinto ${dir}
|
||
|
exeinto ${dir}
|
||
12 years ago
|
doins -r "${demo}"/*
|
||
|
doexe "${demo}/${exe}"
|
||
13 years ago
|
|
||
3 years ago
|
make_wrapper ${PN} "./${exe}" "${dir}" "${dir}"
|
||
12 years ago
|
newicon "${demo}"/icon.xpm ${PN}.xpm
|
||
13 years ago
|
make_desktop_entry ${PN} "Heretic 2 (Demo)" ${PN}
|
||
|
}
|