Magellan Linux

Annotation of /branches/R11-stable/core/cairo/cairo-1.12.14-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17137 - (hide annotations) (download)
Mon Jun 3 09:00:39 2013 UTC (11 years ago) by niro
Original Path: trunk/core/cairo/cairo-1.12.14-r2.smage2
File size: 1443 byte(s)
-rebuild against pixman-0.30 and libxcb-1.9
1 niro 17137 # $Id$
2    
3     PNAME="cairo"
4     PVER="1.12.14"
5     PBUILD="r2"
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.9
20     >= x11-libs/xcb-util-0.3
21     >= x11-libs/pixman-0.30"
22    
23     SDEPEND=">= dev-util/pkgconfig-0.25
24     >= x11-proto/renderproto-0.11
25     >= x11-proto/xcb-proto-1.6"
26    
27     SRCFILE="${PNAME}-${PVER}.tar.xz"
28     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29    
30     sminclude mbuild multilib
31     msetfeature "!check"
32    
33     SRC_URI=(
34     http://cairographics.org/releases/${SRCFILE}
35     mirror://${PNAME}/${SRCFILE}
36     )
37    
38     # check stable version
39     UP2TAG=releases
40     # check dev version
41     #UP2TAG=snapshots
42     UP2DATE="updatecmd http://cairographics.org/${UP2TAG}/ | grep ]LA.*-${PNAME}- | sed 's/.*ST-${PNAME}-\([0-9\.]*\).*/\1/'"
43    
44     src_compile()
45     {
46     mconfigure \
47     --enable-xlib \
48     --enable-freetype \
49     --enable-gl \
50     --enable-gobject \
51     --enable-png \
52     --enable-xcb \
53     --enable-pdf \
54     --enable-png \
55     --enable-ps \
56     --enable-svg \
57     --enable-tee \
58     --disable-gtk-doc \
59     --disable-test-surfaces \
60     || die
61    
62     mmake || die
63     }
64    
65     postinstall()
66     {
67     # remove glitz, not needed anymore
68     if [[ -n $(magequery -n glitz) ]]
69     then
70     echo "Automatically removing 'media-libs/glitz'..."
71     mage uninstall glitz
72     fi
73     }