1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils games qt4
10 DESCRIPTION
="Texas Hold'em poker game."
11 HOMEPAGE
="http://www.pokerth.net/"
12 SRC_URI
="mirror://sourceforge/${PN}/${MY_P}.src.tar.bz2"
17 KEYWORDS
="~amd64 ~x86"
20 DEPEND
=">=x11-libs/qt-4.3.2:4
21 >=dev-libs/boost-1.34.1
22 >=dev-libs/openssl-0.9.7
28 S
="${WORKDIR}/${MY_P}-src"
31 if ! built_with_use
"media-libs/sdl-mixer" mikmod
; then
33 eerror
"media-libs/sdl-mixer has to be compiled with USE=\"mikmod\""
35 die
"Needed USE flag for sdl-mixer not found."
42 if ! use dedicated
; then
43 sed -i -e '/SUBDIRS/s/pokerth_server\.pro//' pokerth.pro || die
47 emake || die
"emake failed"
51 dogamesbin
${PN} || die
"failed to install pokerth binary"
53 insinto
"${GAMES_DATADIR}/${PN}"
54 doins
-r data || die
"doins failed"
55 dodoc ChangeLog TODO docs
/{net_protocol
,server_setup_howto
}.txt
58 make_desktop_entry
${PN} "PokerTH"
60 if use dedicated
; then
61 dogamesbin bin
/pokerth_server || die
"failed to install pokerth_server binary"