1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools eutils flag-o-matic games
9 MY_P=${PN}-release-${PV}-src
11 DESCRIPTION="A free multiplayer action game where you control clonks"
12 HOMEPAGE="http://openclonk.org/"
13 SRC_URI="http://hg.${PN}.org/${PN}/archive/${MY_P}.tar.gz
14 http://${PN}.org/homepage/icon.png -> ${PN}.png"
16 LICENSE="BSD CLONK-source CLONK-trademark LGPL-2.1 POSTGRESQL"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="+audio doc mp3 openal"
25 media-libs/libsdl[X,audio?,opengl,video]
37 media-libs/sdl-mixer[mp3?]
48 dev-libs/libxml2[python]
55 # remove license files
57 -e '/dist_doc_DATA/s#planet/COPYING ##;s:licenses/LGPL.txt ::' \
60 # force python2 for doc-generation
63 -e 's/python/python2/g' \
64 -i docs/Makefile || die
72 append-flags -fno-strict-aliasing
76 myconf="$(use_enable audio sound)"
77 use mp3 && myconf="${myconf} $(use_enable mp3)"
78 use openal && myconf="${myconf} $(use_with openal)"
82 --with-automatic-update=no \
96 emake DESTDIR="${D}" install || die
97 doicon "${DISTDIR}"/${PN}.png
98 newgamesbin "${FILESDIR}"/${PN}-wrapper-script.sh ${PN} || die
99 make_desktop_entry ${PN} ${PN}
102 dohtml -r docs/online/*
110 einfo "Run the game via the wrapper \"${GAMES_BINDIR}/${PN}\"."