Annotation of /smage/trunk/core/gtk3+/gtk3+-3.22.18-r1.smage2
Parent Directory | Revision Log
Revision 10404 -
(hide annotations)
(download)
Tue Aug 22 07:44:01 2017 UTC (6 years, 10 months ago) by niro
File size: 3692 byte(s)
Tue Aug 22 07:44:01 2017 UTC (6 years, 10 months ago) by niro
File size: 3692 byte(s)
auto added: ver bump to 3.22.18-r1
1 | niro | 10404 | # $Id$ |
2 | |||
3 | PNAME="gtk3+" | ||
4 | PVER="3.22.18" | ||
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.52 | ||
27 | >= dev-libs/atk-2.24 | ||
28 | >= dev-libs/at-spi2-atk-2.24 | ||
29 | >= x11-libs/pango-1.40 | ||
30 | >= x11-libs/gdk-pixbuf-2.36 | ||
31 | >= x11-libs/cairo-1.14 | ||
32 | >= x11-apps/gtk-update-icon-cache-2.24 | ||
33 | >= sys-libs/libstdc++-5.3 | ||
34 | >= media-libs/libepoxy-1.4" | ||
35 | |||
36 | ALX_DEV_DEPEND=">= x11-libs/libXrender-dev-0.9 | ||
37 | >= x11-libs/libX11-dev-1.6 | ||
38 | >= x11-libs/libXi-dev-1.7 | ||
39 | >= x11-libs/libXt-dev-1.1 | ||
40 | >= x11-libs/libXext-dev-1.3 | ||
41 | >= x11-libs/libXcursor-dev-1.1.10 | ||
42 | >= x11-libs/libXrandr-dev-1.4 | ||
43 | >= x11-libs/libXfixes-dev-5 | ||
44 | >= x11-libs/libXinerama-dev-1.1 | ||
45 | >= x11-libs/libXcomposite-dev-0.4 | ||
46 | >= dev-libs/glib2-dev-2.52 | ||
47 | >= dev-libs/atk-dev-2.24 | ||
48 | >= dev-libs/at-spi2-atk-dev-2.24 | ||
49 | >= x11-libs/pango-dev-1.40 | ||
50 | >= x11-libs/gdk-pixbuf-dev-2.36 | ||
51 | >= x11-libs/cairo-dev-1.14 | ||
52 | >= sys-libs/libstdc++-dev-5.3 | ||
53 | >= media-libs/libepoxy-dev-1.4" | ||
54 | |||
55 | SDEPEND=">= dev-util/pkgconfig-0.25 | ||
56 | >= sys-dev/autoconf-10 | ||
57 | >= sys-dev/automake-9 | ||
58 | ${ALX_DEV_DEPEND}" | ||
59 | |||
60 | SRCFILE="${PNAME/3+/+}-${PVER}.tar.xz" | ||
61 | SRCDIR="${BUILDDIR}/${PNAME/3+/+}-${PVER}" | ||
62 | |||
63 | ALX_PKG_KEEP="etc | ||
64 | usr/bin/gtk-launch | ||
65 | usr/bin/gtk-query-immodules-3.0 | ||
66 | usr/$(mlibdir)/*.so.* | ||
67 | usr/$(mlibdir)/gtk-3.0 | ||
68 | usr/share/glib-2.0/schemas | ||
69 | usr/share/icons | ||
70 | usr/share/themes/Default" | ||
71 | sminclude multilib mtools alx-split | ||
72 | msetfeature "!check" | ||
73 | |||
74 | SRC_URI=( | ||
75 | gnome://${PNAME/3+/+}/${PVER%.*}/${SRCFILE} | ||
76 | #ftp://ftp.gtk.org/pub/gtk/v${PVER%.*}/${SRCFILE} | ||
77 | mirror://${PNAME}/${SRCFILE} | ||
78 | ) | ||
79 | |||
80 | UP2DATE="updatecmd_gnome ${PNAME/3/}" | ||
81 | |||
82 | # gtk+-2 don't like strong CFLAGS | ||
83 | export CFLAGS="${CFLAGS//-O3} -O2" | ||
84 | export CXXFLAGS="${CFLAGS}" | ||
85 | |||
86 | src_compile() | ||
87 | { | ||
88 | local myconf | ||
89 | [[ ${ARCH} = x86_64 ]] && myconf+=" --program-suffix=-$(mabi)" | ||
90 | |||
91 | # gtk2+ compat, use gtk-update-icon-cache from gtk2 | ||
92 | myconf+=" --enable-gtk2-dependency" | ||
93 | |||
94 | # never compile schemas | ||
95 | myconf+=" --disable-schemas-compile" | ||
96 | |||
97 | mconfigure \ | ||
98 | --disable-introspection \ | ||
99 | --enable-x11-backend \ | ||
100 | --enable-xkb \ | ||
101 | --enable-xinerama \ | ||
102 | --enable-xrandr \ | ||
103 | --enable-xfixes \ | ||
104 | --enable-xcomposite \ | ||
105 | --enable-xdamage \ | ||
106 | --disable-colord \ | ||
107 | --disable-cups \ | ||
108 | --disable-papi \ | ||
109 | --disable-gtk-doc \ | ||
110 | ${myconf} \ | ||
111 | || die | ||
112 | |||
113 | # fix issues with --as-needed enabled | ||
114 | # see: https://bugzilla.gnome.org/show_bug.cgi?id=655517 | ||
115 | sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || die | ||
116 | |||
117 | mmake || die | ||
118 | } | ||
119 | |||
120 | alx_generic_src_install() | ||
121 | { | ||
122 | # needed directories | ||
123 | minstalldir /etc/gtk-3.0 || die | ||
124 | |||
125 | mmake DESTDIR=${BINDIR} install || die | ||
126 | |||
127 | # we regenerate this in the mage-file | ||
128 | [ -e ${BINDIR}/etc/gtk-3.0/gtk.immodules ] && rm ${BINDIR}/etc/gtk-3.0/gtk.immodules | ||
129 | |||
130 | if [[ ${ARCH} = x86_64 ]] | ||
131 | then | ||
132 | mlink multiarch-wrapper /usr/bin/gtk-query-immodules-3.0 || die | ||
133 | mlink multiarch-wrapper /usr/bin/gtk-demo || die | ||
134 | mlink multiarch-wrapper /usr/bin/gtk-builder-convert || die | ||
135 | fi | ||
136 | } | ||
137 | |||
138 | postinstall() | ||
139 | { | ||
140 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
141 | then | ||
142 | local confdir | ||
143 | if [[ ${ARCH} = x86_64 ]] | ||
144 | then | ||
145 | # generate gtk-modules for i686 | ||
146 | confdir=/etc/gtk-3.0/i686-pc-linux-gnu | ||
147 | install -d ${confdir} | ||
148 | gtk-query-immodules-3.0-m32 > ${confdir}/gtk.immodules | ||
149 | fi | ||
150 | confdir=/etc/gtk-3.0/${CHOST} | ||
151 | install -d ${confdir} | ||
152 | gtk-query-immodules-3.0 > ${confdir}/gtk.immodules | ||
153 | # compile schemas | ||
154 | glib-compile-schemas /usr/share/glib-2.0/schemas | ||
155 | fi | ||
156 | } |