# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="An OpenGL png image library" HOMEPAGE="www.fifi.org/doc/libglpng-dev/glpng.html" SRC_URI="http://www.amdmi3.ru/distfiles/${PN}.zip" LICENSE="as-is" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="virtual/opengl" # it uses its own zlib and libpng modifications S="${WORKDIR}/src" src_unpack() { unpack ${A} cd "${S}" mv Makefile.LINUX Makefile #replace cflags and so on... sed -i \ -e "s:-pipe -Wall -W -O2 -fno-strength-reduce:${CFLAGS}:" \ Makefile || die "sed Makefile failed" } src_compile() { emake || die "compilation failed" } src_install() { dolib ../lib/lib"${PN}".a insinto "/usr/include/GL" doins ../include/GL/"${PN}".h }