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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Feb 7 20:23:57 2007 UTC (11 years, 8 months ago) by sekretarz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Security clean up, bug #164182
(Portage version: 2.1.2-r5)

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.9.5-r1.ebuild,v 1.2 2006/09/22 13:51:19 mcummings Exp $
4
5 inherit eutils multilib perl-app
6
7 MY_PN=ImageMagick
8 MY_P=${MY_PN}-${PV%.*}
9 MY_P2=${MY_PN}-${PV%.*}-${PV#*.*.*.}
10
11 DESCRIPTION="A collection of tools and libraries for many image formats"
12 HOMEPAGE="http://www.imagemagick.org/"
13 SRC_URI="mirror://sourceforge/imagemagick/${MY_P2}.tar.bz2"
14
15 LICENSE="as-is"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
18 IUSE="bzip2 doc fpx graphviz gs jbig jpeg jpeg2k lcms mpeg nocxx perl png tiff truetype X wmf xml zlib"
19
20 RDEPEND="bzip2? ( app-arch/bzip2 )
21 zlib? ( sys-libs/zlib )
22 media-fonts/corefonts
23 X? (
24 x11-libs/libXext
25 x11-libs/libXt
26 x11-libs/libICE
27 x11-libs/libSM
28 )
29 gs? ( virtual/ghostscript )
30 lcms? ( >=media-libs/lcms-1.06 )
31 mpeg? ( >=media-video/mpeg2vidcodec-12 )
32 png? ( media-libs/libpng )
33 tiff? ( >=media-libs/tiff-3.5.5 )
34 xml? ( >=dev-libs/libxml2-2.4.10 )
35 truetype? ( =media-libs/freetype-2* )
36 wmf? ( >=media-libs/libwmf-0.2.8 )
37 jbig? ( media-libs/jbigkit )
38 jpeg? ( >=media-libs/jpeg-6b )
39 jpeg2k? ( media-libs/jasper )
40 perl? ( >=dev-lang/perl-5.8.6-r6 !=dev-lang/perl-5.8.7 )
41 !dev-perl/perlmagick
42 !sys-apps/compare
43 graphviz? ( media-gfx/graphviz )
44 fpx? ( media-libs/libfpx )"
45 DEPEND="${RDEPEND}
46 >=sys-apps/sed-4
47 >=sys-devel/libtool-1.5.2-r6
48 X? ( x11-proto/xextproto )"
49
50 S=${WORKDIR}/${MY_P}
51
52 src_unpack() {
53 unpack ${A}
54 cd "${S}"
55 chmod +x config.sub
56 epatch "${FILESDIR}"/${PN}-6.2.5.4-docs.patch
57 epatch "${FILESDIR}"/imagemagick-perl.patch
58 }
59
60 src_compile() {
61 econf \
62 --with-threads \
63 --with-modules \
64 $(use_with perl) \
65 --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
66 --with-windows-font-dir=/usr/share/fonts/corefonts \
67 $(use_with !nocxx magick-plus-plus) \
68 $(use_with bzip2 bzlib) \
69 $(use_with fpx) \
70 $(use_with gs gslib) \
71 $(use_with graphviz gvc) \
72 $(use_with jbig) \
73 $(use_with jpeg jpeg) \
74 $(use_with jpeg2k jp2) \
75 $(use_with lcms) \
76 $(use_with mpeg mpeg2) \
77 $(use_with png) \
78 $(use_with tiff) \
79 $(use_with truetype ttf) \
80 $(use_with wmf) \
81 $(use_with xml) \
82 $(use_with zlib) \
83 $(use_with X x) \
84 || die "econf failed"
85 emake || die "compile problem"
86
87 }
88
89 src_install() {
90 make DESTDIR="${D}" install || die
91 dosed "s:-I/usr/include ::" /usr/bin/Magick{,++}-config
92
93 # dont need these files with runtime plugins
94 rm -f "${D}"/usr/$(get_libdir)/*/*/*.{la,a}
95
96 ! use doc && rm -r "${D}"/usr/share/doc/${PF}/html
97 dodoc NEWS ChangeLog AUTHORS README.txt QuickStart.txt Install-unix.txt
98
99 # Fix perllocal.pod file collision
100 use perl && fixlocalpod
101
102 }

  ViewVC Help
Powered by ViewVC 1.1.20