/[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.4 - (hide annotations) (download)
Thu Sep 9 08:03:54 2010 UTC (4 years ago) by scarabeus
Branch: MAIN
Changes since 1.3: +1 -2 lines
Whitespace.

(Portage version: 2.2_rc75/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20