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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jul 24 14:12:30 2012 UTC (20 months, 3 weeks ago) by yngwin
Branch: MAIN
Changes since 1.2: +2 -1 lines
epatch_user cairo-1.12.2-r1 too

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

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

  ViewVC Help
Powered by ViewVC 1.1.20