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

inherit games toolchain-funcs

MY_P="kboard-alpha-0.9b"
DESCRIPTION="graphical interface for playing Chess, Shogi and variants"
HOMEPAGE="http://kboard.sourceforge.net"
SRC_URI="mirror://sourceforge/kboard/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="=x11-libs/qt-4*
	dev-libs/boost
	dev-lang/lua
	dev-util/cmake"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}

src_compile() {
	cmake \
		-D CMAKE_CXX_COMPILER:FILEPATH="$(tc-getCXX)" \
		-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
		-D CMAKE_C_COMPILER:FILEPATH="$(tc-getCC)" \
		-DCMAKE_C_FLAGS="${CFLAGS}" \
		-DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" \
		-DDATA_INSTALL_DIR="${GAMES_DATADIR}" \
		. || die "ecmake failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS BUGS CHANGELOG INSTALL README RELEASE TODO
	prepgamesdirs
}