blob: 8af3f9fa798748d71d16ab5474f577d9043b8409 (
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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/wargus/wargus-2.2.7.ebuild,v 1.1 2012/10/19 08:32:16 hasufell Exp $
EAPI=4
inherit eutils cmake-utils gnome2-utils games
DESCRIPTION="Warcraft II for the Stratagus game engine"
HOMEPAGE="http://wargus.sourceforge.net/"
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="=games-engines/stratagus-${PV}*[theora]
media-libs/freetype
media-libs/libpng:0
sys-libs/zlib
x11-libs/gtk+:2
x11-libs/libX11"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PDEPEND="games-strategy/wargus-data"
S=${WORKDIR}/${PN}_${PV}.orig
src_configure() {
local mycmakeargs=(
-DGAMEDIR="${GAMES_BINDIR}"
-DBINDIR="${GAMES_BINDIR}"
-DSTRATAGUS="${GAMES_BINDIR}"/stratagus
-DICONDIR=/usr/share/icons/hicolor/64x64/apps
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
elog "Enabling OpenGL in-game seems to cause segfaults/crashes."
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|