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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jul 31 14:40:12 2012 UTC (10 months, 2 weeks ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
drop old, they are vulnerable anyway

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

  ViewVC Help
Powered by ViewVC 1.1.20