Annotation of /branches/R11-unstable/extras/gtk3+/gtk3+-3.14.9-r1.smage2
Parent Directory | Revision Log
Revision 25293 -
(hide annotations)
(download)
Tue Nov 25 03:24:00 2014 UTC (9 years, 5 months ago) by niro
File size: 3040 byte(s)
Tue Nov 25 03:24:00 2014 UTC (9 years, 5 months ago) by niro
File size: 3040 byte(s)
-release branches/R11-unstable
1 | niro | 24708 | # $Id$ |
2 | |||
3 | PNAME="gtk3+" | ||
4 | PVER="3.14.9" | ||
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="$(marchdepend) | ||
16 | >= x11-libs/libXrender-0.9 | ||
17 | >= x11-libs/libX11-1.6 | ||
18 | >= x11-libs/libXi-1.7 | ||
19 | >= x11-libs/libXt-1.1 | ||
20 | >= x11-libs/libXext-1.3 | ||
21 | >= x11-libs/libXcursor-1.1.10 | ||
22 | >= x11-libs/libXrandr-1.4 | ||
23 | >= x11-libs/libXfixes-5 | ||
24 | >= x11-libs/libXinerama-1.1 | ||
25 | >= x11-libs/libXcomposite-0.4 | ||
26 | >= dev-libs/glib2-2.42 | ||
27 | >= dev-libs/atk-2.14 | ||
28 | >= dev-libs/at-spi2-atk-2.14 | ||
29 | >= x11-libs/pango-1.36 | ||
30 | >= x11-libs/gdk-pixbuf-2.30 | ||
31 | >= x11-libs/cairo-1.12 | ||
32 | >= x11-apps/gtk-update-icon-cache-2.24 | ||
33 | >= sys-libs/libstdc++-4.8 | ||
34 | >= app-crypt/gnutls-3.2 | ||
35 | >= app-crypt/libgcrypt-1.6 | ||
36 | >= app-crypt/libgpg-error-1.12 | ||
37 | >= net-print/libcups-1.7 | ||
38 | >= x11-misc/colord-1.2" | ||
39 | |||
40 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
41 | >= sys-dev/autoconf-4 | ||
42 | >= sys-dev/automake-3 | ||
43 | >= dev-libs/gobject-introspection-1.42" | ||
44 | |||
45 | SRCFILE="${PNAME/3+/+}-${PVER}.tar.xz" | ||
46 | SRCDIR="${BUILDDIR}/${PNAME/3+/+}-${PVER}" | ||
47 | |||
48 | sminclude multilib mtools | ||
49 | msetfeature "!check" | ||
50 | |||
51 | SRC_URI=( | ||
52 | gnome://${PNAME/3+/+}/${PVER%.*}/${SRCFILE} | ||
53 | #ftp://ftp.gtk.org/pub/gtk/v${PVER%.*}/${SRCFILE} | ||
54 | mirror://${PNAME}/${SRCFILE} | ||
55 | ) | ||
56 | |||
57 | UP2DATE="updatecmd_gnome ${PNAME/3/}" | ||
58 | |||
59 | # gtk+-2 don't like strong CFLAGS | ||
60 | export CFLAGS="${CFLAGS//-O3} -O2" | ||
61 | export CXXFLAGS="${CFLAGS}" | ||
62 | |||
63 | src_compile() | ||
64 | { | ||
65 | local myconf | ||
66 | [[ ${ARCH} = x86_64 ]] && myconf+=" --program-suffix=-$(mabi)" | ||
67 | |||
68 | # gtk2+ compat, use gtk-update-icon-cache from gtk2 | ||
69 | myconf+=" --enable-gtk2-dependency" | ||
70 | |||
71 | # never compile schemas | ||
72 | myconf+=" --disable-schemas-compile" | ||
73 | |||
74 | mconfigure \ | ||
75 | --enable-introspection \ | ||
76 | --enable-x11-backend \ | ||
77 | --enable-xkb \ | ||
78 | --enable-xinerama \ | ||
79 | --enable-xrandr \ | ||
80 | --enable-xfixes \ | ||
81 | --enable-xcomposite \ | ||
82 | --enable-xdamage \ | ||
83 | --enable-colord \ | ||
84 | --enable-cups \ | ||
85 | --disable-papi \ | ||
86 | --disable-gtk-doc \ | ||
87 | ${myconf} \ | ||
88 | || die | ||
89 | |||
90 | # fix issues with --as-needed enabled | ||
91 | # see: https://bugzilla.gnome.org/show_bug.cgi?id=655517 | ||
92 | sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || die | ||
93 | |||
94 | mmake || die | ||
95 | } | ||
96 | |||
97 | src_install() | ||
98 | { | ||
99 | # needed directories | ||
100 | minstalldir /etc/gtk-3.0 || die | ||
101 | |||
102 | mmake DESTDIR=${BINDIR} install || die | ||
103 | |||
104 | # we regenerate this in the mage-file | ||
105 | [ -e ${BINDIR}/etc/gtk-3.0/gtk.immodules ] && rm ${BINDIR}/etc/gtk-3.0/gtk.immodules | ||
106 | |||
107 | if [[ ${ARCH} = x86_64 ]] | ||
108 | then | ||
109 | mlink multiarch-wrapper /usr/bin/gtk-query-immodules-3.0 || die | ||
110 | mlink multiarch-wrapper /usr/bin/gtk-demo || die | ||
111 | mlink multiarch-wrapper /usr/bin/gtk-builder-convert || die | ||
112 | fi | ||
113 | } | ||
114 | |||
115 | postinstall() | ||
116 | { | ||
117 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
118 | then | ||
119 | local confdir | ||
120 | if [[ ${ARCH} = x86_64 ]] | ||
121 | then | ||
122 | # generate gtk-modules for i686 | ||
123 | confdir=/etc/gtk-3.0/i686-pc-linux-gnu | ||
124 | install -d ${confdir} | ||
125 | gtk-query-immodules-3.0-m32 > ${confdir}/gtk.immodules | ||
126 | fi | ||
127 | confdir=/etc/gtk-3.0/${CHOST} | ||
128 | install -d ${confdir} | ||
129 | gtk-query-immodules-3.0 > ${confdir}/gtk.immodules | ||
130 | # compile schemas | ||
131 | glib-compile-schemas /usr/share/glib-2.0/schemas | ||
132 | fi | ||
133 | } |