/[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.11 - (show annotations) (download)
Wed Apr 20 11:21:30 2011 UTC (3 years, 8 months ago) by scarabeus
Branch: MAIN
Changes since 1.10: +17 -24 lines
Migrate live ebuild to git-2 eclass and update to eapi4.

(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.10 2011/04/10 10:25:22 ssuominen Exp $
4
5 EAPI=4
6
7 EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
8 [[ ${PV} == *9999 ]] && GIT_ECLASS="git-2"
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 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~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 IUSE="X aqua debug directfb doc drm gallium 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 opengl? ( virtual/opengl )
31 openvg? ( media-libs/mesa[gallium] )
32 qt4? ( >=x11-libs/qt-gui-4.4:4 )
33 svg? ( dev-libs/libxml2 )
34 X? (
35 >=x11-libs/libXrender-0.6
36 x11-libs/libXext
37 x11-libs/libX11
38 x11-libs/libXft
39 drm? (
40 >=sys-fs/udev-136
41 gallium? ( media-libs/mesa[gallium] )
42 )
43 )
44 xcb? (
45 x11-libs/libxcb
46 x11-libs/xcb-util
47 )"
48 DEPEND="${RDEPEND}
49 dev-util/pkgconfig
50 >=sys-devel/libtool-2
51 doc? (
52 >=dev-util/gtk-doc-1.6
53 ~app-text/docbook-xml-dtd-4.2
54 )
55 X? (
56 x11-proto/renderproto
57 drm? (
58 x11-proto/xproto
59 >=x11-proto/xextproto-7.1
60 )
61 )"
62
63 # drm module requires X
64 # for gallium we need to enable drm
65 REQUIRED_USE="
66 drm? ( X )
67 gallium? ( drm )
68 "
69
70 src_prepare() {
71 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
72
73 # Slightly messed build system YAY
74 if [[ ${PV} == *9999* ]]; then
75 touch boilerplate/Makefile.am.features
76 touch src/Makefile.am.features
77 touch ChangeLog
78 fi
79
80 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
81 # upgraded to an eautoreconf for the above interix patch.
82 eautoreconf
83 }
84
85 src_configure() {
86 local myopts
87
88 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
89 # http://bugs.freedesktop.org/show_bug.cgi?id=15463
90 [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
91
92 #gets rid of fbmmx.c inlining warnings
93 append-flags -finline-limit=1200
94
95 use X && myopts+=" --enable-tee=yes"
96 if use drm; then
97 myopts+="
98 $(use_enable xcb xcb-drm)
99 "
100 else
101 myopts+="
102 --disable-xcb-drm
103 "
104 fi
105
106 # --disable-xcb-lib:
107 # do not override good xlib backed by hardforcing rendering over xcb
108 econf \
109 --disable-dependency-tracking \
110 $(use_with X x) \
111 $(use_enable X xlib) \
112 $(use_enable X xlib-xrender) \
113 $(use_enable aqua quartz) \
114 $(use_enable aqua quartz-image) \
115 $(use_enable debug test-surfaces) \
116 $(use_enable directfb) \
117 $(use_enable doc gtk-doc) \
118 $(use_enable openvg vg) \
119 $(use_enable opengl gl) \
120 $(use_enable qt4 qt) \
121 $(use_enable static-libs static) \
122 $(use_enable svg) \
123 $(use_enable xcb) \
124 $(use_enable xcb xcb-shm) \
125 $(use_enable drm) \
126 $(use_enable gallium) \
127 --enable-ft \
128 --enable-pdf \
129 --enable-png \
130 --enable-ps \
131 --disable-xlib-xcb \
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 }

  ViewVC Help
Powered by ViewVC 1.1.20