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

Contents of /x11-libs/cairo/cairo-1.12.14-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Fri Sep 6 14:59:45 2013 UTC (12 months, 2 weeks ago) by ago
Branch: MAIN
Changes since 1.11: +2 -2 lines
Stable for sparc, wrt bug #447354

(Portage version: 2.1.12.2/cvs/Linux ppc64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 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.12.14-r4.ebuild,v 1.11 2013/09/05 10:46:51 ago Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic autotools
8
9 if [[ ${PV} == *9999* ]]; then
10 inherit git-2
11 EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
12 SRC_URI=""
13 KEYWORDS=""
14 else
15 SRC_URI="http://cairographics.org/releases/${P}.tar.xz"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 fi
18
19 DESCRIPTION="A vector graphics library with cross-device output support"
20 HOMEPAGE="http://cairographics.org/"
21 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
22 SLOT="0"
23 IUSE="X aqua debug directfb doc drm gallium gles2 +glib legacy-drivers opengl openvg qt4 static-libs +svg valgrind xcb xlib-xcb"
24
25 # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
26 RESTRICT="test"
27
28 RDEPEND="media-libs/fontconfig
29 media-libs/freetype:2
30 media-libs/libpng:0=
31 sys-libs/zlib
32 >=x11-libs/pixman-0.28.0
33 directfb? ( dev-libs/DirectFB )
34 gles2? ( media-libs/mesa[gles2] )
35 glib? ( >=dev-libs/glib-2.28.6:2 )
36 opengl? ( || ( media-libs/mesa[egl] media-libs/opengl-apple ) )
37 openvg? ( media-libs/mesa[openvg] )
38 qt4? ( >=dev-qt/qtgui-4.8:4 )
39 X? (
40 >=x11-libs/libXrender-0.6
41 x11-libs/libXext
42 x11-libs/libX11
43 drm? (
44 >=virtual/udev-136
45 gallium? ( media-libs/mesa[gallium] )
46 )
47 )
48 xcb? (
49 x11-libs/libxcb
50 x11-libs/xcb-util
51 )"
52 DEPEND="${RDEPEND}
53 virtual/pkgconfig
54 >=sys-devel/libtool-2
55 doc? (
56 >=dev-util/gtk-doc-1.6
57 ~app-text/docbook-xml-dtd-4.2
58 )
59 X? (
60 x11-proto/renderproto
61 drm? (
62 x11-proto/xproto
63 >=x11-proto/xextproto-7.1
64 )
65 )"
66
67 # drm module requires X
68 # for gallium we need to enable drm
69 REQUIRED_USE="
70 drm? ( X )
71 gallium? ( drm )
72 gles2? ( !opengl )
73 openvg? ( || ( gles2 opengl ) )
74 xlib-xcb? ( xcb )
75 "
76
77 src_prepare() {
78 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
79 use legacy-drivers && epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch
80 epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch
81 epatch "${FILESDIR}"/${PN}-1.12.12-disable-test-suite.patch
82 epatch "${FILESDIR}"/${PN}-1.12.14-libpng16.patch
83 epatch_user
84
85 # Slightly messed build system YAY
86 if [[ ${PV} == *9999* ]]; then
87 touch boilerplate/Makefile.am.features
88 touch src/Makefile.am.features
89 touch ChangeLog
90 fi
91
92 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
93 # upgraded to an eautoreconf for the above interix patch.
94 eautoreconf
95 }
96
97 src_configure() {
98 local myopts
99
100 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
101
102 use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
103
104 econf \
105 --disable-dependency-tracking \
106 $(use_with X x) \
107 $(use_enable X tee) \
108 $(use_enable X xlib) \
109 $(use_enable X xlib-xrender) \
110 $(use_enable aqua quartz) \
111 $(use_enable aqua quartz-image) \
112 $(use_enable debug test-surfaces) \
113 $(use_enable drm) \
114 $(use_enable directfb) \
115 $(use_enable gallium) \
116 $(use_enable gles2 glesv2) \
117 $(use_enable glib gobject) \
118 $(use_enable doc gtk-doc) \
119 $(use_enable openvg vg) \
120 $(use_enable opengl gl) \
121 $(use_enable qt4 qt) \
122 $(use_enable static-libs static) \
123 $(use_enable svg) \
124 $(use_enable valgrind) \
125 $(use_enable xcb) \
126 $(use_enable xcb xcb-shm) \
127 $(use_enable xlib-xcb) \
128 --enable-ft \
129 --enable-pdf \
130 --enable-png \
131 --enable-ps \
132 ${myopts}
133 }
134
135 src_install() {
136 # parallel make install fails
137 emake -j1 DESTDIR="${D}" install
138 find "${ED}" -name '*.la' -exec rm -f {} +
139 dodoc AUTHORS ChangeLog NEWS README
140 }
141
142 pkg_postinst() {
143 if use !xlib-xcb; then
144 if has_version net-misc/nxserver-freenx \
145 || has_version net-misc/x2goserver; then
146 ewarn "cairo-1.12 is known to cause GTK+ errors with NX servers."
147 ewarn "Enable USE=\"xlib-xcb\" if you notice incorrect behavior in GTK+"
148 ewarn "applications that are running inside NX sessions. For details, see"
149 ewarn "https://bugs.gentoo.org/441878 or https://bugs.freedesktop.org/59173"
150 fi
151 fi
152 }

  ViewVC Help
Powered by ViewVC 1.1.20