blob: 83eed8878133a4d0f0e2a98af3a26ed42c018c8e (
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
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
MY_PN="rRootage"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Abstract shooter - defeat auto-created huge battleships"
HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html
http://rrootage.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
S="${WORKDIR}"/${MY_PN}/src
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
>=dev-libs/libbulletml-0.0.3
media-libs/libsdl[joystick,video]
media-libs/sdl-mixer[vorbis]
virtual/glu
virtual/opengl"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}"-gcc41.patch
)
src_prepare() {
default
sed \
-e "s/-lglut/-lGL -lGLU -lm/" \
-e "/^CC/d" \
-e "/^CXX/d" \
-e "/^LDFLAGS/s/=/+=/" \
-e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
-e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
-e "s/ -mwindows//" \
-e "s:-I./bulletml/:-I/usr/include/bulletml:" \
makefile.lin > Makefile || die
sed -i \
-e "s:/usr/share/games:/usr/share:" \
barragemanager.cc screen.c soundmanager.c || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
MORE_CFLAGS="-DLINUX ${CFLAGS}" \
MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}"
}
src_install() {
newbin rr ${PN}
dodir "/usr/share/${MY_PN}"
cp -r ../rr_share/* "${D}/usr/share/${MY_PN}" || die
dodoc ../readme*
}
pkg_postinst() {
if ! has_version "media-libs/sdl-mixer[vorbis]" ; then
elog "${PN} will not have sound since sdl-mixer"
elog "is built with USE=-vorbis"
elog "Please emerge sdl-mixer with USE=vorbis"
elog "if you want sound support"
fi
}
|