Magellan Linux

Contents of /trunk/extras/gtk3+/gtk3+-3.20.9-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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