forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bloboats-1.0.2.ebuild
47 lines (41 loc) · 1.16 KB
/
bloboats-1.0.2.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils games
DESCRIPTION="Arcade-like boat racing game combining platform jumpers and x-moto like games"
HOMEPAGE="http://bloboats.dy.fi/"
SRC_URI="http://mirror.kapsi.fi/bloboats.dy.fi/${P}.tar.gz"
LICENSE="GPL-2 CC-Sampling-Plus-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/libsdl[opengl,video]
media-libs/sdl-mixer[vorbis]
media-libs/sdl-image[png]
media-libs/sdl-net
virtual/opengl
virtual/glu
media-libs/libvorbis"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-warnings.patch
epatch "${FILESDIR}"/${P}-gcc6.patch
sed -i \
-e "/PREFIX/s://:${D}:" \
-e "/DATADIR/s:/usr/games/bloboats/data:${GAMES_DATADIR}/${PN}:" \
-e "/BINARYDIR/s:/usr/bin:${GAMES_BINDIR}:" \
-e "/CONFIGDIR/s:/etc:${GAMES_SYSCONFDIR}:" \
-e "/CXXFLAGS_DEFAULT/s:-O2:${CXXFLAGS} \$(LDFLAGS):" \
-e "/^CXX[ _]/d" \
-e '/STRIP/d' \
Makefile || die
}
src_install() {
dogamesbin bin/bloboats
insinto "${GAMES_DATADIR}"/${PN}
doins -r data/*
insinto "$GAMES_SYSCONFDIR"
doins bloboats.dirs
dodoc readme.txt
prepgamesdirs
}