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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 28 08:06:45 2008 UTC (10 years, 4 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc7 i686)

1 # Copyright 1999-2008 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.4.1.3.ebuild,v 1.1 2008/05/25 12:38:52 maekke 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="ftp://ftp.imagemagick.org/pub/${MY_PN}/${MY_P2}.tar.bz2"
14
15 LICENSE="imagemagick"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
18 IUSE="bzip2 djvu doc fontconfig fpx graphviz gs hdri jbig jpeg jpeg2k lcms nocxx
19 openexr perl png q8 q32 svg tiff truetype X wmf xml zlib"
20
21 RDEPEND="bzip2? ( app-arch/bzip2 )
22 djvu? ( app-text/djvu )
23 fontconfig? ( media-libs/fontconfig )
24 fpx? ( media-libs/libfpx )
25 graphviz? ( >=media-gfx/graphviz-2.6 )
26 gs? ( virtual/ghostscript )
27 jbig? ( media-libs/jbigkit )
28 jpeg? ( >=media-libs/jpeg-6b )
29 jpeg2k? ( media-libs/jasper )
30 lcms? ( >=media-libs/lcms-1.06 )
31 openexr? ( media-libs/openexr )
32 perl? ( >=dev-lang/perl-5.8.6-r6 !=dev-lang/perl-5.8.7 )
33 png? ( media-libs/libpng )
34 tiff? ( >=media-libs/tiff-3.5.5 )
35 xml? ( >=dev-libs/libxml2-2.4.10 )
36 truetype? ( =media-libs/freetype-2* media-fonts/corefonts )
37 wmf? ( >=media-libs/libwmf-0.2.8 )
38 zlib? ( sys-libs/zlib )
39 X? (
40 x11-libs/libXext
41 x11-libs/libXt
42 x11-libs/libICE
43 x11-libs/libSM
44 svg? ( >=gnome-base/librsvg-2.9.0 )
45 )
46 !dev-perl/perlmagick
47 !sys-apps/compare"
48
49 DEPEND="${RDEPEND}
50 >=sys-apps/sed-4
51 >=sys-devel/libtool-1.5.2-r6
52 X? ( x11-proto/xextproto )"
53
54 S="${WORKDIR}/${MY_P}"
55
56 pkg_setup() {
57 if use djvu && ! built_with_use app-text/djvu threads; then
58 eerror "app-text/djvu has to be built with threads support."
59 die "build app-text/djvu with USE=\"threads\""
60 fi
61 # for now, only build svg support when X is enabled, as librsvg
62 # pulls in quite some X dependencies.
63 if use svg && ! use X ; then
64 elog "the svg USE-flag requires the X USE-flag set."
65 elog "disabling svg support for now."
66 fi
67 }
68
69 src_unpack() {
70 unpack ${A}
71
72 # fix doc dir, bug 91911
73 sed -i -e \
74 's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/${PF}":g' \
75 "${S}"/configure || die
76
77 }
78
79 src_compile() {
80 local myconf
81 if use q32 ; then
82 myconf="${myconf} --with-quantum-depth=32"
83 elif use q8 ; then
84 myconf="${myconf} --with-quantum-depth=8"
85 else
86 myconf="${myconf} --with-quantum-depth=16"
87 fi
88
89 if use X && use svg ; then
90 myconf="${myconf} --with-rsvg"
91 else
92 myconf="${myconf} --without-rsvg"
93 fi
94
95 econf \
96 ${myconf} \
97 --without-included-ltdl \
98 --with-ltdl-include=/usr/include \
99 --with-ltdl-lib=/usr/$(get_libdir) \
100 --with-threads \
101 --with-modules \
102 $(use_with perl) \
103 --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
104 $(use_enable hdri) \
105 $(use_with truetype windows-font-dir /usr/share/fonts/corefonts) \
106 $(use_with !nocxx magick-plus-plus) \
107 $(use_with bzip2 bzlib) \
108 $(use_with djvu) \
109 $(use_with fontconfig) \
110 $(use_with fpx) \
111 $(use_with gs dps) \
112 $(use_with gs gslib) \
113 $(use_with graphviz gvc) \
114 $(use_with jbig) \
115 $(use_with jpeg jpeg) \
116 $(use_with jpeg2k jp2) \
117 $(use_with lcms) \
118 $(use_with png) \
119 $(use_with svg rsvg) \
120 $(use_with tiff) \
121 $(use_with truetype freetype) \
122 $(use_with wmf) \
123 $(use_with xml) \
124 $(use_with zlib) \
125 $(use_with X x) \
126 $(use_with openexr) \
127 || die "econf failed"
128 emake || die "compile problem"
129 }
130
131 src_install() {
132 emake DESTDIR="${D}" install || die "Installation of files into image failed"
133
134 # dont need these files with runtime plugins
135 rm -f "${D}"/usr/$(get_libdir)/*/*/*.{la,a}
136
137 use doc || rm -r "${D}"/usr/share/doc/${PF}/{www,images,index.html}
138 dodoc NEWS.txt ChangeLog AUTHORS.txt README.txt
139
140 # Fix perllocal.pod file collision
141 use perl && fixlocalpod
142 }

  ViewVC Help
Powered by ViewVC 1.1.20