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

Contents of /x11-libs/cairo/cairo-1.10.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Tue May 29 15:45:00 2012 UTC (2 years, 1 month ago) by ranger
Branch: MAIN
Changes since 1.10: +2 -2 lines
Marking cairo-1.10.2-r2 ppc64 for bug 414309

(Portage version: 2.1.10.49/cvs/Linux ppc64)

1 wired 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ranger 1.11 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.10.2-r2.ebuild,v 1.10 2012/05/29 13:38:33 aballier Exp $
4 wired 1.1
5     EAPI=3
6    
7     EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
8     [[ ${PV} == *9999 ]] && GIT_ECLASS="git"
9    
10     inherit eutils flag-o-matic autotools ${GIT_ECLASS}
11    
12     DESCRIPTION="A vector graphics library with cross-device output support"
13     HOMEPAGE="http://cairographics.org/"
14     [[ ${PV} == *9999 ]] || SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
15    
16     LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
17     SLOT="0"
18 ranger 1.11 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
19 wired 1.1 IUSE="X aqua debug directfb doc drm gallium +glib opengl openvg qt4 static-libs +svg xcb"
20    
21     # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
22     RESTRICT="test"
23    
24     RDEPEND="media-libs/fontconfig
25     media-libs/freetype:2
26     media-libs/libpng:0
27     sys-libs/zlib
28     >=x11-libs/pixman-0.18.4
29     directfb? ( dev-libs/DirectFB )
30     glib? ( dev-libs/glib:2 )
31     opengl? ( virtual/opengl )
32     openvg? ( media-libs/mesa[gallium] )
33 pesa 1.3 qt4? ( >=x11-libs/qt-gui-4.8:4 )
34 wired 1.1 svg? ( dev-libs/libxml2 )
35     X? (
36     >=x11-libs/libXrender-0.6
37     x11-libs/libXext
38     x11-libs/libX11
39     x11-libs/libXft
40     drm? (
41     >=sys-fs/udev-136
42     gallium? ( media-libs/mesa[gallium] )
43     )
44     )
45     xcb? (
46     x11-libs/libxcb
47     x11-libs/xcb-util
48     )"
49     DEPEND="${RDEPEND}
50 jdhore 1.5 virtual/pkgconfig
51 wired 1.1 >=sys-devel/libtool-2
52     doc? (
53     >=dev-util/gtk-doc-1.6
54     ~app-text/docbook-xml-dtd-4.2
55     )
56     X? (
57     x11-proto/renderproto
58     drm? (
59     x11-proto/xproto
60     >=x11-proto/xextproto-7.1
61     )
62     )"
63    
64     src_prepare() {
65     epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
66     epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch
67     epatch "${FILESDIR}"/${P}-interix.patch
68     epatch "${FILESDIR}"/${P}-qt-surface.patch
69    
70     # Slightly messed build system YAY
71     if [[ ${PV} == *9999* ]]; then
72     touch boilerplate/Makefile.am.features
73     touch src/Makefile.am.features
74     touch ChangeLog
75     fi
76    
77     # We need to run elibtoolize to ensure correct so versioning on FreeBSD
78     # upgraded to an eautoreconf for the above interix patch.
79     eautoreconf
80     }
81    
82     src_configure() {
83     local myopts
84    
85     # SuperH doesn't have native atomics yet
86     use sh && myopts+=" --disable-atomic"
87    
88     [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
89    
90     # tracing fails to compile, because Solaris' libelf doesn't do large files
91     [[ ${CHOST} == *-solaris* ]] && myopts+=" --disable-trace"
92    
93     # 128-bits long arithemetic functions are missing
94     [[ ${CHOST} == powerpc*-*-darwin* ]] && filter-flags -mcpu=*
95    
96     #gets rid of fbmmx.c inlining warnings
97     append-flags -finline-limit=1200
98    
99     if use X; then
100     myopts+="
101     --enable-tee=yes
102     $(use_enable drm)
103     "
104    
105     if use drm; then
106     myopts+="
107     $(use_enable gallium)
108     $(use_enable xcb xcb-drm)
109     "
110     else
111     use gallium && ewarn "Gallium use requires drm use enabled. So disabling for now."
112     myopts+="
113     --disable-gallium
114     --disable-xcb-drm
115     "
116     fi
117     else
118     use drm && ewarn "drm use requires X use enabled. So disabling for now."
119     myopts+="
120     --disable-drm
121     --disable-gallium
122     --disable-xcb-drm
123     "
124     fi
125    
126 aballier 1.10 use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
127 naota 1.8
128 wired 1.1 # --disable-xcb-lib:
129     # do not override good xlib backed by hardforcing rendering over xcb
130     econf \
131     --disable-dependency-tracking \
132     $(use_with X x) \
133     $(use_enable X xlib) \
134     $(use_enable X xlib-xrender) \
135     $(use_enable aqua quartz) \
136     $(use_enable aqua quartz-image) \
137     $(use_enable debug test-surfaces) \
138     $(use_enable directfb) \
139     $(use_enable glib gobject) \
140     $(use_enable doc gtk-doc) \
141     $(use_enable openvg vg) \
142     $(use_enable opengl gl) \
143     $(use_enable qt4 qt) \
144     $(use_enable static-libs static) \
145     $(use_enable svg) \
146     $(use_enable xcb) \
147     $(use_enable xcb xcb-shm) \
148     --enable-ft \
149     --enable-pdf \
150     --enable-png \
151     --enable-ps \
152     --disable-xlib-xcb \
153     ${myopts}
154     }
155    
156     src_install() {
157     # parallel make install fails
158     emake -j1 DESTDIR="${D}" install || die
159     find "${ED}" -name '*.la' -exec rm -f {} +
160     dodoc AUTHORS ChangeLog NEWS README || die
161     }

  ViewVC Help
Powered by ViewVC 1.1.20