Contents of /smage/trunk/extras/gdk-pixbuf/gdk-pixbuf-2.22.1-r1.smage2
Parent Directory | Revision Log
Revision 1693 -
(show annotations)
(download)
Fri Apr 8 10:12:06 2011 UTC (13 years ago) by niro
File size: 1387 byte(s)
Fri Apr 8 10:12:06 2011 UTC (13 years ago) by niro
File size: 1387 byte(s)
auto added: ver bump to 2.22.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="gdk-pixbuf" |
4 | PVER="2.22.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="x11-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Image loading library for GTK2+." |
11 | HOMEPAGE="http://www.gtk.org/" |
12 | |
13 | DEPEND=">= dev-libs/glib2-2.26 |
14 | >= media-libs/libpng-1.5 |
15 | >= media-libs/libjpeg-8 |
16 | >= media-libs/libtiff-3.9 |
17 | >= x11-libs/libX11-1" |
18 | |
19 | SDEPEND=">= dev-util/pkgconfig-0.25 |
20 | >= sys-dev/autoconf-4 |
21 | >= sys-dev/automake-3" |
22 | |
23 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
24 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
25 | |
26 | sminclude multilib mtools |
27 | |
28 | SRC_URI=( |
29 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}-${PVER}-libpng15.patch |
32 | ) |
33 | |
34 | UP2DATE="updatecmd_gnome ${PNAME}" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | |
40 | # libpng-1.5 support |
41 | mpatch ${PNAME}-${PVER}-libpng15.patch || die |
42 | } |
43 | |
44 | src_compile() |
45 | { |
46 | mconfigure \ |
47 | --with-libjpeg \ |
48 | --with-libtiff \ |
49 | --with-libpng \ |
50 | --with-x11 \ |
51 | --without-libjasper \ |
52 | --disable-gtk-doc \ |
53 | || die |
54 | |
55 | mmake || die |
56 | } |
57 | |
58 | postinstall() |
59 | { |
60 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
61 | then |
62 | local confdir |
63 | if [[ ${ARCH} = x86_64 ]] |
64 | then |
65 | # generate gtk-modules for i686 |
66 | confdir=/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache |
67 | |
68 | install -d ${confdir} |
69 | gdk-pixbuf-query-loaders-m32 > ${confdir}/loaders.cache |
70 | fi |
71 | confdir=/usr/$(mlibdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache |
72 | install -d ${confdir} |
73 | gdk-pixbuf-query-loaders > ${confdir}/loaders.cache |
74 | fi |
75 | } |