/[gentoo-x86]/x11-libs/cairo/cairo-1.6.4-r1.ebuild
Gentoo

Contents of /x11-libs/cairo/cairo-1.6.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Feb 8 05:17:23 2010 UTC (4 years, 7 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
remove all older versions
(Portage version: 2.1.7.17/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.6.4-r1.ebuild,v 1.9 2009/01/05 13:26:13 remi Exp $
4
5 inherit eutils flag-o-matic libtool
6
7 DESCRIPTION="A vector graphics library with cross-device output support"
8 HOMEPAGE="http://cairographics.org/"
9 SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
10
11 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
14 IUSE="debug directfb doc glitz opengl svg test X xcb"
15
16 # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
17 RESTRICT="test"
18
19 RDEPEND="media-libs/fontconfig
20 >=media-libs/freetype-2.1.9
21 sys-libs/zlib
22 media-libs/libpng
23 >=x11-libs/pixman-0.10.0
24 X? (
25 x11-libs/libXrender
26 x11-libs/libXext
27 x11-libs/libX11
28 x11-libs/libXft
29 xcb? ( x11-libs/libxcb
30 x11-libs/xcb-util )
31 )
32 directfb? ( >=dev-libs/DirectFB-0.9.24 )
33 glitz? ( >=media-libs/glitz-0.5.1 )
34 svg? ( dev-libs/libxml2 )"
35
36 DEPEND="${RDEPEND}
37 >=dev-util/pkgconfig-0.19
38 X? ( x11-proto/renderproto
39 xcb? ( x11-proto/xcb-proto ) )
40 doc? (
41 >=dev-util/gtk-doc-1.6
42 ~app-text/docbook-xml-dtd-4.2
43 )"
44
45 src_unpack() {
46 unpack ${A}
47 cd "${S}"
48
49 # libpng's API changed as of 1.2.30, this is backwards compat with
50 # older libpng's as well. bug #235072
51 epatch "${FILESDIR}"/${PN}-1.6.4-libpng-api-change.patch
52
53 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
54 elibtoolize
55 }
56
57 src_compile() {
58 local use_xcb
59
60 #gets rid of fbmmx.c inlining warnings
61 append-flags -finline-limit=1200
62
63 if use glitz && use opengl; then
64 export glitz_LIBS=-lglitz-glx
65 fi
66
67 use_xcb="--disable-xcb"
68 use X && use xcb && use_xcb="--enable-xcb"
69
70 econf $(use_enable X xlib) $(use_enable doc gtk-doc) \
71 $(use_enable directfb) ${use_xcb} \
72 $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \
73 $(use_enable debug test-surfaces) --enable-pdf --enable-png \
74 --enable-freetype --enable-ps \
75 || die "configure failed"
76
77 emake || die "compile failed"
78 }
79
80 src_install() {
81 make DESTDIR="${D}" install || die "Installation failed"
82 dodoc AUTHORS ChangeLog NEWS README
83 }

  ViewVC Help
Powered by ViewVC 1.1.20