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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 23 22:54:47 2012 UTC (6 years, 10 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

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

  ViewVC Help
Powered by ViewVC 1.1.20