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

Contents of /media-gfx/imagemagick/imagemagick-6.0.8.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jan 20 23:35:53 2005 UTC (13 years, 5 months ago) by sekretarz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Solved file collision problem, bug #78740. Ebuild clean up
(Portage version: 2.0.51-r14)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/imagemagick-6.0.8.1.ebuild,v 1.4 2005/01/10 19:37:30 sekretarz Exp $
4
5 inherit libtool flag-o-matic eutils
6
7 MY_PN=ImageMagick
8 MY_P=${MY_PN}-${PV%.*}
9 MY_P2=${MY_PN}-${PV%.*}-${PV#*.*.*.}
10
11 S=${WORKDIR}/${MY_P}
12 DESCRIPTION="A collection of tools and libraries for many image formats"
13 HOMEPAGE="http://www.imagemagick.org/"
14 SRC_URI="ftp://ftp.imagemagick.org/pub/${MY_PN}/${MY_P2}.tar.bz2"
15
16 LICENSE="as-is"
17 SLOT="0"
18 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~mips ~ppc64 ia64"
19 IUSE="X cups jpeg lcms mpeg png truetype tiff xml2 wmf jbig perl graphviz"
20
21 DEPEND=">=sys-apps/sed-4
22 app-arch/bzip2
23 sys-libs/zlib
24 X? ( virtual/x11 )
25 cups? ( virtual/ghostscript )
26 jpeg? ( >=media-libs/jpeg-6b )
27 lcms? ( >=media-libs/lcms-1.06 )
28 mpeg? ( media-video/mpeg2vidcodec )
29 png? ( media-libs/libpng )
30 tiff? ( >=media-libs/tiff-3.5.5 )
31 xml2? ( >=dev-libs/libxml2-2.4.10 )
32 truetype? ( =media-libs/freetype-2* )
33 wmf? ( media-libs/libwmf )
34 jbig? ( media-libs/jbigkit )
35 perl? ( dev-lang/perl )
36 graphviz? ( media-gfx/graphviz )"
37
38 src_compile() {
39
40 local myconf=""
41 use X || myconf="${myconf} --with-x=no"
42 use cups || myconf="${myconf} --with-gslib"
43 use jpeg || myconf="${myconf} --without-jpeg --without-jp2"
44 use lcms || myconf="${myconf} --without-lcms"
45 use mpeg || myconf="${myconf} --without-mpeg2"
46 use tiff || myconf="${myconf} --without-tiff"
47 use xml2 || myconf="${myconf} --without-xml"
48 use truetype || myconf="${myconf} --without-ttf"
49 use wmf || myconf="${myconf} --without-wmf"
50 use jbig || myconf="${myconf} --without-jbig"
51 use perl || myconf="${myconf} --without-perl"
52 use graphviz || myconf="${myconf} --without-dot"
53
54 # Netscape is still used ? More people should have Mozilla
55 sed -i 's:netscape:mozilla:g' configure
56
57 econf \
58 --enable-shared \
59 --enable-lzw \
60 --with-fpx \
61 --without-hdf \
62 --with-threads \
63 --with-bzlib \
64 --without-dot \
65 --with-modules \
66 ${myconf} || die
67
68 emake || die "compile problem"
69 }
70
71 src_install() {
72 make DESTDIR=${D} install
73 mydoc="*.txt"
74
75 rm -f ${D}/usr/share/ImageMagick/*.txt
76
77 dosed "s:-I/usr/include ::" /usr/bin/Magick-config
78 dosed "s:-I/usr/include ::" /usr/bin/Magick++-config
79
80 }

  ViewVC Help
Powered by ViewVC 1.1.20