| 1 |
# Copyright 1999-2008 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.5.4-r2.ebuild,v 1.1 2008/01/08 20:36:07 cardoe Exp $ |
| 4 |
|
| 5 |
inherit eutils flag-o-matic libtool |
| 6 |
|
| 7 |
DESCRIPTION="A vector graphics library with cross-device output support" |
| 8 |
HOMEPAGE="http://cairographics.org/" |
| 9 |
SRC_URI="http://cairographics.org/snapshots/${P}.tar.gz" |
| 10 |
|
| 11 |
LICENSE="|| ( LGPL-2.1 MPL-1.1 )" |
| 12 |
SLOT="0" |
| 13 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
| 14 |
IUSE="debug directfb doc glitz opengl svg X xcb test" |
| 15 |
|
| 16 |
RDEPEND="media-libs/fontconfig |
| 17 |
>=media-libs/freetype-2.1.4 |
| 18 |
sys-libs/zlib |
| 19 |
media-libs/libpng |
| 20 |
>=x11-libs/pixman-0.9.4 |
| 21 |
X? ( |
| 22 |
x11-libs/libXrender |
| 23 |
x11-libs/libXext |
| 24 |
x11-libs/libX11 |
| 25 |
virtual/xft |
| 26 |
xcb? ( x11-libs/libxcb |
| 27 |
x11-libs/xcb-util ) |
| 28 |
) |
| 29 |
directfb? ( >=dev-libs/DirectFB-0.9.24 ) |
| 30 |
glitz? ( >=media-libs/glitz-0.5.1 ) |
| 31 |
svg? ( dev-libs/libxml2 )" |
| 32 |
|
| 33 |
DEPEND="${RDEPEND} |
| 34 |
>=dev-util/pkgconfig-0.19 |
| 35 |
test? ( |
| 36 |
virtual/ghostscript |
| 37 |
>=app-text/poppler-bindings-0.4.1 |
| 38 |
x11-libs/pango |
| 39 |
x11-libs/gtk+ |
| 40 |
svg? ( >=gnome-base/librsvg-2.15.0 ) |
| 41 |
) |
| 42 |
X? ( x11-proto/renderproto |
| 43 |
xcb? ( x11-proto/xcb-proto ) ) |
| 44 |
doc? ( |
| 45 |
>=dev-util/gtk-doc-1.6 |
| 46 |
~app-text/docbook-xml-dtd-4.2 |
| 47 |
)" |
| 48 |
|
| 49 |
src_unpack() { |
| 50 |
unpack ${A} |
| 51 |
cd "${S}" |
| 52 |
|
| 53 |
# SPARC alignment patch |
| 54 |
epatch "${FILESDIR}"/${P}-sparc-alignment.patch |
| 55 |
|
| 56 |
# Mozilla corruption patch |
| 57 |
epatch "${FILESDIR}"/${P}-fix-private.patch |
| 58 |
|
| 59 |
# We need to run elibtoolize to ensure correct so versioning on FreeBSD |
| 60 |
elibtoolize |
| 61 |
} |
| 62 |
|
| 63 |
src_compile() { |
| 64 |
#gets rid of fbmmx.c inlining warnings |
| 65 |
append-flags -finline-limit=1200 |
| 66 |
|
| 67 |
if use glitz && use opengl; then |
| 68 |
export glitz_LIBS=-lglitz-glx |
| 69 |
fi |
| 70 |
|
| 71 |
econf $(use_enable X xlib) $(use_enable doc gtk-doc) $(use_enable directfb) \ |
| 72 |
$(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \ |
| 73 |
$(use_enable debug test-surfaces) --enable-pdf --enable-png \ |
| 74 |
--enable-freetype --enable-ps $(use_enable xcb) \ |
| 75 |
|| die "configure failed" |
| 76 |
|
| 77 |
emake || die "compile failed" |
| 78 |
} |
| 79 |
|
| 80 |
src_install() { |
| 81 |
make DESTDIR="${D}" install || die "Installation failed" |
| 82 |
dodoc AUTHORS ChangeLog NEWS README TODO |
| 83 |
} |