Upstream wscript no longer defines -8 (arch is selected with -4/--32bits and 64-bit is the default), so passing -8 makes waf configure fail with "no such option: -8". Drop it; the default 64-bit build is what we want. Build-tested on amd64: builds and installs (also confirms python3.14).
45 lines
988 B
Bash
45 lines
988 B
Bash
# Copyright 2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{12..14} )
|
|
PYTHON_REQ_USE='threads(+)'
|
|
|
|
inherit waf-utils git-r3 python-any-r1
|
|
|
|
DESCRIPTION="A 3D game engine developed by Valve"
|
|
HOMEPAGE="https://github.com/nillerusr/source-engine"
|
|
EGIT_REPO_URI="https://github.com/nillerusr/source-engine.git"
|
|
|
|
LICENSE="Source-SDK"
|
|
SLOT="0"
|
|
IUSE="debug"
|
|
BDEPEND="${PYTHON_DEPS}
|
|
media-libs/libsdl2
|
|
media-libs/freetype
|
|
media-libs/fontconfig
|
|
virtual/zlib
|
|
media-libs/libjpeg-turbo
|
|
media-libs/libpng
|
|
net-misc/curl
|
|
media-libs/openal"
|
|
|
|
src_configure() {
|
|
local conf=(
|
|
$(usex debug '-T debug' '-T release')
|
|
)
|
|
waf-utils_src_configure "${conf[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
waf-utils_src_install --destdir="${ED}/opt/source-engine"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
einfo "To play Half-Life 2,"
|
|
einfo "you must legally own a Half-Life 2 copy,"
|
|
einfo "then copy the 'hl2' folder into"
|
|
einfo "/opt/source-engine/usr"
|
|
}
|