blob: b0a37bd7912b8ea4a102028815b65497a25664c3 (
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
62
63
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools desktop
DESCRIPTION="Fly a plane around bomb/shoot the enemy. Port of Planegame from Amiga"
HOMEPAGE="http://www.fishies.org.uk/apricots.html"
SRC_URI="http://www.fishies.org.uk/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
IUSE=""
DEPEND="media-libs/libsdl[sound,video]
media-libs/openal
media-libs/freealut"
RDEPEND="${DEPEND}"
src_prepare() {
default
eapply "${FILESDIR}"/${P}-freealut.patch \
"${FILESDIR}"/${P}-ldflags.patch
cp admin/acinclude.m4.in acinclude.m4
sed -i \
-e 's:-DAP_PATH=\\\\\\"$prefix.*":-DAP_PATH=\\\\\\"/usr/share/${PN}/\\\\\\"":' \
-e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
configure.in || die
sed -i \
-e "s:filename(AP_PATH):filename(\"/etc/${PN}/\"):" \
${PN}/init.cpp || die
sed -i \
-e "s:apricots.cfg:/etc/${PN}/apricots.cfg:" \
README apricots.html || die
sed -i \
-e 's/-Wmissing-prototypes//' \
acinclude.m4 || die
mv configure.in configure.ac || die
eautoreconf
}
src_compile() {
emake LIBTOOL="/usr/bin/libtool"
}
src_install() {
HTML_DOCS="apricots.html"
einstalldocs
cd ${PN}
dobin apricots
insinto /usr/share/${PN}
doins *.wav *.psf *.shapes
insinto /etc/${PN}
doins apricots.cfg
make_desktop_entry ${PN} Apricots
}
|