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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Dec 11 06:32:21 2011 UTC (6 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

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

1 # Copyright 1999-2011 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.3.0.ebuild,v 1.2 2011/11/16 10:21:34 jlec 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 perl png q32 q64 q8 raw static-libs svg tiff truetype video_cards_nvidia webp wmf X xml zlib"
18
19 # libtool is required for loading plugins
20 RDEPEND=">=sys-devel/libtool-2.2.6b
21 autotrace? ( >=media-gfx/autotrace-0.31.1 )
22 bzip2? ( app-arch/bzip2 )
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? ( video_cards_nvidia? ( x11-drivers/nvidia-drivers >=dev-util/nvidia-cuda-toolkit-3.1 ) )
35 openexr? ( media-libs/openexr )
36 perl? ( >=dev-lang/perl-5.8.6-r6 )
37 png? ( >=media-libs/libpng-1.4:0 )
38 raw? ( media-gfx/ufraw )
39 svg? ( >=gnome-base/librsvg-2.9.0 )
40 tiff? ( >=media-libs/tiff-3.5.5:0 )
41 truetype? ( media-libs/freetype:2
42 corefonts? ( media-fonts/corefonts ) )
43 webp? ( media-libs/libwebp )
44 wmf? ( >=media-libs/libwmf-0.2.8 )
45 X? (
46 x11-libs/libXext
47 x11-libs/libXt
48 x11-libs/libICE
49 x11-libs/libSM
50 )
51 xml? ( >=dev-libs/libxml2-2.4.10 )
52 lzma? ( app-arch/xz-utils )
53 zlib? ( sys-libs/zlib )
54 !dev-perl/perlmagick
55 !media-gfx/graphicsmagick[imagemagick]"
56 DEPEND="${RDEPEND}
57 >=sys-apps/sed-4
58 X? ( x11-proto/xextproto )"
59
60 S=${WORKDIR}/${MY_P}
61
62 RESTRICT="perl? ( userpriv )"
63
64 DOCS=( AUTHORS.txt ChangeLog NEWS.txt README.txt )
65
66 src_configure() {
67 local depth=16
68 use q8 && depth=8
69 use q32 && depth=32
70 use q64 && depth=64
71
72 local opencl=disable
73 if use opencl && use video_cards_nvidia; then
74 opencl=enable
75 fi
76
77 local openmp=disable
78 if use openmp && tc-has-openmp; then
79 openmp=enable
80 fi
81
82 local myconf="--without-windows-font-dir"
83 if use truetype; then
84 myconf="$(use_with corefonts windows-font-dir /usr/share/fonts/corefonts)"
85 fi
86
87 econf \
88 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
89 $(use_enable static-libs static) \
90 $(use_enable hdri) \
91 --${opencl}-opencl \
92 --with-threads \
93 --without-included-ltdl \
94 --with-ltdl-include="${EPREFIX}/usr/include" \
95 --with-ltdl-lib="${EPREFIX}/usr/$(get_libdir)" \
96 --with-modules \
97 --with-quantum-depth=${depth} \
98 $(use_with cxx magick-plus-plus) \
99 $(use_with perl) \
100 --with-perl-options='INSTALLDIRS=vendor' \
101 --with-gs-font-dir="${EPREFIX}/usr/share/fonts/default/ghostscript" \
102 $(use_with bzip2 bzlib) \
103 $(use_with X x) \
104 $(use_with zlib) \
105 $(use_with autotrace) \
106 $(use_with gs dps) \
107 $(use_with djvu) \
108 --with-dejavu-font-dir="${EPREFIX}/usr/share/fonts/dejavu" \
109 $(use_with fftw) \
110 $(use_with fpx) \
111 $(use_with fontconfig) \
112 $(use_with truetype freetype) \
113 $(use_with gs gslib) \
114 $(use_with graphviz gvc) \
115 $(use_with jbig) \
116 $(use_with jpeg) \
117 $(use_with jpeg2k jp2) \
118 --without-lcms \
119 $(use_with lcms lcms2) \
120 $(use_with lqr) \
121 $(use_with lzma) \
122 $(use_with openexr) \
123 $(use_with png) \
124 $(use_with svg rsvg) \
125 $(use_with tiff) \
126 $(use_with webp) \
127 ${myconf} \
128 $(use_with wmf) \
129 $(use_with xml) \
130 --${openmp}-openmp
131 }
132
133 src_test() {
134 if has_version ~${CATEGORY}/${P}; then
135 emake -j1 check
136 else
137 ewarn "Skipping tests because installed version doesn't match."
138 fi
139 }
140
141 src_install() {
142 default
143
144 if use perl; then
145 find "${ED}" -type f -name perllocal.pod -delete
146 find "${ED}" -depth -mindepth 1 -type d -empty -delete
147 fi
148
149 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
150 }

  ViewVC Help
Powered by ViewVC 1.1.20