annotate media-gfx/graphicsmagick/graphicsmagick-1.3.10.ebuild @ 205:b0741b66a8cc

sync graphicsmagick with portage
author holger
date Tue, 16 Feb 2010 22:42:42 +0100
parents e5345be1032e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
202
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
204
e5345be1032e sync graphicsmagick with portage
holger
parents: 202
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/graphicsmagick/graphicsmagick-1.3.10.ebuild,v 1.1 2010/02/14 18:05:43 bicatali Exp $
202
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
4
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
5 EAPI="2"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
6
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
7 inherit eutils toolchain-funcs flag-o-matic perl-module
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
8
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
9 MY_P=${P/graphicsm/GraphicsM}
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
10
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
11 DESCRIPTION="Collection of tools and libraries for many image formats"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
12 HOMEPAGE="http://www.graphicsmagick.org/"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
14
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
15 LICENSE="MIT"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
16 SLOT="0"
204
e5345be1032e sync graphicsmagick with portage
holger
parents: 202
diff changeset
17 KEYWORDS="~amd64 ~hppa ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
202
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
18 IUSE="bzip2 cxx debug doc fpx imagemagick jbig jpeg jpeg2k lcms openmp
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
19 perl png q16 q32 svg threads tiff truetype X wmf zlib"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
20
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
21 RDEPEND="app-text/ghostscript-gpl
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
22 bzip2? ( app-arch/bzip2 )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
23 fpx? ( media-libs/libfpx )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
24 jbig? ( media-libs/jbigkit )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
25 jpeg? ( media-libs/jpeg )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
26 jpeg2k? ( >=media-libs/jasper-1.701.0 )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
27 lcms? ( media-libs/lcms )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
28 perl? ( dev-lang/perl )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
29 png? ( media-libs/libpng )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
30 svg? ( dev-libs/libxml2 )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
31 tiff? ( >=media-libs/tiff-3.8.2 )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
32 truetype? ( >=media-libs/freetype-2.0 )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
33 wmf? ( media-libs/libwmf )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
34 X? ( x11-libs/libXext x11-libs/libSM )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
35 imagemagick? ( !media-gfx/imagemagick )"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
36
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
37 DEPEND="${RDEPEND}"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
38
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
39 S="${WORKDIR}/${MY_P}"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
40
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
41 pkg_setup() {
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
42 if use openmp &&
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
43 [[ $(tc-getCC)$ == *gcc* ]] &&
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
44 ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] ||
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
45 ! built_with_use sys-devel/gcc openmp )
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
46 then
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
47 ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
48 ewarn "If you want to build fftw with OpenMP, abort now,"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
49 ewarn "and switch CC to an OpenMP capable compiler"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
50 epause 5
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
51 fi
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
52 }
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
53
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
54 src_prepare() {
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
55 epatch "${FILESDIR}/${PN}-1.3.7-perl-ldflags.patch"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
56 epatch "${FILESDIR}/${PN}-1.3.7-debian-fixed.patch"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
57 }
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
58
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
59 src_configure() {
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
60 local quantumDepth
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
61 if use q16 ; then
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
62 quantumDepth="16"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
63 elif use q32 ; then
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
64 quantumDepth="32"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
65 else
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
66 quantumDepth="8"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
67 fi
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
68
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
69 use debug && filter-flags -fomit-frame-pointer
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
70 econf \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
71 --docdir=/usr/share/doc/${PF} \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
72 --htmldir=/usr/share/doc/${PF}/html \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
73 --enable-shared \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
74 --enable-largefile \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
75 --without-included-ltdl \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
76 --without-frozenpaths \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
77 --without-gslib \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
78 --with-modules \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
79 --with-quantum-depth=${quantumDepth} \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
80 --with-fontpath="/usr/share/fonts" \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
81 --with-gs-font-dir="/usr/share/fonts/default/ghostscript" \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
82 --with-windows-font-dir="/usr/share/fonts/corefonts" \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
83 $(use_enable debug ccmalloc) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
84 $(use_enable debug prof) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
85 $(use_enable debug gcov) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
86 $(use_enable imagemagick magick-compat) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
87 $(use_enable openmp) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
88 $(use_with bzip2 bzlib) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
89 $(use_with cxx magick-plus-plus) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
90 $(use_with fpx) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
91 $(use_with jbig) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
92 $(use_with jpeg) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
93 $(use_with jpeg2k jp2) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
94 $(use_with lcms) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
95 $(use_with perl) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
96 $(use_with png) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
97 $(use_with svg xml) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
98 $(use_with threads) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
99 $(use_with tiff) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
100 $(use_with truetype ttf) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
101 $(use_with wmf) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
102 $(use_with X x) \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
103 $(use_with zlib)
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
104 }
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
105
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
106 src_compile() {
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
107 emake || die "emake failed"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
108 if use perl; then
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
109 emake perl-build || die "emake perl failed"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
110 fi
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
111 }
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
112
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
113 src_test() {
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
114 emake check || die "tests failed"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
115 }
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
116
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
117 src_install() {
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
118 emake DESTDIR="${D}" install || die "emake install failed"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
119 if use perl; then
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
120 perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
121 emake -C PerlMagick DESTDIR="${D}" \
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
122 install || die "emake perl install failed"
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
123 fixlocalpod
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
124 fi
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
125 use doc || rm -rf "${D}"usr/share/doc/${PF}/html
085b6c465662 bump graphicsmagick to 1.3.10
holger
parents:
diff changeset
126 }