# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-games/libgrapple/libgrapple-0.9.1.ebuild,v 1.1 2007/04/03 21:12:16 egore Exp $ inherit eutils games autotools DESCRIPTION="simple network layer, allowing multiplayer features in a game" HOMEPAGE="http://grapple.linuxgamepublishing.com/grapple.php" SRC_URI="http://osfiles.linuxgamepublishing.com/${P}.tbz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="threads doc" DEPEND="" RDEPEND="" AT_M4DIR="m4" src_unpack() { unpack ${A} cd "${S}" epatch ${FILESDIR}/${P}-pkgconfig.patch eautoreconf } src_compile() { local myconf if `use threads`; then myconf="have_pthreads=yes" else myconf="have_pthreads=no" fi econf $myconf || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" if `use doc`; then dodir ${GAMES_DATADIR}/${PN} insinto ${GAMES_DATADIR}/${PN} doins test/* fi dodoc README README.lobby UPDATES } pkg_postinst() { if [ !`use threads` ]; then elog "You need to set USE=\"threads\" to enable callback functionality" fi }