# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #tested on 28/04/08 with default autotools WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" inherit autotools #Required Variables DESCRIPTION="Lightweight OpenGL-based GUI toolkit used by makehuman" HOMEPAGE="http://www.dedalo-3d.com/" SRC_URI="mirror://sourceforge/makehuman/${P}.tar.gz" SLOT="0" LICENCE="GPL-1" KEYWORDS="~x86 ~amd64" IUSE="pic" #Optionnal variables RDEPEND=" >=media-libs/libpng-1.2.26-r1 >=virtual/glut-1.0 >=media-gfx/animorph-0.3 " DEPEND="${RDEPEND}" src_unpack() { unpack ${A} cd "${S}" ; #Relocate documentation #src_compile fails when using eautoreconf, so modify Makefile.in instead of Makefile.am sed -i -e "s/doc\/${PN}/share\/doc\/${P}/g" Makefile.in #einfo "Regenerating autotools files..." #eautoreconf || die "eautoreconf failed" } src_compile() { #X required by glut, adding --with-gnu-ld because we skipped eautoreconf econf --with-gnu-ld --with-x $(use_with pic ) || die "econf failed!" emake || die "emake failed" } src_test() { emake check ; } src_install() { emake DESTDIR=${D} install || die "Make install failed" }