# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils autotools MY_PV=${PV//./_} DESCRIPTION="OpenGL Easy Extension library" HOMEPAGE="http://elf-stone.com/glee.php" SRC_URI="http://elf-stone.com/downloads/GLee/GLee${MY_PV}.zip" LICENSE="AS-IS" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND="virtual/opengl" DEPEND="app-arch/unzip ${RDEPEND}" S=${WORKDIR}/${PN} src_unpack() { mkdir -p ${S} cd ${S} unpack ${A}|| die "failed unpacking" epatch "${FILESDIR}"/glee-5.21-automake.patch eautoreconf ||die "autoreconf failed" } src_compile() { # if use amd64; then # CFLAGS="$CFLAGS -fPIC -DPIC" # CXXFLAGS="$CXXFLAGS -fPIC -DPIC" # fi # aclocal || die "aclocal failed" # libtoolize || die "libtoolize failed" # autoconf || die "autoconf failed" econf || die "econf failed" emake || die "emake failed" } src_install() { einstall || die "einstall failed" dodir /usr/include/GL insinto /usr/include/GL doins GLee.h dodoc readme.txt extensionList.txt }