summaryrefslogtreecommitdiff
blob: 42bb6956dc15c6498dab341bbc5a7ea73b969fcb (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION="Linux port of Aliens vs Predator"
HOMEPAGE="http://www.icculus.org/avp/"
SRC_URI="http://www.icculus.org/avp/files/${P}.tar.gz"

LICENSE="AvP"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="bindist mirror"

RDEPEND="
	media-libs/libsdl[video,joystick,opengl]
	media-libs/openal"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/${P}-fno-common.patch
	"${FILESDIR}"/${P}-gcc-11-minmax.patch
)

src_configure() {
	local mycmakeargs=(
		-DSDL_TYPE=SDL
		-DOPENGL_TYPE=OPENGL
	)
	cmake_src_configure
}

src_install() {
	dobin "${BUILD_DIR}"/avp
	einstalldocs
}

pkg_postinst() {
	elog "Please follow the instructions in ${EROOT}/usr/share/doc/${PF}"
	elog "to install the rest of the game."
}