annotate media-gfx/graphicsmagick/graphicsmagick-1.3.6.ebuild @ 158:cc901061d3c6

update to pgpool-II 2.2.4
author holger
date Wed, 09 Sep 2009 17:22:32 +0200
parents 2cb495e793ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
1 # Copyright 1999-2009 Gentoo Foundation
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
3 # $Header: $
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
4
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
5 EAPI="2"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
6
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
7 inherit flag-o-matic perl-app
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
8
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
9 MY_P=${P/graphicsm/GraphicsM}
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
10
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
11 DESCRIPTION="A collection of tools and libraries for many image formats"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
12 HOMEPAGE="http://www.graphicsmagick.org/"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
14
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
15 LICENSE="as-is"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
16 SLOT="0"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
17 KEYWORDS="~amd64 ~x86"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
18 IUSE="bzip2 cxx debug fpx imagemagick jbig +jpeg +jpeg2k lcms openmp
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
19 perl +png q16 q32 +svg +threads tiff +truetype X wmf zlib"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
20
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
21 DEPEND="bzip2? ( app-arch/bzip2 )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
22 fpx? ( media-libs/libfpx )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
23 virtual/ghostscript
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
24 jbig? ( media-libs/jbigkit )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
25 jpeg? ( media-libs/jpeg )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
26 jpeg2k? ( >=media-libs/jasper-1.701.0 )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
27 lcms? ( media-libs/lcms )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
28 media-video/mpeg2vidcodec
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
29 openmp? ( sys-devel/gcc[openmp] )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
30 perl? ( dev-lang/perl )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
31 png? ( media-libs/libpng )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
32 svg? ( dev-libs/libxml2 )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
33 tiff? ( >=media-libs/tiff-3.8.2 )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
34 truetype? ( >=media-libs/freetype-2.0 )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
35 wmf? ( media-libs/libwmf )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
36 X? ( x11-libs/libXext
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
37 x11-libs/libSM
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
38 x11-libs/libX11
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
39 x11-libs/libICE )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
40 imagemagick? ( !media-gfx/imagemagick )"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
41 RDEPEND=${DEPEND}
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
42 S=${WORKDIR}/${MY_P}
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
43
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
44 src_configure() {
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
45 local quantumDepth="--with-quantum-depth="
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
46 if use q16 ; then
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
47 quantumDepth="${quantumDepth}16"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
48 elif use q32 ; then
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
49 quantumDepth="${quantumDepth}32"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
50 else
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
51 quantumDepth="${quantumDepth}8"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
52 fi
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
53
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
54 use debug && filter-flags -fomit-frame-pointer
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
55
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
56 econf \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
57 ${quantumDepth} \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
58 $( use_enable imagemagick magick-compat ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
59 $( use_enable openmp ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
60 $( use_with bzip2 bzlib ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
61 $( use_with fpx ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
62 $( use_with jbig ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
63 $( use_with jpeg ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
64 $( use_with jpeg2k jp2 ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
65 $( use_with lcms ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
66 $( use_with cxx magick-plus-plus ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
67 $( use_with perl ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
68 $( use_with png ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
69 $( use_with tiff ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
70 $( use_with truetype ttf ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
71 $( use_with X x ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
72 $( use_with svg xml ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
73 $( use_with wmf ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
74 $( use_with zlib ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
75 $( use_with threads ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
76 $( use_enable debug ccmalloc ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
77 $( use_enable debug prof ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
78 $( use_enable debug gcov ) \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
79 --disable-gprof \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
80 --enable-largefile \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
81 --without-included-ltdl \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
82 --without-gslib \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
83 --without-dps \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
84 --without-umem \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
85 --without-trio \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
86 --with-modules \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
87 --enable-shared
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
88 }
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
89
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
90 src_install() {
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
91 emake DESTDIR="${D}" install || die "Installation failed"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
92 dodoc README.txt ChangeLog* || die "dodoc failed."
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
93
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
94 # Fix perllocal.pod file collision
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
95 use perl && fixlocalpod
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
96 }
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
97
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
98 pkg_postinst() {
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
99 elog "For RAW image suport please install media-gfx/dcraw."
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
100 elog "To read gnuplot files please install sci-visualization/gnuplot."
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
101 }