Install this version:
emerge -a =games-action/openlara-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =games-action/openlara-9999
Or alternatively:
emerge --autounmask-write -a =games-action/openlara-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | ~amd64 | 0 |
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
SHA="c7e6e5f763b5632202d64f0b247bdad146a06a1e"
inherit git-r3
DESCRIPTION="Classic Tomb Raider open-source engine"
HOMEPAGE="https://xproger.info/projects/openlara/"
EGIT_REPO_URI="https://github.com/XProger/OpenLara.git"
#S="${WORKDIR}/OpenLara-${SHA}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+sdl debug"
DEPEND="
virtual/opengl
sdl? (
media-libs/libsdl2 )
!sdl? (
media-libs/libpulse
x11-libs/libX11 )
"
RDEPEND="${DEPEND}"
BDEPEND="!sdl? ( >=dev-util/premake-5 )"
src_prepare() {
if !(use debug); then
eapply "${FILESDIR}/${PN}-disable-fps-log.patch"
fi
if use sdl; then
S=${S}/src/platform/sdl2
else
S=${S}/src/platform/nix
cd "${S}"
premake5 gmake2
fi
eapply_user
}
src_compile() {
local myemakeopts=()
local mymaketarget=OpenLara
local mymakeconfig=""
if use sdl; then
myemakeopts+=(
LDFLAGS="${LDFLAGS} -Wl,--no-as-needed -lGL -lSDL2 -Wl,--as-needed"
)
mymaketarget=openlara
else
if !(use debug); then
mymakeconfig="config=release"
fi
fi
emake $mymakeconfig $mymaketarget "${myemakeopts[@]}"
}
src_install() {
if use sdl; then
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
else
if use debug; then
dobin bin/Debug/OpenLara
else
dobin bin/Release/OpenLara
fi
fi
}
pkg_postinst() {
echo
ewarn "The original game data files are required for operation."
elog "audio/"
elog "└── 1"
elog " └── {CD Audio Files as Ogg}"
elog "level/"
elog "└── 1"
elog " └── {CD /DATA Files}"
elog "video/"
elog "└── 1"
elog " └── {CD /FLV Files}"
echo
}
Manage flags for this package:
euse -i <flag> -p games-action/openlara |
euse -E <flag> -p games-action/openlara |
euse -D <flag> -p games-action/openlara
virtual/opengl sdl? ( media-libs/libsdl2 ) !sdl? ( media-libs/libpulse x11-libs/libX11 )
virtual/opengl sdl? ( media-libs/libsdl2 ) !sdl? ( media-libs/libpulse x11-libs/libX11 )
!sdl? ( >=dev-util/premake-5 )