/[gentoo-x86]/media-gfx/graphicsmagick/graphicsmagick-1.1.7.ebuild
Gentoo

Contents of /media-gfx/graphicsmagick/graphicsmagick-1.1.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Apr 2 21:35:17 2006 UTC (8 years, 4 months ago) by vapier
Branch: MAIN
Changes since 1.5: +36 -43 lines
Change USE=xml2 to USE=xml #116346.  Add modular X support #126931.  Change USE=jp2 to USE=jpeg2k #123699 by Fritz Heinrichmeyer.  Clean up the ebuild in general.
(Portage version: 2.1_pre7-r3)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/graphicsmagick/graphicsmagick-1.1.7.ebuild,v 1.5 2006/04/01 19:53:59 agriffis Exp $
4
5 inherit libtool flag-o-matic perl-app
6
7 MY_PN=GraphicsMagick
8 MY_P=${MY_PN}-${PV}
9
10 DESCRIPTION="A collection of tools and libraries for many image formats"
11 HOMEPAGE="http://www.graphicsmagick.org/"
12 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
13
14 LICENSE="as-is"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ia64 ppc ~ppc64 ~sparc x86"
17 IUSE="X gs jbig jpeg2k jpeg lcms lzw perl png tiff truetype wmf xml doc"
18
19 RDEPEND="app-arch/bzip2
20 sys-libs/zlib
21 X? ( || (
22 ( x11-libs/libXext x11-libs/libXt x11-libs/libX11 x11-libs/libICE x11-libs/libSM )
23 virtual/x11
24 ) )
25 gs? ( virtual/ghostscript )
26 jbig? ( media-libs/jbigkit )
27 jpeg2k? ( media-libs/jasper )
28 jpeg? ( >=media-libs/jpeg-6b )
29 lcms? ( >=media-libs/lcms-1.06 )
30 perl? ( dev-lang/perl )
31 png? ( media-libs/libpng )
32 tiff? ( >=media-libs/tiff-3.5.5 )
33 xml? ( >=dev-libs/libxml2-2.4.10 )
34 truetype? ( =media-libs/freetype-2* )
35 wmf? ( >=media-libs/libwmf-0.2.5 )"
36 DEPEND="${RDEPEND}
37 X? ( || ( ( x11-proto/xextproto x11-proto/xproto ) virtual/x11 ) )"
38
39 S=${WORKDIR}/${MY_P}
40
41 src_unpack() {
42 unpack ${A}
43 cd "${S}"
44 epatch "${FILESDIR}"/${P}-overflow.patch
45
46 # Netscape is still used ? More people should have Mozilla
47 sed -i 's:netscape:mozilla:g' configure
48 }
49
50 src_compile() {
51 econf \
52 --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
53 --enable-shared \
54 --with-quantum-depth=16 \
55 --with-threads \
56 --with-bzlib \
57 --without-perl \
58 $(use_with X x) \
59 $(use_with jbig) \
60 $(use_with jpeg2k) \
61 $(use_with jpeg) \
62 $(use_with lcms) \
63 $(use_enable lzw) \
64 $(use_with png) \
65 $(use_with tiff) \
66 $(use_with truetype ttf) \
67 $(use_with wmf) \
68 $(use_with xml xml) \
69 || die
70
71 # make PerlMagick using portage tools instead of Makefile to avoid sandbox issues
72 if use perl ; then
73 cd PerlMagick
74 perl-app_src_prep
75 perl-app_src_compile
76 cd ..
77 fi
78
79 emake || die "compile problem"
80 }
81
82 src_install() {
83 make DESTDIR="${D}" install || die
84
85 if use perl ; then
86 cd PerlMagick
87 perl-module_src_install
88 cd ..
89 fi
90
91 dosym /usr/lib/${MY_P}/ /usr/lib/GraphicsMagick
92
93 rm -f "${D}"/usr/share/GraphicsMagick/*.txt
94 rm -rf "${D}"/usr/share/${MY_P}/www
95
96 if use doc ; then
97 dohtml -r www/*
98 fi
99
100 dosed "s:-I/usr/include ::" /usr/bin/GraphicsMagick-config
101 dosed "s:-I/usr/include ::" /usr/bin/GraphicsMagick++-config
102 }

  ViewVC Help
Powered by ViewVC 1.1.20