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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu May 10 14:15:39 2012 UTC (6 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha102/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.5.3-r1.ebuild,v 1.2 2012/05/05 07:00:21 jdhore Exp $
4
5 EAPI=4
6 inherit multilib toolchain-funcs versionator
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 ~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 gs hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png q32 q64 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
18
19 RDEPEND=">=sys-devel/libtool-2.2.6b
20 autotrace? ( >=media-gfx/autotrace-0.31.1 )
21 bzip2? ( app-arch/bzip2 )
22 corefonts? ( media-fonts/corefonts )
23 djvu? ( app-text/djvu )
24 fftw? ( sci-libs/fftw:3.0 )
25 fontconfig? ( media-libs/fontconfig )
26 fpx? ( >=media-libs/libfpx-1.3.0-r1 )
27 graphviz? ( >=media-gfx/graphviz-2.6 )
28 gs? ( app-text/ghostscript-gpl )
29 jbig? ( media-libs/jbigkit )
30 jpeg? ( virtual/jpeg )
31 jpeg2k? ( media-libs/jasper )
32 lcms? ( media-libs/lcms:2 )
33 lqr? ( >=media-libs/liblqr-0.1.0 )
34 opencl? ( virtual/opencl )
35 openexr? ( media-libs/openexr )
36 pango? ( x11-libs/pango )
37 perl? ( >=dev-lang/perl-5.8.6-r6 )
38 png? ( media-libs/libpng:0 )
39 raw? ( media-gfx/ufraw )
40 svg? ( >=gnome-base/librsvg-2.9.0 )
41 tiff? ( media-libs/tiff:0 )
42 truetype? (
43 media-libs/freetype:2
44 media-fonts/urw-fonts
45 )
46 webp? ( media-libs/libwebp )
47 wmf? ( >=media-libs/libwmf-0.2.8 )
48 X? (
49 x11-libs/libXext
50 x11-libs/libXt
51 x11-libs/libICE
52 x11-libs/libSM
53 )
54 xml? ( >=dev-libs/libxml2-2.4.10 )
55 lzma? ( app-arch/xz-utils )
56 zlib? ( sys-libs/zlib )"
57 DEPEND="${RDEPEND}
58 !media-gfx/graphicsmagick[imagemagick]
59 app-arch/xz-utils
60 virtual/pkgconfig
61 >=sys-apps/sed-4
62 X? ( x11-proto/xextproto )"
63
64 REQUIRED_USE="corefonts? ( truetype )
65 test? ( corefonts )"
66
67 S=${WORKDIR}/${MY_P}
68
69 RESTRICT="perl? ( userpriv )"
70
71 DOCS="AUTHORS.txt ChangeLog NEWS.txt README.txt"
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 if use openmp && tc-has-openmp; then
81 openmp=enable
82 fi
83
84 econf \
85 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
86 $(use_enable static-libs static) \
87 $(use_enable hdri) \
88 $(use_enable opencl) \
89 --with-threads \
90 --without-included-ltdl \
91 --with-ltdl-include="${EPREFIX}/usr/include" \
92 --with-ltdl-lib="${EPREFIX}/usr/$(get_libdir)" \
93 --with-modules \
94 --with-quantum-depth=${depth} \
95 $(use_with cxx magick-plus-plus) \
96 $(use_with perl) \
97 --with-perl-options='INSTALLDIRS=vendor' \
98 --with-gs-font-dir="${EPREFIX}/usr/share/fonts/urw-fonts" \
99 $(use_with bzip2 bzlib) \
100 $(use_with X x) \
101 $(use_with zlib) \
102 $(use_with autotrace) \
103 $(use_with gs dps) \
104 $(use_with djvu) \
105 --with-dejavu-font-dir="${EPREFIX}/usr/share/fonts/dejavu" \
106 $(use_with fftw) \
107 $(use_with fpx) \
108 $(use_with fontconfig) \
109 $(use_with truetype freetype) \
110 $(use_with gs gslib) \
111 $(use_with graphviz gvc) \
112 $(use_with jbig) \
113 $(use_with jpeg) \
114 $(use_with jpeg2k jp2) \
115 --without-lcms \
116 $(use_with lcms lcms2) \
117 $(use_with lqr) \
118 $(use_with lzma) \
119 $(use_with openexr) \
120 $(use_with pango) \
121 $(use_with png) \
122 $(use_with svg rsvg) \
123 $(use_with tiff) \
124 $(use_with webp) \
125 $(use_with corefonts windows-font-dir /usr/share/fonts/corefonts) \
126 $(use_with wmf) \
127 $(use_with xml) \
128 --${openmp}-openmp
129 }
130
131 src_test() {
132 has_version media-gfx/imagemagick || emake -j1 check
133 }
134
135 src_install() {
136 default
137
138 if use perl; then
139 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
140 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
141 fi
142
143 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
144 }

  ViewVC Help
Powered by ViewVC 1.1.20