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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jun 18 10:35:55 2006 UTC (12 years, 4 months ago) by sekretarz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
 Ebuild clean up, fixed problem with new libpng, bug #136452
(Portage version: 2.1.1_pre1-r1)
 (Signed Manifest commit)

1 # Copyright 1999-2006 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.2.2.0-r1.ebuild,v 1.3 2006/04/02 20:35:49 vapier Exp $
4
5 inherit libtool flag-o-matic eutils perl-app
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="mirror://sourceforge/imagemagick/${MY_P2}.tar.bz2"
15
16 LICENSE="as-is"
17 SLOT="0"
18 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
19 IUSE="X cups jpeg jpeg2k lcms mpeg png truetype tiff xml wmf jbig perl graphviz fpx doc"
20
21 DEPEND=">=sys-apps/sed-4
22 app-arch/bzip2
23 sys-libs/zlib
24 X? ( || ( ( x11-libs/libXext
25 x11-libs/libXt
26 x11-libs/libICE
27 x11-libs/libSM
28 )
29 virtual/x11
30 )
31 )
32 cups? ( virtual/ghostscript )
33 lcms? ( >=media-libs/lcms-1.06 )
34 mpeg? ( >=media-video/mpeg2vidcodec-12 )
35 png? ( media-libs/libpng )
36 tiff? ( >=media-libs/tiff-3.5.5 )
37 xml? ( >=dev-libs/libxml2-2.4.10 )
38 truetype? ( =media-libs/freetype-2* )
39 wmf? ( >=media-libs/libwmf-0.2.8 )
40 jbig? ( media-libs/jbigkit )
41 jpeg? ( >=media-libs/jpeg-6b )
42 jpeg2k? ( media-libs/jasper )
43 perl? ( dev-lang/perl )
44 !dev-perl/perlmagick
45 graphviz? ( media-gfx/graphviz )
46 fpx? ( media-libs/libfpx )"
47
48 RDEPEND="${DEPEND}
49 >=sys-devel/libtool-1.5.2-r6"
50 pkg_setup() {
51 ewarn "Please, remember that dev-perl/perlmagick is now"
52 ewarn "part of media-gfx/imagemagick"
53 }
54
55 src_unpack() {
56 unpack ${A}
57 cd ${S}
58
59 chmod +x config.sub
60 }
61
62 src_compile() {
63 econf \
64 --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
65 --enable-shared \
66 --enable-lzw \
67 --without-hdf \
68 --with-threads \
69 --with-bzlib \
70 --with-modules \
71 --with-zlib \
72 --without-perl \
73 $(use_with X x) \
74 $(use_with wmf) \
75 $(use_with fpx) \
76 $(use_with jbig) \
77 $(use_with tiff) \
78 $(use_with lcms) \
79 $(use_with xml) \
80 $(use_with jpeg2k jp2) \
81 $(use_with jpeg jpeg) \
82 $(use_with mpeg mpeg2) \
83 $(use_with cups gslib) \
84 $(use_with graphviz dot) \
85 $(use_with truetype ttf) || die "econf failed"
86
87 emake || die "compile problem"
88
89 }
90
91 src_install() {
92
93 make DESTDIR=${D} install
94
95 if use perl ; then
96 cd ${S}/PerlMagick
97 perl-app_src_prep
98 perl-app_src_compile
99 perl-module_src_install
100 cd ${S}
101 fi
102
103 if use doc; then
104 dohtml -r www/*
105 dodoc LICENSE NEWS ChangeLog AUTHORS README.txt QuickStart.txt Install-unix.txt
106 fi
107
108 #bug 69705
109 rm -f ${D}/usr/lib/libltdl*
110
111 #bug 73464 and 78740
112 rm -f ${D}/usr/lib/perl5/*/*/perllocal.pod
113
114 dosed "s:-I/usr/include ::" /usr/bin/Magick-config
115 dosed "s:-I/usr/include ::" /usr/bin/Magick++-config
116 }

  ViewVC Help
Powered by ViewVC 1.1.20