summaryrefslogtreecommitdiff
blob: 6943ff7f0022706869c44cf36b52669cb2cea10a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/imagemagick-5.3.4.ebuild,v 1.1 2001/06/04 03:33:03 achim Exp $

P=ImageMagick-${PV}
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="A collection of tools and libraries for many image formats"
SRC_URI="ftp://ftp.fifi.org/pub/ImageMagick/${A}"
HOMEPAGE="http://www.imagemagick.org"

DEPEND=">=app-text/dgs-0.5.9.1
	perl? ( >=sys-devel/perl-5 )
        >=sys-apps/bzip2-1
	>=media-libs/freetype-2.0
	>=media-libs/tiff-3.5.5
	>=media-libs/libpng-1.0.7
	virtual/x11
	virtual/lpr"

RDEPEND=">app-text/dgs-0.5.9.1
	>=sys-apps/bzip2-1
	>=media-libs/jpeg-6b
	>=media-libs/freetype-2.0
	>=media-libs/libpng-1.0.7"

src_compile() {
    local myconf
    if [ -z "`use perl`" ] ; then
      myconf="--without-perl"
    fi
    try ./configure \
		--prefix=/usr/X11R6 --build=${CHOST} --enable-shared --enable-static \
		--without-xml --without-lcms --enable-lzw --with-ttf --without-fpx \
                --without-gslib --without-hdf --without-jbig --without-wmf
		--enable-shared --with-threads --mandir=/usr/X11R6/man $myconf
    try make

}

src_install () {

    try make prefix=${D}/usr/X11R6 PREFIX=${D}/usr \
	INSTALLMAN3DIR=${D}/usr/share/man/man3 \
	INSTALLMAN1DIR=${D}/usr/share/man/man1 \
	mandir=${D}/usr/X11R6/man install

}