Magellan Linux

Annotation of /trunk/core/gtk2+/gtk2+-2.14.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 901 - (hide annotations) (download)
Sun Dec 28 00:16:15 2008 UTC (15 years, 5 months ago) by niro
File size: 2173 byte(s)
-added a patch to fix multilib issues with pixbuf loaders - the patch adds the host-triplet to the config search path
- added a patch to fix an infinite loop with adobe flash -  see http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11
1 niro 897 # $Header: /magellan-cvs/smage/gtk2+/gtk2+-2.12.9-r2.smage2,v 1.1 2008/05/02 11:05:45 niro Exp $
2    
3     PNAME="gtk2+"
4     PVER="2.14.6"
5     PBUILD="r1"
6    
7     PCATEGORIE="x11-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="The gimp toolkit v2.x."
11     HOMEPAGE="http://www.gtk.org/"
12    
13     DEPEND=">= x11-libs/libXrender-0.9
14     >= x11-libs/libX11-1
15     >= x11-libs/libXi-1
16     >= x11-libs/libXt-1
17     >= x11-libs/libXext-1
18     >= x11-libs/libXcursor-1.1.9
19     >= x11-libs/libXrandr-1.2.99
20     >= x11-libs/libXfixes-4
21     >= x11-libs/libXinerama-1.0.3
22     >= x11-libs/libXcomposite-0.4
23     >= dev-libs/glib2-2.18
24     >= dev-libs/atk-1.24
25     >= x11-libs/pango-1.22
26     >= media-libs/libpng-1.2.32
27     >= media-libs/libjpeg-6b
28     >= media-libs/libtiff-3.8
29     >= x11-libs/cairo-1.8"
30    
31     SDEPEND=">= dev-util/pkgconfig-0.23
32     >= sys-dev/autoconf-4
33     >= sys-dev/automake-3"
34    
35     SRCFILE="${PNAME/2+/+}-${PVER}.tar.bz2"
36     SRCDIR="${BUILDDIR}/${PNAME/2+/+}-${PVER}"
37    
38     sminclude multilib mtools
39    
40     SRC_URI=(
41     gnome://${PNAME/2+/+}/${PVER%.*}/${SRCFILE}
42     ftp://ftp.gtk.org/pub/gtk/v${PVER:0:4}/${SRCFILE}
43     mirror://${PNAME}/${SRCFILE}
44 niro 901 mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch
45     mirror://${PNAME}/${PNAME}-${PVER}-flash-workaround.patch
46 niro 897 )
47    
48     UP2DATE="updatecmd_gnome ${PNAME/2/}"
49    
50     # gtk+-2 don't like strong CFLAGS
51     export CFLAGS="${CFLAGS//-O3} -O2"
52     export CXXFLAGS="${CFLAGS}"
53    
54 niro 901 src_prepare()
55     {
56     munpack ${SRCFILE} || die
57    
58     # fix multilib issues with pixbuf loaders
59     # patch adds the host-triplet to the config search path
60     mpatch ${PNAME}-${PVER}-multilib.patch || die
61    
62     # fixes an infinite loop with adobe flash
63     # see http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11
64     mpatch ${PNAME}-${PVER}-flash-workaround.patch || die
65     }
66    
67 niro 897 src_compile()
68     {
69     mconfigure \
70     --with-libjpeg \
71     --with-libtiff \
72     --with-libpng \
73     --with-gdktarget=x11 \
74     --with-xinput \
75     --disable-gtk-doc \
76     || die
77    
78     mmake || die
79     }
80    
81     src_install()
82     {
83     # needed directories
84     minstalldir /etc/gtk-2.0 || die
85     minstalldir /etc/env.d || die
86    
87     minstall_destdir || die
88    
89     # enable xft in environment
90     echo "GDK_USE_XFT=1" > ${BINDIR}/etc/env.d/50gtk2 || die
91     }
92    
93     postinstall()
94     {
95     gtk-query-immodules-2.0 > ${MROOT}/etc/gtk-2.0/gtk.immodules
96     gdk-pixbuf-query-loaders > ${MROOT}/etc/gtk-2.0/gdk-pixbuf.loaders
97     }

Properties

Name Value
svn:keywords Id