blob: efd95c55d96c77e42795ce30ad8315324bc41d03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
inherit cmake
# Replace "." with "_" in version
_PV=${PV//./_}
DESCRIPTION="FreeSpace2 Source Code Project game engine"
HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/"
EGIT_REPO_URI="https://github.com/scp-fs2open/fs2open.github.com.git"
EGIT_COMMIT="release_${_PV}"
LICENSE="Unlicense"
SLOT="0"
KEYWORDS=""
DEPEND="
media-libs/libjpeg-turbo
media-libs/libpng
media-libs/libtheora
media-libs/libvorbis
>=dev-lang/lua-5.1.0:*
media-libs/mesa
media-libs/openal
media-libs/libsdl2
media-libs/glu
dev-libs/jansson
app-arch/lz4
"
RDEPEND="${DEPEND}"
BDEPEND=""
CMAKE_BUILD_TYPE=Release
src_prepare() {
eapply "${FILESDIR}/${P}-make-arch-independent.patch"
eapply_user
cmake_src_prepare
}
src_install() {
exeinto "/opt/${PN}"
doexe "${BUILD_DIR}/bin/${PN}_${_PV}"
insinto "/opt/${PN}"
doins "${BUILD_DIR}/bin/libRocketControls.so"
doins "${BUILD_DIR}/bin/libRocketControlsLua.so"
doins "${BUILD_DIR}/bin/libRocketCore.so"
doins "${BUILD_DIR}/bin/libRocketCoreLua.so"
doins "${BUILD_DIR}/bin/libRocketDebugger.so"
doins "${BUILD_DIR}/bin/libdiscord-rpc.so"
}
pkg_postinst() {
einfo "This package only generates the engine binary."
einfo "The retail Freespace 2 data is required to play the"
einfo "original game and most mods."
}
|