summaryrefslogtreecommitdiff
blob: 56d69f40c251b60ad31f4784786f6d22a924fcf5 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
inherit eutils git-2

IUSE="dev"

DESCRIPTION="Colobot (Colonize with Bots) is an educational real-time strategy video game featuring 3D graphics"
HOMEPAGE="http://colobot.info/"
SRC_URI=""

EGIT_REPO_URI="https://github.com/colobot/colobot.git"
EGIT_PROJECT="colobot"
if use dev; then
  EGIT_BRANCH="dev"
else
  EGIT_BRANCH="master"
fi

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"

DEPEND="
  media-libs/sdl-image
  media-libs/openal
  dev-libs/boost
  dev-util/cmake
"
RDEPEND="
  ${DEPEND}
  games-strategy/colobot-data
"

S="${WORKDIR}/${PN}"

src_prepare() {
  if use dev; then
    epatch ${FILESDIR}/fix_man_dependency-dev.patch
  else
    epatch ${FILESDIR}/use_dynamic_boost.patch
    epatch ${FILESDIR}/fix_man_dependency.patch
  fi
}

src_configure() {
  if use dev; then
    EXTRA_PARAMS="-DSTATIC_BOOST=OFF"
  fi
  
  cd ${S}
  cmake -DCMAKE_BUILD_TYPE=Release -DOPENAL_SOUND=1 ${EXTRA_PARAMS} .
}