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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.30 - (hide annotations) (download)
Tue Apr 9 22:05:38 2013 UTC (5 weeks, 6 days ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.29: +2 -2 lines
Use subslot operator for the libpng dependency in every eapi5 ebuild.

(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 chithanh 1.26 # Copyright 1999-2013 Gentoo Foundation
2 scarabeus 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.30 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.29 2013/03/11 22:46:15 remi Exp $
4 scarabeus 1.1
5 chithanh 1.26 EAPI=5
6 scarabeus 1.1
7 cardoe 1.20 inherit eutils flag-o-matic autotools
8 scarabeus 1.1
9 cardoe 1.20 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 zmedico 1.27 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 cardoe 1.20 fi
18 scarabeus 1.1
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 ssuominen 1.24 IUSE="X aqua debug directfb doc drm gallium +glib legacy-drivers opengl openvg qt4 static-libs +svg xcb"
24 scarabeus 1.1
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 ssuominen 1.30 media-libs/libpng:0=
31 scarabeus 1.1 sys-libs/zlib
32 mattst88 1.22 >=x11-libs/pixman-0.22.0
33 scarabeus 1.1 directfb? ( dev-libs/DirectFB )
34 scarabeus 1.12 glib? ( >=dev-libs/glib-2.28.6:2 )
35 chithanh 1.23 opengl? ( || ( media-libs/mesa[egl] media-libs/opengl-apple ) )
36 chithanh 1.16 openvg? ( media-libs/mesa[openvg] )
37 hwoarang 1.28 qt4? ( >=dev-qt/qtgui-4.8:4 )
38 scarabeus 1.1 X? (
39     >=x11-libs/libXrender-0.6
40     x11-libs/libXext
41     x11-libs/libX11
42     drm? (
43 ssuominen 1.25 >=virtual/udev-136
44 scarabeus 1.1 gallium? ( media-libs/mesa[gallium] )
45     )
46     )
47     xcb? (
48     x11-libs/libxcb
49     x11-libs/xcb-util
50     )"
51     DEPEND="${RDEPEND}
52 jdhore 1.19 virtual/pkgconfig
53 scarabeus 1.1 >=sys-devel/libtool-2
54     doc? (
55     >=dev-util/gtk-doc-1.6
56     ~app-text/docbook-xml-dtd-4.2
57     )
58     X? (
59     x11-proto/renderproto
60     drm? (
61     x11-proto/xproto
62     >=x11-proto/xextproto-7.1
63     )
64     )"
65    
66 scarabeus 1.11 # drm module requires X
67     # for gallium we need to enable drm
68     REQUIRED_USE="
69     drm? ( X )
70     gallium? ( drm )
71     "
72    
73 scarabeus 1.1 src_prepare() {
74     epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
75 ssuominen 1.24 use legacy-drivers && epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch
76 yngwin 1.21 epatch "${FILESDIR}"/${PN}-1.10.2-qt-surface.patch
77     epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch
78     epatch_user
79 scarabeus 1.1
80     # Slightly messed build system YAY
81     if [[ ${PV} == *9999* ]]; then
82     touch boilerplate/Makefile.am.features
83     touch src/Makefile.am.features
84     touch ChangeLog
85     fi
86    
87     # We need to run elibtoolize to ensure correct so versioning on FreeBSD
88     # upgraded to an eautoreconf for the above interix patch.
89     eautoreconf
90     }
91    
92     src_configure() {
93     local myopts
94    
95 armin76 1.13 # SuperH doesn't have native atomics yet
96     use sh && myopts+=" --disable-atomic"
97    
98 scarabeus 1.1 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
99     # http://bugs.freedesktop.org/show_bug.cgi?id=15463
100     [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
101    
102     #gets rid of fbmmx.c inlining warnings
103     append-flags -finline-limit=1200
104    
105 scarabeus 1.11 use X && myopts+=" --enable-tee=yes"
106 scarabeus 1.1
107 cardoe 1.20 use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
108    
109 scarabeus 1.3 # --disable-xcb-lib:
110     # do not override good xlib backed by hardforcing rendering over xcb
111 remi 1.29 # --disable-valgrind:
112     # valgrind code is busted as per upstream
113 scarabeus 1.1 econf \
114     --disable-dependency-tracking \
115     $(use_with X x) \
116     $(use_enable X xlib) \
117     $(use_enable X xlib-xrender) \
118     $(use_enable aqua quartz) \
119     $(use_enable aqua quartz-image) \
120     $(use_enable debug test-surfaces) \
121     $(use_enable directfb) \
122 scarabeus 1.12 $(use_enable glib gobject) \
123 scarabeus 1.1 $(use_enable doc gtk-doc) \
124     $(use_enable openvg vg) \
125     $(use_enable opengl gl) \
126 cardoe 1.6 $(use_enable qt4 qt) \
127 scarabeus 1.1 $(use_enable static-libs static) \
128     $(use_enable svg) \
129     $(use_enable xcb) \
130     $(use_enable xcb xcb-shm) \
131 scarabeus 1.11 $(use_enable drm) \
132     $(use_enable gallium) \
133 scarabeus 1.1 --enable-ft \
134     --enable-pdf \
135     --enable-png \
136     --enable-ps \
137 scarabeus 1.5 --disable-xlib-xcb \
138 remi 1.29 --disable-valgrind \
139 scarabeus 1.1 ${myopts}
140     }
141    
142     src_install() {
143     # parallel make install fails
144 scarabeus 1.11 emake -j1 DESTDIR="${D}" install
145 ssuominen 1.10 find "${ED}" -name '*.la' -exec rm -f {} +
146 scarabeus 1.11 dodoc AUTHORS ChangeLog NEWS README
147 scarabeus 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.13