Magellan Linux

Annotation of /branches/magellan-next/core/cairo/cairo-1.10.2-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9450 - (hide annotations) (download)
Thu Dec 1 09:46:01 2011 UTC (12 years, 5 months ago) by niro
File size: 1401 byte(s)
-rev bump, removed librsvg dependency
1 niro 9450 # $Id$
2    
3     PNAME="cairo"
4     PVER="1.10.2"
5     PBUILD="r3"
6    
7     PCATEGORIE="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    
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.gz"
28     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29    
30     sminclude mbuild multilib
31    
32     SRC_URI=(
33     http://cairographics.org/releases/${SRCFILE}
34     mirror://${PNAME}/${SRCFILE}
35     )
36    
37     # check stable version
38     UP2TAG=releases
39     # check dev version
40     #UP2TAG=snapshots
41     UP2DATE="updatecmd http://cairographics.org/${UP2TAG}/ | grep ]LA.*-${PNAME}- | sed 's/.*ST-${PNAME}-\([0-9\.]*\).*/\1/'"
42    
43     src_compile()
44     {
45     mconfigure \
46     --with-x \
47     --with-xlib \
48     --with-xlib-xrender \
49     --enable-freetype \
50     --enable-png \
51     --enable-xcb \
52     --enable-pdf \
53     --enable-png \
54     --enable-ps \
55     --enable-tee \
56     --disable-gtk-doc \
57     --disable-static \
58     || die
59    
60     mmake || die
61     }
62    
63     postinstall()
64     {
65     # remove glitz, not needed anymore
66     if [[ -n $(magequery -n glitz) ]]
67     then
68     echo "Automatically removing 'media-libs/glitz'..."
69     mage uninstall glitz
70     fi
71     }