# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A portable framework for OpenGL" HOMEPAGE="http://glfw.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="AS-IS" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="" RDEPEND="virtual/x11 virtual/opengl" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} # If you don't need to change it, leave the S= line out of the ebuild # to keep it tidy. S=${WORKDIR}/${P} src_compile() { chmod a-x examples/* ./compile.sh || die "compile.sh failed" make x11 || die "emake failed" } src_install() { dodir /usr/include/GL cp include/GL/* ${D}/usr/include/GL dodir /usr/lib cp lib/x11/libglfw.a ${D}/usr/lib dodoc docs/* dodir /usr/share/glfw cp -R examples ${D}/usr/share/glfw }