# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ IUSE="png" DESCRIPTION="pslib is a C-library to create PostScript files on the fly." HOMEPAGE="http://pslib.sourceforge.net" SRC_URI="mirror://sourceforge/pslib/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND="png? ( media-libs/libpng )" REDEPEND="${DEPEND}" SLOT="0" src_compile() { my_conf="" use png && my_conf="${my_conf} --with-png=no" econf --prefix=/usr ${my_conf} || die "Configure failed" emake || die "Make failed" } src_install() { emake DESTDIR=${D} install || die "Make install failded" }