# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/media-gfx/imagemagick/imagemagick-5.4.7.4-r1.ebuild,v 1.7 2003/07/02 03:35:31 seemant Exp $ IUSE="perl X cups xml2 lcms" #inherit libtool perl-module eutils MY_PN=ImageMagick MY_P=${MY_PN}-${PV} S=${WORKDIR}/${MY_PN}-${PV} DESCRIPTION="A collection of tools and libraries for many image formats" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" HOMEPAGE="http://www.imagemagick.org/" SLOT="2" LICENSE="as-is" KEYWORDS="x86 ppc sparc ~alpha ~mips ~hppa" DEPEND=">=sys-apps/sed-4 media-libs/libpng >=sys-apps/bzip2 >=sys-libs/zlib-1.1.3 >=media-libs/freetype-2.0 >=media-libs/jpeg-6b >=media-libs/tiff-3.5.5 X? ( virtual/x11 >=app-text/dgs-0.5.9.1 ) cups? ( >=app-text/ghostscript-6.50 ) lcms? ( >=media-libs/lcms-1.06 ) xml2? ( >=dev-libs/libxml2-2.4.10 )" #perl? ( >=dev-lang/perl-5 ) src_compile() { cd ${S} local myconf="" use perl || myconf="--without-perl" use lcms || myconf="${myconf} --without-lcms" use xml2 || myconf="${myconf} --without-xml" use X || myconf="${myconf} --without-x" ./configure \ --prefix=${D}/usr/local/${MY_P} \ --exec-prefix=${D}/usr/local/${MY_P} \ --bindir=${D}/usr/local/${MY_P} \ --enable-lzw \ --with-ttf \ --with-fpx \ --without-gslib \ --without-hdf \ --with-jbig \ --with-wmf \ --with-threads \ --with-jpeg \ --with-png \ --with-tiff \ --with-ttf \ --with-zlib \ --without-perl \ ${myconf} || die "bad configure" sleep 10 emake || die "compile problem" } src_install() { make install } pkg_postinst() { einfo "NOTE:" einfo "This package is installed in /usr/local/${MY_P}" }