| 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.12 2011/04/29 12:05:19 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.13 2011/07/03 10:45:00 armin76 Exp $ |
| 4 | |
4 | |
| 5 | EAPI=4 |
5 | EAPI=4 |
| 6 | |
6 | |
| 7 | EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo" |
7 | EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo" |
| 8 | [[ ${PV} == *9999 ]] && GIT_ECLASS="git-2" |
8 | [[ ${PV} == *9999 ]] && GIT_ECLASS="git-2" |
| … | |
… | |
| 84 | } |
84 | } |
| 85 | |
85 | |
| 86 | src_configure() { |
86 | src_configure() { |
| 87 | local myopts |
87 | local myopts |
| 88 | |
88 | |
|
|
89 | # SuperH doesn't have native atomics yet |
|
|
90 | use sh && myopts+=" --disable-atomic" |
|
|
91 | |
|
|
92 | |
| 89 | [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT |
93 | [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT |
| 90 | # http://bugs.freedesktop.org/show_bug.cgi?id=15463 |
94 | # http://bugs.freedesktop.org/show_bug.cgi?id=15463 |
| 91 | [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS |
95 | [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS |
| 92 | |
96 | |
| 93 | #gets rid of fbmmx.c inlining warnings |
97 | #gets rid of fbmmx.c inlining warnings |