summaryrefslogtreecommitdiff
blob: fb38321a71fbd0cd7cb807936ff760767b969b84 (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
# Copyright 1999-2020 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}"/avp-20150214-fno-common.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."
}