|
|
# Copyright 1999-2006 Gentoo Foundation and Thomas Capricelli <orzel@kde.org> |
# Copyright 1999-2006 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/boson/boson-0.11.ebuild,v 1.5 2006/05/25 21:50:54 tupone Exp $ |
# $Header: $ |
| |
inherit kde |
inherit eutils kde-functions toolchain-funcs |
| |
DESCRIPTION="real-time strategy game, with the feeling of Command&Conquer(tm) (needs at least 2 ppl to play)" |
DESCRIPTION="Real-time strategy game, with the feeling of Command&Conquer(tm)" |
HOMEPAGE="http://boson.sourceforge.net/" | HOMEPAGE="http://boson.sourceforge.net/" |
SRC_URI="mirror://sourceforge/boson/boson-all-${PV}.tar.bz2" | SRC_URI="mirror://sourceforge/boson/boson-all-${PV}.tar.bz2" |
| |
LICENSE="GPL-2" | LICENSE="GPL-2" |
SLOT="0" | SLOT="0" |
KEYWORDS="ppc -sparc x86" |
KEYWORDS="~ppc -sparc ~x86" |
IUSE="opengl" |
IUSE="" |
| |
DEPEND="media-libs/lib3ds |
RDEPEND="virtual/opengl |
>=media-libs/openal-20040303 |
virtual/glu |
<media-libs/openal-20051024 |
media-libs/lib3ds |
kde-base/arts |
media-libs/openal" |
opengl? ( virtual/opengl )" |
DEPEND="${RDEPEND} |
|
>=dev-util/cmake-2.4.2" |
need-kde 3 | need-kde 3 |
| |
S=${WORKDIR}/${PN}-all-${PV} | S=${WORKDIR}/${PN}-all-${PV} |
| |
PATCHES="${FILESDIR}/${P}"-gcc41.patch |
src_unpack() { |
PATCHES1="${FILESDIR}/${P}"-install.patch |
unpack ${A} |
|
cd "${S}" |
|
mkdir build |
|
|
|
epatch "${FILESDIR}"/${P}-gcc41.patch |
|
|
|
# Sandbox |
|
sed -e 's/^kde/#kde/' \ |
|
-i code/boson/data/CMakeLists.txt \ |
|
|| die "sed failed" |
|
} |
| |
src_compile() { | src_compile() { |
myconf="$(use_with opengl gl)" |
cd build |
MAKEOPTS="${MAKEOPTS} -j1" |
cmake \ |
|
-DCMAKE_C_COMPILER=$(which $(tc-getCC)) \ |
|
-DCMAKE_CXX_COMPILER=$(which $(tc-getCXX)) \ |
|
-DCMAKE_BUILD_TYPE=None \ |
|
-DCMAKE_VERBOSE_MAKEFILE=1 \ |
|
-DCMAKE_INSTALL_PREFIX=/usr \ |
|
-DKDEDIR=$(kde-config --prefix) \ |
|
.. || die "cmake failed" |
|
|
|
emake || die "emake failed" |
|
} |
|
|
|
src_install() { |
|
dodoc code/{AUTHORS,ChangeLog,README} |
|
|
|
newicon code/boson/data/hi48-app-boson.png ${PN}.png |
| |
kde_src_compile |
cd build |
|
make DESTDIR="${D}" install || die "make install failed" |
} | } |