# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="This is a utility library I wrote while I was working on the stunt course projectload PNG graphics files and bind them to an OpenGL texture." HOMEPAGE="http://www.wyatt100.freeserve.co.uk/download.htm" SRC_URI="http://www.wyatt100.freeserve.co.uk/glpng.zip" SLOT="0" KEYWORDS="~x86" IUSE="" S="${WORKDIR}/src" DEPEND="sys-libs/zlib media-libs/libpng" src_unpack() { unpack ${A} cd ${S} mv Makefile.LINUX Makefile } src_compile() { make CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "make failed." } src_install() { dolib ${WORKDIR}/lib/* dodir /usr/include/GL cp ${WORKDIR}/include/GL/* ${D}/usr/include/GL }