Annotation of /trunk/extras/gtk3+/gtk3+-3.2.3-r1.smage2
Parent Directory
|
Revision Log
Revision 11490 -
(hide annotations)
(download)
Sat Mar 10 22:38:03 2012 UTC (12 years, 3 months ago) by niro
File size: 2965 byte(s)
Sat Mar 10 22:38:03 2012 UTC (12 years, 3 months ago) by niro
File size: 2965 byte(s)
auto added: ver bump to 3.2.3-r1
1 | niro | 11490 | # $Id$ |
2 | |||
3 | PNAME="gtk3+" | ||
4 | PVER="3.2.3" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="x11-libs" | ||
8 | |||
9 | DESCRIPTION="The gimp toolkit v3.x." | ||
10 | HOMEPAGE="http://www.gtk.org/" | ||
11 | |||
12 | DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1" | ||
13 | SPECIAL_VARS="DEPEND_x86_64" | ||
14 | |||
15 | DEPEND="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n') | ||
16 | >= x11-libs/libXrender-0.9 | ||
17 | >= x11-libs/libX11-1.4 | ||
18 | >= x11-libs/libXi-1.4 | ||
19 | >= x11-libs/libXt-1.1 | ||
20 | >= x11-libs/libXext-1.3 | ||
21 | >= x11-libs/libXcursor-1.1.10 | ||
22 | >= x11-libs/libXrandr-1.3 | ||
23 | >= x11-libs/libXfixes-5 | ||
24 | >= x11-libs/libXinerama-1.1 | ||
25 | >= x11-libs/libXcomposite-0.4 | ||
26 | >= dev-libs/glib2-2.30 | ||
27 | >= dev-libs/atk-2.2 | ||
28 | >= x11-libs/pango-1.28 | ||
29 | >= x11-libs/gdk-pixbuf-2.24 | ||
30 | >= x11-libs/cairo-1.10 | ||
31 | >= x11-apps/gtk-update-icon-cache-2.24 | ||
32 | >= sys-libs/libstdc++-4.6 | ||
33 | >= net-print/libcups-1.5 | ||
34 | >= x11-misc/colord-0.1.17" | ||
35 | |||
36 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
37 | >= sys-dev/autoconf-4 | ||
38 | >= sys-dev/automake-3 | ||
39 | >= dev-libs/gobject-introspection-1.30" | ||
40 | |||
41 | SRCFILE="${PNAME/3+/+}-${PVER}.tar.xz" | ||
42 | SRCDIR="${BUILDDIR}/${PNAME/3+/+}-${PVER}" | ||
43 | |||
44 | sminclude multilib mtools | ||
45 | msetfeature "!check" | ||
46 | |||
47 | SRC_URI=( | ||
48 | gnome://${PNAME/3+/+}/${PVER%.*}/${SRCFILE} | ||
49 | ftp://ftp.gtk.org/pub/gtk/v${PVER%.*}/${SRCFILE} | ||
50 | mirror://${PNAME}/${SRCFILE} | ||
51 | ) | ||
52 | |||
53 | UP2DATE="updatecmd_gnome ${PNAME/2/}" | ||
54 | |||
55 | # gtk+-2 don't like strong CFLAGS | ||
56 | export CFLAGS="${CFLAGS//-O3} -O2" | ||
57 | export CXXFLAGS="${CFLAGS}" | ||
58 | |||
59 | src_compile() | ||
60 | { | ||
61 | local myconf | ||
62 | [[ ${ARCH} = x86_64 ]] && myconf+=" --program-suffix=-$(mabi)" | ||
63 | |||
64 | # gtk2+ compat, use gtk-update-icon-cache from gtk2 | ||
65 | myconf+=" --enable-gtk2-dependency" | ||
66 | |||
67 | # never compile schemas | ||
68 | myconf+=" --disable-schemas-compile" | ||
69 | |||
70 | mconfigure \ | ||
71 | --enable-introspection \ | ||
72 | --enable-x11-backend \ | ||
73 | --enable-xkb \ | ||
74 | --enable-xinerama \ | ||
75 | --enable-xrandr \ | ||
76 | --enable-xfixes \ | ||
77 | --enable-xcomposite \ | ||
78 | --enable-xdamage \ | ||
79 | --enable-colord \ | ||
80 | --enable-cups \ | ||
81 | --disable-papi | ||
82 | --disable-gtk-doc \ | ||
83 | ${myconf} \ | ||
84 | || die | ||
85 | |||
86 | # fix issues with --as-needed enabled | ||
87 | # see: https://bugzilla.gnome.org/show_bug.cgi?id=655517 | ||
88 | sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || die | ||
89 | |||
90 | mmake || die | ||
91 | } | ||
92 | |||
93 | src_install() | ||
94 | { | ||
95 | # needed directories | ||
96 | minstalldir /etc/gtk-3.0 || die | ||
97 | |||
98 | mmake DESTDIR=${BINDIR} install || die | ||
99 | |||
100 | # we regenerate this in the mage-file | ||
101 | [ -e ${BINDIR}/etc/gtk-3.0/gtk.immodules ] && rm ${BINDIR}/etc/gtk-3.0/gtk.immodules | ||
102 | |||
103 | if [[ ${ARCH} = x86_64 ]] | ||
104 | then | ||
105 | mlink multiarch-wrapper /usr/bin/gtk-query-immodules-3.0 || die | ||
106 | mlink multiarch-wrapper /usr/bin/gtk-demo || die | ||
107 | mlink multiarch-wrapper /usr/bin/gtk-builder-convert || die | ||
108 | fi | ||
109 | } | ||
110 | |||
111 | postinstall() | ||
112 | { | ||
113 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
114 | then | ||
115 | local confdir | ||
116 | if [[ ${ARCH} = x86_64 ]] | ||
117 | then | ||
118 | # generate gtk-modules for i686 | ||
119 | confdir=/etc/gtk-3.0/i686-pc-linux-gnu | ||
120 | install -d ${confdir} | ||
121 | gtk-query-immodules-3.0-m32 > ${confdir}/gtk.immodules | ||
122 | fi | ||
123 | confdir=/etc/gtk-3.0/${CHOST} | ||
124 | install -d ${confdir} | ||
125 | gtk-query-immodules-3.0 > ${confdir}/gtk.immodules | ||
126 | # compile schemas | ||
127 | glib-compile-schemas /usr/share/glib-2.0/schemas | ||
128 | fi | ||
129 | } |