Annotation of /trunk/core/gtk2+/gtk2+-2.16.1-r1.smage2
Parent Directory | Revision Log
Revision 1272 -
(hide annotations)
(download)
Mon Apr 27 09:11:47 2009 UTC (15 years, 2 months ago) by niro
File size: 3008 byte(s)
Mon Apr 27 09:11:47 2009 UTC (15 years, 2 months ago) by niro
File size: 3008 byte(s)
auto added: ver bump to 2.16.1-r1
1 | niro | 1272 | # $Id$ |
2 | |||
3 | PNAME="gtk2+" | ||
4 | PVER="2.16.1" | ||
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 | # simul linux32 to get config things right | ||
39 | EMUL_LINUX_32=true | ||
40 | |||
41 | sminclude multilib mtools | ||
42 | |||
43 | SRC_URI=( | ||
44 | gnome://${PNAME/2+/+}/${PVER%.*}/${SRCFILE} | ||
45 | ftp://ftp.gtk.org/pub/gtk/v${PVER:0:4}/${SRCFILE} | ||
46 | mirror://${PNAME}/${SRCFILE} | ||
47 | mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch | ||
48 | mirror://${PNAME}/${PNAME}-${PVER}-flash-workaround.patch | ||
49 | ) | ||
50 | |||
51 | UP2DATE="updatecmd_gnome ${PNAME/2/}" | ||
52 | |||
53 | # gtk+-2 don't like strong CFLAGS | ||
54 | export CFLAGS="${CFLAGS//-O3} -O2" | ||
55 | export CXXFLAGS="${CFLAGS}" | ||
56 | |||
57 | src_prepare() | ||
58 | { | ||
59 | munpack ${SRCFILE} || die | ||
60 | |||
61 | # fix multilib issues with pixbuf loaders | ||
62 | # patch adds the host-triplet to the config search path | ||
63 | mpatch ${PNAME}-${PVER}-multilib.patch || die | ||
64 | |||
65 | # fixes an infinite loop with adobe flash | ||
66 | # see http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11 | ||
67 | mpatch ${PNAME}-${PVER}-flash-workaround.patch || die | ||
68 | } | ||
69 | |||
70 | src_compile() | ||
71 | { | ||
72 | local myconf | ||
73 | local myconf_m64 | ||
74 | myconf_m64="--build=${CHOST}" | ||
75 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix='-${abi}' | ||
76 | |||
77 | mconfigure \ | ||
78 | --with-libjpeg \ | ||
79 | --with-libtiff \ | ||
80 | --with-libpng \ | ||
81 | --with-gdktarget=x11 \ | ||
82 | --with-xinput \ | ||
83 | --disable-gtk-doc \ | ||
84 | --without-libjasper \ | ||
85 | '$(eval echo \$myconf_${abi})' \ | ||
86 | ${myconf} \ | ||
87 | || die | ||
88 | |||
89 | mmake || die | ||
90 | } | ||
91 | |||
92 | src_install() | ||
93 | { | ||
94 | # needed directories | ||
95 | minstalldir /etc/gtk-2.0 || die | ||
96 | minstalldir /etc/env.d || die | ||
97 | |||
98 | minstall_destdir || die | ||
99 | |||
100 | # enable xft in environment | ||
101 | echo "GDK_USE_XFT=1" > ${BINDIR}/etc/env.d/50gtk2 || die | ||
102 | |||
103 | # we regenerate this in the mage-file | ||
104 | [ -e ${BINDIR}/etc/gtk-2.0/gtk.immodules ] && rm ${BINDIR}/etc/gtk-2.0/gtk.immodules | ||
105 | |||
106 | if [[ ${ARCH} = x86_64 ]] | ||
107 | then | ||
108 | local i | ||
109 | for i in ${BINDIR}/usr/bin/*-m64 | ||
110 | do | ||
111 | mlink $(basename ${i}) /usr/bin/$(basename ${i/-m64/}) || die ${i} | ||
112 | done | ||
113 | fi | ||
114 | } | ||
115 | |||
116 | postinstall() | ||
117 | { | ||
118 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
119 | then | ||
120 | local confdir | ||
121 | if [[ ${ARCH} = x86_64 ]] | ||
122 | then | ||
123 | # generate gtk-modules for i686 | ||
124 | confdir=/etc/gtk-2.0/i686-pc-linux-gnu | ||
125 | install -d ${confdir} | ||
126 | gtk-query-immodules-2.0-m32 > ${confdir}/gtk.immodules | ||
127 | gdk-pixbuf-query-loaders-m32 > ${confdir}/gdk-pixbuf.loaders | ||
128 | fi | ||
129 | confdir=/etc/gtk-2.0/${CHOST} | ||
130 | install -d ${confdir} | ||
131 | gtk-query-immodules-2.0 > ${confdir}/gtk.immodules | ||
132 | gdk-pixbuf-query-loaders > ${confdir}/gdk-pixbuf.loaders | ||
133 | fi | ||
134 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |