Annotation of /branches/magellan-next/core/cairo/cairo-1.10.2-r2.smage2
Parent Directory | Revision Log
Revision 9449 -
(hide annotations)
(download)
Thu Dec 1 09:20:19 2011 UTC (12 years, 5 months ago) by niro
File size: 1463 byte(s)
Thu Dec 1 09:20:19 2011 UTC (12 years, 5 months ago) by niro
File size: 1463 byte(s)
-rev bump, removed opengl dependency
1 | niro | 9448 | # $Id$ |
2 | |||
3 | PNAME="cairo" | ||
4 | PVER="1.10.2" | ||
5 | niro | 9449 | PBUILD="r2" |
6 | niro | 9448 | |
7 | PCATEGORIE="x11-libs" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Cairo is a 2D graphics library with support for multiple output devices." | ||
11 | HOMEPAGE="http://cairographics.org/" | ||
12 | |||
13 | DEPEND=">= x11-libs/libXrender-0.9 | ||
14 | >= x11-libs/libX11-1.4 | ||
15 | >= x11-libs/libXft-2.2 | ||
16 | >= media-libs/fontconfig-2.8 | ||
17 | >= media-libs/freetype-2.4 | ||
18 | >= sys-libs/zlib-1.2 | ||
19 | >= media-libs/libpng-1.5 | ||
20 | >= gnome-base/librsvg-2.34 | ||
21 | >= x11-libs/libxcb-1.7 | ||
22 | >= x11-libs/xcb-util-0.3 | ||
23 | >= x11-libs/pixman-0.22" | ||
24 | |||
25 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
26 | >= x11-proto/renderproto-0.11 | ||
27 | >= x11-proto/xcb-proto-1.6" | ||
28 | |||
29 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
30 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
31 | |||
32 | sminclude mbuild multilib | ||
33 | |||
34 | SRC_URI=( | ||
35 | http://cairographics.org/releases/${SRCFILE} | ||
36 | mirror://${PNAME}/${SRCFILE} | ||
37 | ) | ||
38 | |||
39 | # check stable version | ||
40 | UP2TAG=releases | ||
41 | # check dev version | ||
42 | #UP2TAG=snapshots | ||
43 | UP2DATE="updatecmd http://cairographics.org/${UP2TAG}/ | grep ]LA.*-${PNAME}- | sed 's/.*ST-${PNAME}-\([0-9\.]*\).*/\1/'" | ||
44 | |||
45 | src_compile() | ||
46 | { | ||
47 | mconfigure \ | ||
48 | --with-x \ | ||
49 | --with-xlib \ | ||
50 | --with-xlib-xrender \ | ||
51 | --enable-freetype \ | ||
52 | --enable-png \ | ||
53 | --enable-xcb \ | ||
54 | --enable-pdf \ | ||
55 | --enable-png \ | ||
56 | --enable-ps \ | ||
57 | --enable-svg \ | ||
58 | --enable-tee \ | ||
59 | --disable-gtk-doc \ | ||
60 | --disable-static \ | ||
61 | || die | ||
62 | |||
63 | mmake || die | ||
64 | } | ||
65 | |||
66 | postinstall() | ||
67 | { | ||
68 | # remove glitz, not needed anymore | ||
69 | if [[ -n $(magequery -n glitz) ]] | ||
70 | then | ||
71 | echo "Automatically removing 'media-libs/glitz'..." | ||
72 | mage uninstall glitz | ||
73 | fi | ||
74 | } |