/[gentoo-x86]/media-gfx/imagemagick/imagemagick-5.4.7.4-r1.ebuild
Gentoo

Contents of /media-gfx/imagemagick/imagemagick-5.4.7.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Tue Sep 14 18:38:41 2004 UTC (14 years, 1 month ago) by sekretarz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Ebuild clean up

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/imagemagick-5.4.7.4-r1.ebuild,v 1.12 2004/06/24 22:42:45 agriffis Exp $
4
5 IUSE="perl X cups xml2 lcms"
6
7 inherit libtool perl-module eutils
8
9 MY_PN=ImageMagick
10 MY_P=${MY_PN}-${PV%.*}-${PV#*.*.*.}
11 S=${WORKDIR}/${MY_PN}-${PV%.*}
12 DESCRIPTION="A collection of tools and libraries for many image formats"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
14 HOMEPAGE="http://www.imagemagick.org/"
15
16 SLOT="0"
17 LICENSE="as-is"
18 KEYWORDS="x86 ppc sparc ~alpha ~mips ~hppa"
19
20 DEPEND=">=sys-apps/sed-4
21 media-libs/libpng
22 >=app-arch/bzip2-1
23 >=sys-libs/zlib-1.1.3
24 >=media-libs/freetype-2.0
25 >=media-libs/jpeg-6b
26 >=media-libs/tiff-3.5.5
27 X? ( virtual/x11
28 >=app-text/dgs-0.5.9.1 )
29 cups? ( virtual/ghostscript )
30 lcms? ( >=media-libs/lcms-1.06 )
31 perl? ( >=dev-lang/perl-5 )
32 xml2? ( >=dev-libs/libxml2-2.4.10 )"
33
34 src_compile() {
35 elibtoolize
36
37 local myconf=""
38 use perl || myconf="--without-perl"
39 use lcms || myconf="${myconf} --without-lcms"
40 use xml2 || myconf="${myconf} --without-xml"
41 use X || myconf="${myconf} --with-x=no"
42
43 # Netscape is still used ? More people should have Mozilla
44 sed -i 's:netscape:mozilla:g' configure
45
46 #patch to allow building by perl
47 epatch ${FILESDIR}/perlpatch.diff
48
49 econf \
50 --enable-shared \
51 --enable-static \
52 --enable-lzw \
53 --with-ttf \
54 --with-fpx \
55 --without-gslib \
56 --without-hdf \
57 --with-jbig \
58 --with-wmf \
59 --with-threads \
60 ${myconf} || die "bad configure"
61 emake || die "compile problem"
62
63 # More perl stuff
64 cd PerlMagick
65 make clean
66 perl-module_src_prep
67 cd ..
68 }
69
70 src_install() {
71 myinst="prefix=${D}/usr PREFIX=${D}/usr"
72 myinst="${myinst} MagickSharePath=${D}/usr/share/ImageMagick/"
73 myinst="${myinst} pkgdocdir=${D}/usr/share/doc/${PF}/html/"
74 myinst="${myinst} mandir=${D}/usr/share/man"
75 myinst="${myinst} datadir=${D}/usr/share"
76
77 mydoc="*.txt"
78 perl-module_src_install
79
80 rm -f ${D}/usr/share/ImageMagick/*.txt
81 }

  ViewVC Help
Powered by ViewVC 1.1.20