Magellan Linux

Contents of /smage/trunk/extras/gdk-pixbuf/gdk-pixbuf-2.24.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3328 - (show annotations) (download)
Tue Nov 22 21:45:24 2011 UTC (12 years, 6 months ago) by niro
File size: 1889 byte(s)
-removed deprecated patches
1 # $Id$
2
3 PNAME="gdk-pixbuf"
4 PVER="2.24.0"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-libs"
8
9 DESCRIPTION="Image loading library for GTK2+."
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 >= dev-libs/glib2-2.28
17 >= media-libs/libpng-1.5
18 >= media-libs/libjpeg-8
19 >= media-libs/libtiff-3.9
20 >= x11-libs/libX11-1.4"
21
22 SDEPEND=">= dev-util/pkgconfig-0.25
23 >= sys-dev/autoconf-4
24 >= sys-dev/automake-3"
25
26 SRCFILE="${PNAME}-${PVER}.tar.bz2"
27 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
28
29 ALX_ONLY_KEEP="usr/bin/gdk-pixbuf-query-loaders
30 usr/$(mlibdir)/*.so
31 usr/$(mlibdir)/*.so.*
32 usr/$(mlibdir)/gdk-pixbuf-2.0/2.10.0/loaders/*.so"
33 sminclude multilib mtools alx-split
34
35 SRC_URI=(
36 gnome://${PNAME}/${PVER%.*}/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 )
39
40 UP2DATE="updatecmd_gnome ${PNAME}"
41
42 src_compile()
43 {
44 local myconf
45 local myconf_m64
46 myconf_m64="--build=${CHOST}"
47 [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi)
48
49 mconfigure \
50 --with-libjpeg \
51 --with-libtiff \
52 --with-libpng \
53 --with-x11 \
54 --without-libjasper \
55 --disable-gtk-doc \
56 '$(eval echo \$myconf_${abi})' \
57 ${myconf} \
58 || die
59
60 mmake || die
61 }
62
63 alx_generic_src_install()
64 {
65 mmake DESTDIR=${BINDIR} install || die
66
67 if [[ ${ARCH} = x86_64 ]]
68 then
69 mlink multiarch-wrapper /usr/bin/gdk-pixbuf-query-loaders || die
70 mlink multiarch-wrapper /usr/bin/gdk-pixbuf-csource || die
71 fi
72 }
73
74 postinstall()
75 {
76 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
77 then
78 local confdir
79 if [[ ${ARCH} = x86_64 ]]
80 then
81 # generate gtk-modules for i686
82 confdir=/usr/lib/gdk-pixbuf-2.0/2.10.0
83
84 install -d ${confdir}
85 gdk-pixbuf-query-loaders-m32 > ${confdir}/loaders.cache
86 fi
87 confdir=/usr/$(mlibdir)/gdk-pixbuf-2.0/2.10.0
88 install -d ${confdir}
89 gdk-pixbuf-query-loaders > ${confdir}/loaders.cache
90 fi
91 }