# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 IUSE="png freetype jpeg" DESCRIPTION="An ANSI C library for the dynamic creation of images." HOMEPAGE="http://www.boutell.com" SRC_URI="http://www.boutell.com/gd/http/${P}.tar.gz" LICENSE="" SLOT="0" KEYWORDS="~x86" DEPEND=">=sys-libs/zlib-1.1 png? ( >=media-libs/libpng-1.2 ) freetype? ( >=media-libs/freetype-2.1 ) jpeg? ( >=media-libs/jpeg-6 ) " src_compile() { local myconf myconf="--prefix=/usr" use png || myconf="${myconf} --without-png" use freetype || myconf="${myconf} --without-freetype" use jpeg || myconf="${myconf} --without-jpeg" econf ${myconf}|| die emake || die } src_install() { einstall || die }