Contents of /trunk/core/gtk2+/gtk2+-2.14.6-r1.smage2
Parent Directory | Revision Log
Revision 903 -
(show annotations)
(download)
Sun Dec 28 00:29:29 2008 UTC (15 years, 4 months ago) by niro
File size: 2927 byte(s)
Sun Dec 28 00:29:29 2008 UTC (15 years, 4 months ago) by niro
File size: 2927 byte(s)
- proper handling of the CHOST config style
1 | # $Header: /magellan-cvs/smage/gtk2+/gtk2+-2.12.9-r2.smage2,v 1.1 2008/05/02 11:05:45 niro Exp $ |
2 | |
3 | PNAME="gtk2+" |
4 | PVER="2.14.6" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="x11-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="The gimp toolkit v2.x." |
11 | HOMEPAGE="http://www.gtk.org/" |
12 | |
13 | DEPEND=">= x11-libs/libXrender-0.9 |
14 | >= x11-libs/libX11-1 |
15 | >= x11-libs/libXi-1 |
16 | >= x11-libs/libXt-1 |
17 | >= x11-libs/libXext-1 |
18 | >= x11-libs/libXcursor-1.1.9 |
19 | >= x11-libs/libXrandr-1.2.99 |
20 | >= x11-libs/libXfixes-4 |
21 | >= x11-libs/libXinerama-1.0.3 |
22 | >= x11-libs/libXcomposite-0.4 |
23 | >= dev-libs/glib2-2.18 |
24 | >= dev-libs/atk-1.24 |
25 | >= x11-libs/pango-1.22 |
26 | >= media-libs/libpng-1.2.32 |
27 | >= media-libs/libjpeg-6b |
28 | >= media-libs/libtiff-3.8 |
29 | >= x11-libs/cairo-1.8" |
30 | |
31 | SDEPEND=">= dev-util/pkgconfig-0.23 |
32 | >= sys-dev/autoconf-4 |
33 | >= sys-dev/automake-3" |
34 | |
35 | SRCFILE="${PNAME/2+/+}-${PVER}.tar.bz2" |
36 | SRCDIR="${BUILDDIR}/${PNAME/2+/+}-${PVER}" |
37 | |
38 | sminclude multilib mtools |
39 | |
40 | SRC_URI=( |
41 | gnome://${PNAME/2+/+}/${PVER%.*}/${SRCFILE} |
42 | ftp://ftp.gtk.org/pub/gtk/v${PVER:0:4}/${SRCFILE} |
43 | mirror://${PNAME}/${SRCFILE} |
44 | mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch |
45 | mirror://${PNAME}/${PNAME}-${PVER}-flash-workaround.patch |
46 | ) |
47 | |
48 | UP2DATE="updatecmd_gnome ${PNAME/2/}" |
49 | |
50 | # gtk+-2 don't like strong CFLAGS |
51 | export CFLAGS="${CFLAGS//-O3} -O2" |
52 | export CXXFLAGS="${CFLAGS}" |
53 | |
54 | src_prepare() |
55 | { |
56 | munpack ${SRCFILE} || die |
57 | |
58 | # fix multilib issues with pixbuf loaders |
59 | # patch adds the host-triplet to the config search path |
60 | mpatch ${PNAME}-${PVER}-multilib.patch || die |
61 | |
62 | # fixes an infinite loop with adobe flash |
63 | # see http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11 |
64 | mpatch ${PNAME}-${PVER}-flash-workaround.patch || die |
65 | } |
66 | |
67 | src_compile() |
68 | { |
69 | local myconf |
70 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix='-${abi}' |
71 | |
72 | mconfigure \ |
73 | --with-libjpeg \ |
74 | --with-libtiff \ |
75 | --with-libpng \ |
76 | --with-gdktarget=x11 \ |
77 | --with-xinput \ |
78 | --disable-gtk-doc \ |
79 | ${myconf} \ |
80 | || die |
81 | |
82 | mmake || die |
83 | } |
84 | |
85 | src_install() |
86 | { |
87 | # needed directories |
88 | minstalldir /etc/gtk-2.0 || die |
89 | minstalldir /etc/env.d || die |
90 | |
91 | minstall_destdir || die |
92 | |
93 | # enable xft in environment |
94 | echo "GDK_USE_XFT=1" > ${BINDIR}/etc/env.d/50gtk2 || die |
95 | |
96 | # we regenerate this in the mage-file |
97 | [ -e ${BINDIR}/etc/gtk-2.0/gtk.immodules ] && rm ${BINDIR}/etc/gtk-2.0/gtk.immodules |
98 | |
99 | if [[ ${ARCH} = x86_64 ]] |
100 | then |
101 | local i |
102 | for i in ${BINDIR}/usr/bin/*-m64 |
103 | do |
104 | mlink $(basename ${i}) /usr/bin/$(basename ${i/-m64/}) || die ${i} |
105 | done |
106 | fi |
107 | } |
108 | |
109 | postinstall() |
110 | { |
111 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
112 | then |
113 | local confdir |
114 | if [[ ${ARCH} = x86_64 ]] |
115 | then |
116 | # generate gtk-modules for i686 |
117 | confdir=/etc/gtk-2.0/i686-pc-linux-gnu |
118 | install -d ${confdir} |
119 | gtk-query-immodules-2.0-m32 > ${confdir}/gtk.immodules |
120 | gdk-pixbuf-query-loaders-m32 > ${confdir}/gdk-pixbuf.loaders |
121 | fi |
122 | confdir=/etc/gtk-2.0/${CHOST} |
123 | install -d ${confdir} |
124 | gtk-query-immodules-2.0 > ${confdir}/gtk.immodules |
125 | gdk-pixbuf-query-loaders > ${confdir}/gdk-pixbuf.loaders |
126 | fi |
127 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |