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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Tue Oct 31 10:11:33 2006 UTC (11 years, 8 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.2_rc1-r1)

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.4.2-r1.ebuild,v 1.12 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 arm hppa ia64 ~mips ppc ppc64 sh 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-5.8.6-r6
44 !=dev-lang/perl-5.8.7 )
45 !dev-perl/perlmagick
46 graphviz? ( media-gfx/graphviz )
47 fpx? ( media-libs/libfpx )"
48
49 RDEPEND="${DEPEND}
50 >=sys-devel/libtool-1.5.2-r6"
51 pkg_setup() {
52 ewarn "Please, remember that dev-perl/perlmagick is now"
53 ewarn "part of media-gfx/imagemagick"
54 }
55
56 src_unpack() {
57 unpack ${A}
58 cd ${S}
59
60 chmod +x config.sub
61 epatch ${FILESDIR}/imagemagick-perlmagick.patch
62 }
63
64 src_compile() {
65 econf \
66 --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
67 --enable-shared \
68 --enable-lzw \
69 --without-hdf \
70 --with-threads \
71 --with-bzlib \
72 --with-modules \
73 --with-zlib \
74 --without-perl \
75 $(use_with X x) \
76 $(use_with wmf) \
77 $(use_with fpx) \
78 $(use_with jbig) \
79 $(use_with tiff) \
80 $(use_with lcms) \
81 $(use_with xml) \
82 $(use_with jpeg2k jp2) \
83 $(use_with jpeg jpeg) \
84 $(use_with mpeg mpeg2) \
85 $(use_with cups gslib) \
86 $(use_with graphviz dot) \
87 $(use_with truetype ttf) || die "econf failed"
88
89 emake || die "compile problem"
90
91 }
92
93 src_install() {
94
95 make DESTDIR=${D} install
96
97 if use perl ; then
98 cd ${S}/PerlMagick
99 perl-app_src_prep
100 perl-app_src_compile
101 perl-module_src_install
102 cd ${S}
103 fi
104
105 if use doc; then
106 dohtml -r www/*
107 dodoc LICENSE NEWS ChangeLog AUTHORS README.txt QuickStart.txt Install-unix.txt
108 fi
109
110 #bug 69705
111 rm -f ${D}/usr/$(get_libdir)/libltdl*
112
113 #bug 73464 and 78740
114 rm -f ${D}/usr/lib/perl5/*/*/perllocal.pod
115
116 dosed "s:-I/usr/include ::" /usr/bin/Magick-config
117 dosed "s:-I/usr/include ::" /usr/bin/Magick++-config
118 }

  ViewVC Help
Powered by ViewVC 1.1.20