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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 11 20:59:45 2008 UTC (10 years, 1 month ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.5_rc2)

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.3.8.3.ebuild,v 1.1 2008/02/03 15:18:47 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 svg? ( >=gnome-base/librsvg-2.9.0 )
35 tiff? ( >=media-libs/tiff-3.5.5 )
36 xml? ( >=dev-libs/libxml2-2.4.10 )
37 truetype? ( =media-libs/freetype-2* media-fonts/corefonts )
38 wmf? ( >=media-libs/libwmf-0.2.8 )
39 zlib? ( sys-libs/zlib )
40 X? (
41 x11-libs/libXext
42 x11-libs/libXt
43 x11-libs/libICE
44 x11-libs/libSM
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 }
62
63 src_unpack() {
64 unpack ${A}
65
66 # fix doc dir, bug 91911
67 sed -i -e \
68 's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/${PF}":g' \
69 "${S}"/configure || die
70
71 # bug 206925
72 epatch "${FILESDIR}"/${P}-hpgl.patch
73 }
74
75 src_compile() {
76 local quantum
77 if use q32 ; then
78 quantum="${quantum} --with-quantum-depth=32"
79 elif use q8 ; then
80 quantum="${quantum} --with-quantum-depth=8"
81 else
82 quantum="${quantum} --with-quantum-depth=16"
83 fi
84
85 econf \
86 --with-ltdl-include=/usr/include \
87 --with-ltdl-lib=/usr/$(get_libdir) \
88 --with-threads \
89 --with-modules \
90 $(use_with perl) \
91 --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
92 ${quantum} \
93 $(use_enable hdri) \
94 $(use_with truetype windows-font-dir /usr/share/fonts/corefonts) \
95 $(use_with !nocxx magick-plus-plus) \
96 $(use_with bzip2 bzlib) \
97 $(use_with djvu) \
98 $(use_with fontconfig) \
99 $(use_with fpx) \
100 $(use_with gs dps) \
101 $(use_with gs gslib) \
102 $(use_with graphviz gvc) \
103 $(use_with jbig) \
104 $(use_with jpeg jpeg) \
105 $(use_with jpeg2k jp2) \
106 $(use_with lcms) \
107 $(use_with png) \
108 $(use_with svg rsvg) \
109 $(use_with tiff) \
110 $(use_with truetype freetype) \
111 $(use_with wmf) \
112 $(use_with xml) \
113 $(use_with zlib) \
114 $(use_with X x) \
115 $(use_with openexr) \
116 || die "econf failed"
117 emake || die "compile problem"
118 }
119
120 src_install() {
121 emake DESTDIR="${D}" install || die "Installation of files into image failed"
122
123 # dont need these files with runtime plugins
124 rm -f "${D}"/usr/$(get_libdir)/*/*/*.{la,a}
125
126 use doc || rm -r "${D}"/usr/share/doc/${PF}/{www,images,index.html}
127 dodoc NEWS ChangeLog AUTHORS README.txt
128
129 # Fix perllocal.pod file collision
130 use perl && fixlocalpod
131 }

  ViewVC Help
Powered by ViewVC 1.1.20