annotate media-gfx/graphicsmagick/graphicsmagick-1.3.7.ebuild @ 176:850bb6467b62

sync graphicsmagick with portage
author holger
date Tue, 24 Nov 2009 07:52:37 +0100
parents 69c1065aa018
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
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/graphicsmagick/graphicsmagick-1.3.7.ebuild,v 1.1 2009/11/24 00:20:48 bicatali Exp $
152
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
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
7 inherit toolchain-funcs flag-o-matic perl-app
152
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
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
11 DESCRIPTION="Collection of tools and libraries for many image formats"
152
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
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
15 LICENSE="MIT"
152
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"
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
18 IUSE="bzip2 cxx debug fpx -gs imagemagick jbig +jpeg +jpeg2k lcms openmp
152
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
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
21 RDEPEND="bzip2? ( app-arch/bzip2 )
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
22 fpx? ( media-libs/libfpx )
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
23 gs? ( virtual/ghostscript )
152
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 perl? ( dev-lang/perl )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
29 png? ( media-libs/libpng )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
30 svg? ( dev-libs/libxml2 )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
31 tiff? ( >=media-libs/tiff-3.8.2 )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
32 truetype? ( >=media-libs/freetype-2.0 )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
33 wmf? ( media-libs/libwmf )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
34 X? ( x11-libs/libXext
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
35 x11-libs/libSM
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
36 x11-libs/libX11
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
37 x11-libs/libICE )
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
38 imagemagick? ( !media-gfx/imagemagick )"
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
39
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
40 DEPEND="${RDEPEND}"
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
41
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
42 S="${WORKDIR}/${MY_P}"
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
43
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
44 pkg_setup() {
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
45 if use openmp &&
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
46 [[ $(tc-getCC)$ == *gcc* ]] &&
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
47 ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] ||
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
48 ! built_with_use sys-devel/gcc openmp )
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
49 then
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
50 ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
51 ewarn "If you want to build fftw with OpenMP, abort now,"
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
52 ewarn "and switch CC to an OpenMP capable compiler"
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
53 epause 5
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
54 fi
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
55 }
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
56
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
57 src_configure() {
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
58 local quantumDepth
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
59 if use q16 ; then
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
60 quantumDepth="16"
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
61 elif use q32 ; then
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
62 quantumDepth="32"
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
63 else
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
64 quantumDepth="8"
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
65 fi
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
66
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
67 use debug && filter-flags -fomit-frame-pointer
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
68
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
69 econf \
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
70 --enable-shared \
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
71 --enable-largefile \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
72 --without-included-ltdl \
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
73 --without-frozenpaths \
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
74 --with-modules \
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
75 --with-quantum-depth=${quantumDepth} \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
76 $(use_enable debug ccmalloc) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
77 $(use_enable debug prof) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
78 $(use_enable debug gcov) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
79 $(use_enable imagemagick magick-compat) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
80 $(use_enable openmp) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
81 $(use_with bzip2 bzlib) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
82 $(use_with cxx magick-plus-plus) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
83 $(use_with fpx) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
84 $(use_with gs gslib) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
85 $(use_with jbig) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
86 $(use_with jpeg) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
87 $(use_with jpeg2k jp2) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
88 $(use_with lcms) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
89 $(use_with perl) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
90 $(use_with png) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
91 $(use_with svg xml) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
92 $(use_with threads) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
93 $(use_with tiff) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
94 $(use_with truetype ttf) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
95 $(use_with wmf) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
96 $(use_with X x) \
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
97 $(use_with zlib)
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
98 }
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
99
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
100 src_test() {
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
101 emake check || die "tests failed"
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
102 }
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
103
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
104 src_install() {
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
105 emake DESTDIR="${D}" install || die "Installation failed"
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
106 dodoc README.txt ChangeLog* NEWS.txt TODO.txt
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
107
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
108 # Fix perllocal.pod file collision
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
109 use perl && fixlocalpod
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
110 }
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
111
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
112 pkg_postinst() {
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
113 elog "For RAW image suport please install media-gfx/dcraw."
176
850bb6467b62 sync graphicsmagick with portage
holger
parents: 162
diff changeset
114 elog "For mpeg suport please install media-video/mpeg2vidcodec."
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
115 elog "To read gnuplot files please install sci-visualization/gnuplot."
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
116 }