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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 16 19:51:48 2008 UTC (6 years, 9 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
new stable version and development version
(Portage version: 2.1.4)

1 # Copyright 1999-2007 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.5.4-r1.ebuild,v 1.1 2007/12/27 14:19:03 cardoe 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 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
14 IUSE="debug directfb doc glitz opengl svg X xcb test"
15
16 RDEPEND="media-libs/fontconfig
17 >=media-libs/freetype-2.1.4
18 sys-libs/zlib
19 media-libs/libpng
20 >=x11-libs/pixman-0.9.4
21 X? (
22 x11-libs/libXrender
23 x11-libs/libXext
24 x11-libs/libX11
25 virtual/xft
26 xcb? ( x11-libs/libxcb
27 x11-libs/xcb-util )
28 )
29 directfb? ( >=dev-libs/DirectFB-0.9.24 )
30 glitz? ( >=media-libs/glitz-0.5.1 )
31 svg? ( dev-libs/libxml2 )"
32
33 DEPEND="${RDEPEND}
34 >=dev-util/pkgconfig-0.19
35 test? (
36 virtual/ghostscript
37 >=app-text/poppler-bindings-0.4.1
38 x11-libs/pango
39 x11-libs/gtk+
40 svg? ( >=gnome-base/librsvg-2.15.0 )
41 )
42 X? ( x11-proto/renderproto
43 xcb? ( x11-proto/xcb-proto ) )
44 doc? (
45 >=dev-util/gtk-doc-1.6
46 ~app-text/docbook-xml-dtd-4.2
47 )"
48
49 src_unpack() {
50 unpack ${A}
51 cd "${S}"
52
53 # SPARC alignment patch
54 epatch "${FILESDIR}"/${P}-sparc-alignment.patch
55
56 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
57 elibtoolize
58 }
59
60 src_compile() {
61 #gets rid of fbmmx.c inlining warnings
62 append-flags -finline-limit=1200
63
64 if use glitz && use opengl; then
65 export glitz_LIBS=-lglitz-glx
66 fi
67
68 econf $(use_enable X xlib) $(use_enable doc gtk-doc) $(use_enable directfb) \
69 $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \
70 $(use_enable debug test-surfaces) --enable-pdf --enable-png \
71 --enable-freetype --enable-ps $(use_enable xcb) \
72 || die "configure failed"
73
74 emake || die "compile failed"
75 }
76
77 src_install() {
78 make DESTDIR="${D}" install || die "Installation failed"
79 dodoc AUTHORS ChangeLog NEWS README TODO
80 }

  ViewVC Help
Powered by ViewVC 1.1.20