forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lugaru-9999.ebuild
62 lines (52 loc) · 1.19 KB
/
lugaru-9999.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils cmake-utils mercurial
EHG_REPO_URI="https://bitbucket.org/osslugaru/lugaru/"
DESCRIPTION="3D arcade with unique fighting system and anthropomorphic characters"
HOMEPAGE="https://bitbucket.org/osslugaru/lugaru/wiki/Home"
SRC_URI=""
LICENSE="GPL-2+ free-noncomm CC-BY-SA-3.0"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="
media-libs/libsdl[opengl,video]
media-libs/libpng:0
media-libs/libvorbis
media-libs/openal
sys-libs/zlib
virtual/glu
virtual/jpeg:0
virtual/opengl"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_unpack() {
mercurial_src_unpack
}
PATCHES=(
"${FILESDIR}/${P}-dir.patch"
)
src_prepare() {
default
sed -i \
-e "s:@GENTOO_DIR@:/usr/share/${PN}:" \
Source/OpenGL_Windows.cpp || die
}
src_configure() {
mycmakeargs=(
"-DCMAKE_VERBOSE_MAKEFILE=TRUE"
"-DLUGARU_FORCE_INTERNAL_OPENGL=False"
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
dobin "${WORKDIR}/${P}_build/lugaru"
insinto /usr/share/${PN}
doins -r Data/
newicon Source/win-res/Lugaru.png ${PN}.png
make_desktop_entry ${PN} Lugaru ${PN}
}