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

Contents of /x11-libs/cairo/cairo-1.7.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Sep 30 18:49:43 2008 UTC (5 years, 10 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
remove test release and fix depends in new release. allow xcb backend to be built without X
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64)

1 # Copyright 1999-2008 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.7.4.ebuild,v 1.2 2008/09/26 08:39:20 loki_val 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/snapshots/${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 ~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.11.2
24 X? (
25 x11-libs/libXrender
26 x11-libs/libXext
27 x11-libs/libX11
28 virtual/xft
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 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
50 elibtoolize
51 }
52
53 src_compile() {
54 local use_xcb
55
56 #gets rid of fbmmx.c inlining warnings
57 append-flags -finline-limit=1200
58
59 if use glitz && use opengl; then
60 export glitz_LIBS=-lglitz-glx
61 fi
62
63 use_xcb="--disable-xcb"
64 use X && use xcb && use_xcb="--enable-xcb"
65
66 econf $(use_enable X xlib) $(use_enable doc gtk-doc) \
67 $(use_enable directfb) ${use_xcb} \
68 $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \
69 $(use_enable debug test-surfaces) --enable-pdf --enable-png \
70 --enable-freetype --enable-ps \
71 || die "configure failed"
72
73 emake || die "compile failed"
74 }
75
76 src_install() {
77 make DESTDIR="${D}" install || die "Installation failed"
78 dodoc AUTHORS ChangeLog NEWS README
79 }

  ViewVC Help
Powered by ViewVC 1.1.20