blob: d31da697fc762573736870de632871c2eaa4797e (
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
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/openastromenace/openastromenace-1.3.1-r1.ebuild,v 1.2 2013/01/12 15:38:40 mr_bones_ Exp $
EAPI=5
inherit gnome2-utils cmake-utils eutils games
DESCRIPTION="Modern 3D space shooter with spaceship upgrade possibilities"
HOMEPAGE="http://sourceforge.net/projects/openastromenace/"
SRC_URI="mirror://sourceforge/openastromenace/${PV}/astromenace-src-${PV}.tar.bz2"
LICENSE="GPL-3 GPL-3+ CCPL-Attribution-ShareAlike-3.0 UbuntuFontLicense-1.0 OFL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/opengl
virtual/glu
media-libs/libsdl[joystick,video,X]
media-libs/openal
media-libs/freealut
media-libs/freetype:2
media-libs/libogg
media-libs/libvorbis
x11-libs/libXinerama"
S=${WORKDIR}/AstroMenace
src_prepare() {
# no messing with CXXFLAGS please.
sed -i -e '/ADD_DEFINITIONS.*O3/d' CMakeLists.txt || die
epatch "${FILESDIR}"/${P}-overflow.patch
# enhancements patches(all - in upstream), bug #450158
epatch \
"${FILESDIR}"/${P}-keyboard_control-fix.patch \
"${FILESDIR}"/${P}-rendering-blinking_triangles-fix.patch \
"${FILESDIR}"/${P}-textures_quality-fix.patch
}
src_configure() {
local mycmakeargs="-DDATADIR=${GAMES_DATADIR}/${PN}"
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
"${CMAKE_BUILD_DIR}"/AstroMenace --pack \
--rawdata="${S}"/RAW_VFS_DATA \
--dir=$(dirname "${CMAKE_BUILD_DIR}") || die
}
src_install() {
newgamesbin "${CMAKE_BUILD_DIR}"/AstroMenace "${PN}"
insinto "${GAMES_DATADIR}/${PN}"
doins ../*.vfs
newicon -s 128 astromenace_128.png ${PN}.png
newicon -s 64 astromenace_64.png ${PN}.png
dodoc ChangeLog.txt ReadMe.txt
make_desktop_entry "${PN}" OpenAstroMenace
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|