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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Oct 4 14:56:57 2012 UTC (2 years, 1 month ago) by ssuominen
Branch: MAIN
Changes since 1.7: +2 -2 lines
ppc stable wrt #428718

(Portage version: 2.2.0_alpha135/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.7.8.7.ebuild,v 1.7 2012/08/28 18:19:59 ranger Exp $
4
5 EAPI=4
6 inherit multilib toolchain-funcs versionator libtool
7
8 MY_P=ImageMagick-$(replace_version_separator 3 '-')
9
10 DESCRIPTION="A collection of tools and libraries for many image formats"
11 HOMEPAGE="http://www.imagemagick.org/"
12 SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
13
14 LICENSE="imagemagick"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
17 IUSE="autotrace bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q64 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
18
19 RESTRICT="perl? ( userpriv )"
20
21 RDEPEND=">=sys-devel/libtool-2.2.6b
22 autotrace? ( >=media-gfx/autotrace-0.31.1 )
23 bzip2? ( app-arch/bzip2 )
24 corefonts? ( media-fonts/corefonts )
25 djvu? ( app-text/djvu )
26 fftw? ( sci-libs/fftw:3.0 )
27 fontconfig? ( media-libs/fontconfig )
28 fpx? ( >=media-libs/libfpx-1.3.0-r1 )
29 graphviz? ( media-gfx/graphviz )
30 jbig? ( media-libs/jbigkit )
31 jpeg? ( virtual/jpeg )
32 jpeg2k? ( media-libs/jasper )
33 lcms? ( media-libs/lcms:2 )
34 lqr? ( media-libs/liblqr )
35 opencl? ( virtual/opencl )
36 openexr? ( media-libs/openexr )
37 pango? ( x11-libs/pango )
38 perl? ( >=dev-lang/perl-5.8.8 )
39 png? ( media-libs/libpng:0 )
40 postscript? ( app-text/ghostscript-gpl )
41 raw? ( media-gfx/ufraw )
42 svg? ( gnome-base/librsvg )
43 tiff? ( media-libs/tiff:0 )
44 truetype? (
45 media-fonts/urw-fonts
46 >=media-libs/freetype-2
47 )
48 webp? ( media-libs/libwebp )
49 wmf? ( media-libs/libwmf )
50 X? (
51 x11-libs/libICE
52 x11-libs/libSM
53 x11-libs/libXext
54 x11-libs/libXt
55 )
56 xml? ( dev-libs/libxml2 )
57 lzma? ( app-arch/xz-utils )
58 zlib? ( sys-libs/zlib )"
59 DEPEND="${RDEPEND}
60 !media-gfx/graphicsmagick[imagemagick]
61 virtual/pkgconfig
62 X? ( x11-proto/xextproto )"
63
64 REQUIRED_USE="corefonts? ( truetype )
65 test? ( corefonts )"
66
67 S=${WORKDIR}/${MY_P}
68
69 src_prepare() {
70 elibtoolize # for Darwin modules
71 }
72
73 src_configure() {
74 local depth=16
75 use q8 && depth=8
76 use q32 && depth=32
77 use q64 && depth=64
78
79 local openmp=disable
80 use openmp && { tc-has-openmp && openmp=enable; }
81
82 econf \
83 $(use_enable static-libs static) \
84 $(use_enable hdri) \
85 $(use_enable opencl) \
86 --with-threads \
87 --without-included-ltdl \
88 --with-ltdl-include="${EPREFIX}"/usr/include \
89 --with-ltdl-lib="${EPREFIX}"/usr/$(get_libdir) \
90 --with-modules \
91 --with-quantum-depth=${depth} \
92 $(use_with cxx magick-plus-plus) \
93 $(use_with perl) \
94 --with-perl-options='INSTALLDIRS=vendor' \
95 --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
96 $(use_with bzip2 bzlib) \
97 $(use_with X x) \
98 $(use_with zlib) \
99 $(use_with autotrace) \
100 $(use_with postscript dps) \
101 $(use_with djvu) \
102 --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
103 $(use_with fftw) \
104 $(use_with fpx) \
105 $(use_with fontconfig) \
106 $(use_with truetype freetype) \
107 $(use_with postscript gslib) \
108 $(use_with graphviz gvc) \
109 $(use_with jbig) \
110 $(use_with jpeg) \
111 $(use_with jpeg2k jp2) \
112 --without-lcms \
113 $(use_with lcms lcms2) \
114 $(use_with lqr) \
115 $(use_with lzma) \
116 $(use_with openexr) \
117 $(use_with pango) \
118 $(use_with png) \
119 $(use_with svg rsvg) \
120 $(use_with tiff) \
121 $(use_with webp) \
122 $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) \
123 $(use_with wmf) \
124 $(use_with xml) \
125 --${openmp}-openmp
126 }
127
128 src_test() {
129 if has_version ~${CATEGORY}/${P}; then
130 emake -j1 check
131 else
132 ewarn "Skipping testsuite because installed version doesn't match."
133 fi
134 }
135
136 src_install() {
137 emake \
138 DESTDIR="${D}" \
139 DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF} \
140 install
141
142 dodoc {AUTHORS,NEWS,README}.txt ChangeLog
143
144 if use perl; then
145 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
146 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
147 fi
148
149 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
150 }

  ViewVC Help
Powered by ViewVC 1.1.20