Contents of /trunk/core/cairo/cairo-1.12.2-r2.smage2
Parent Directory | Revision Log
Revision 13335 -
(show annotations)
(download)
Thu Oct 4 10:10:37 2012 UTC (11 years, 8 months ago) by niro
File size: 1455 byte(s)
Thu Oct 4 10:10:37 2012 UTC (11 years, 8 months ago) by niro
File size: 1455 byte(s)
-added missing libspectre depend
1 | # $Id$ |
2 | |
3 | PNAME="cairo" |
4 | PVER="1.12.2" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="x11-libs" |
8 | |
9 | DESCRIPTION="Cairo is a 2D graphics library with support for multiple output devices." |
10 | HOMEPAGE="http://cairographics.org/" |
11 | |
12 | DEPEND=">= x11-libs/libXrender-0.9 |
13 | >= x11-libs/libX11-1.4 |
14 | >= x11-libs/libXft-2.2 |
15 | >= media-libs/fontconfig-2.8 |
16 | >= media-libs/freetype-2.4 |
17 | >= sys-libs/zlib-1.2 |
18 | >= media-libs/libpng-1.5 |
19 | >= x11-libs/libxcb-1.7 |
20 | >= x11-libs/xcb-util-0.3 |
21 | >= x11-libs/pixman-0.22 |
22 | >= app-text/libspectre-0.2.7" |
23 | |
24 | SDEPEND=">= dev-util/pkgconfig-0.25 |
25 | >= x11-proto/renderproto-0.11 |
26 | >= x11-proto/xcb-proto-1.6" |
27 | |
28 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
29 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
30 | |
31 | sminclude mbuild multilib |
32 | msetfeature "!check" |
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 | --enable-freetype \ |
51 | --enable-gl \ |
52 | --enable-gobject \ |
53 | --enable-png \ |
54 | --enable-xcb \ |
55 | --enable-pdf \ |
56 | --enable-png \ |
57 | --enable-ps \ |
58 | --enable-svg \ |
59 | --enable-tee \ |
60 | --disable-gtk-doc \ |
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 | } |