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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.11
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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 $ 3# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.11 2011/04/20 11:21:30 scarabeus Exp $
4 4
5EAPI=3 5EAPI=4
6 6
7EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo" 7EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
8[[ ${PV} == *9999 ]] && GIT_ECLASS="git" 8[[ ${PV} == *9999 ]] && GIT_ECLASS="git-2"
9 9
10inherit eutils flag-o-matic autotools ${GIT_ECLASS} 10inherit eutils flag-o-matic autotools ${GIT_ECLASS}
11 11
12DESCRIPTION="A vector graphics library with cross-device output support" 12DESCRIPTION="A vector graphics library with cross-device output support"
13HOMEPAGE="http://cairographics.org/" 13HOMEPAGE="http://cairographics.org/"
58 x11-proto/xproto 58 x11-proto/xproto
59 >=x11-proto/xextproto-7.1 59 >=x11-proto/xextproto-7.1
60 ) 60 )
61 )" 61 )"
62 62
63# drm module requires X
64# for gallium we need to enable drm
65REQUIRED_USE="
66 drm? ( X )
67 gallium? ( drm )
68"
69
63src_prepare() { 70src_prepare() {
64 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch 71 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
65 72
66 # Slightly messed build system YAY 73 # Slightly messed build system YAY
67 if [[ ${PV} == *9999* ]]; then 74 if [[ ${PV} == *9999* ]]; then
83 [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS 90 [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
84 91
85 #gets rid of fbmmx.c inlining warnings 92 #gets rid of fbmmx.c inlining warnings
86 append-flags -finline-limit=1200 93 append-flags -finline-limit=1200
87 94
95 use X && myopts+=" --enable-tee=yes"
88 if use X; then 96 if use drm; then
89 myopts+=" 97 myopts+="
90 --enable-tee=yes
91 $(use_enable drm) 98 $(use_enable xcb xcb-drm)
92 " 99 "
93
94 if use drm; then
95 myopts+="
96 $(use_enable gallium)
97 $(use_enable xcb xcb-drm)
98 "
99 else
100 use gallium && ewarn "Gallium use requires drm use enabled. So disabling for now."
101 myopts+="
102 --disable-gallium
103 --disable-xcb-drm
104 "
105 fi
106 else 100 else
107 use drm && ewarn "drm use requires X use enabled. So disabling for now."
108 myopts+=" 101 myopts+="
109 --disable-drm
110 --disable-gallium
111 --disable-xcb-drm 102 --disable-xcb-drm
112 " 103 "
113 fi 104 fi
114 105
115 # --disable-xcb-lib: 106 # --disable-xcb-lib:
129 $(use_enable qt4 qt) \ 120 $(use_enable qt4 qt) \
130 $(use_enable static-libs static) \ 121 $(use_enable static-libs static) \
131 $(use_enable svg) \ 122 $(use_enable svg) \
132 $(use_enable xcb) \ 123 $(use_enable xcb) \
133 $(use_enable xcb xcb-shm) \ 124 $(use_enable xcb xcb-shm) \
125 $(use_enable drm) \
126 $(use_enable gallium) \
134 --enable-ft \ 127 --enable-ft \
135 --enable-pdf \ 128 --enable-pdf \
136 --enable-png \ 129 --enable-png \
137 --enable-ps \ 130 --enable-ps \
138 --disable-xlib-xcb \ 131 --disable-xlib-xcb \
139 ${myopts} 132 ${myopts}
140} 133}
141 134
142src_install() { 135src_install() {
143 # parallel make install fails 136 # parallel make install fails
144 emake -j1 DESTDIR="${D}" install || die 137 emake -j1 DESTDIR="${D}" install
145 find "${ED}" -name '*.la' -exec rm -f {} + 138 find "${ED}" -name '*.la' -exec rm -f {} +
146 dodoc AUTHORS ChangeLog NEWS README || die 139 dodoc AUTHORS ChangeLog NEWS README
147} 140}

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20