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