summaryrefslogtreecommitdiff
path: root/games-engines/gemrb/gemrb-scm.ebuild
blob: 73f3f231834b09084aa48ce86f95d929349f27d2 (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
# Copyright 1999-2014 Gentoo Foundation
# Copyright 2014 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
WANT_CMAKE=always
PYTHON_COMPAT=( python2_7 )
inherit eutils cmake-utils gnome2-utils multilib python-single-r1 git-r3

DESCRIPTION="Reimplementation of the Infinity engine"
HOMEPAGE="http://gemrb.sourceforge.net/"
SRC_URI=""
EGIT_REPO_URI="git://github.com/gemrb/gemrb.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""

RDEPEND="${PYTHON_DEPS}
	media-libs/freetype
	media-libs/glew
	media-libs/libpng:0
	media-libs/libsdl2[video]
	media-libs/libvorbis
	media-libs/openal
	media-libs/sdl-mixer
	sys-libs/zlib
	virtual/opengl
"
DEPEND=${RDEPEND}

src_prepare() {
	sed -i \
		-e '/COPYING/d' \
		CMakeLists.txt || die
}

src_configure() {
	mycmakeargs=(
		-DCMAKE_INSTALL_PREFIX=/usr
		-DBIN_DIR=/usr/bin
		-DDATA_DIR=/usr/share/gemrb
		-DSYSCONF_DIR=/etc/gemrb
		-DLIB_DIR=/usr/$(get_libdir)/${PN}
		-DMAN_DIR=/usr/share/man/man6
		-DICON_DIR=/usr/share/pixmaps
		-DMENU_DIR=/usr/share/applications
		-DDOC_DIR="/usr/share/doc/${PF}"
		-DSVG_DIR=/usr/share/icons/hicolor/scalable/apps
		-DUSE_OPENGL=1
		-DUSE_SDL2=ON
		-DDISABLE_WERROR=1
		)
	cmake-utils_src_configure
}

src_compile() {
	cmake-utils_src_compile
}

src_install() {
	cmake-utils_src_install
	dodoc README NEWS AUTHORS
}

pkg_preinst() {
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_icon_cache_update
}

pkg_postrm() {
	gnome2_icon_cache_update
}