Contents of /branches/magellan-next/core/pango/pango-1.28.4-r2.smage2
Parent Directory | Revision Log
Revision 9788 -
(show annotations)
(download)
Wed Jan 11 18:41:15 2012 UTC (12 years, 8 months ago) by niro
File size: 2090 byte(s)
Wed Jan 11 18:41:15 2012 UTC (12 years, 8 months ago) by niro
File size: 2090 byte(s)
- disable-static not needed anymore
1 | # $Id$ |
2 | |
3 | PNAME="pango" |
4 | PVER="1.28.4" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="x11-libs" |
8 | |
9 | DESCRIPTION="Library for layout and rendering of internationalized text." |
10 | HOMEPAGE="http://www.pango.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 | >= x11-libs/libXrender-0.9 |
17 | >= x11-libs/libX11-1.4 |
18 | >= x11-libs/libXft-2 |
19 | >= dev-libs/glib2-2.26 |
20 | >= media-libs/fontconfig-2.8 |
21 | >= media-libs/freetype-2.4 |
22 | >= x11-libs/cairo-1.10 |
23 | >= sys-libs/libstdc++-4.6" |
24 | |
25 | SDEPEND=">= dev-util/pkgconfig-0.25 |
26 | >= dev-libs/gobject-introspection-0.10" |
27 | |
28 | # simul linux32 to get config things right |
29 | EMUL_LINUX_32=true |
30 | |
31 | sminclude multilib mtools |
32 | |
33 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
34 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
35 | |
36 | SRC_URI=( |
37 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} |
38 | mirror://${PNAME}/${SRCFILE} |
39 | mirror://${PNAME}/pango-1.12.1-xfonts.patch |
40 | mirror://${PNAME}/pango-1.12.1-multilib.patch |
41 | ) |
42 | |
43 | UP2DATE="updatecmd_gnome ${PNAME}" |
44 | |
45 | src_prepare() |
46 | { |
47 | munpack ${SRCFILE} || die |
48 | |
49 | # some enhancements from Redhat |
50 | mpatch pango-1.12.1-xfonts.patch || die |
51 | |
52 | # multilib fixes |
53 | mpatch pango-1.12.1-multilib.patch || die |
54 | } |
55 | |
56 | src_compile() |
57 | { |
58 | local myconf |
59 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) |
60 | |
61 | mconfigure --disable-gtk-doc --enable-introspection ${myconf} || die |
62 | mmake || die |
63 | } |
64 | |
65 | src_install() |
66 | { |
67 | minstall_destdir || die |
68 | |
69 | # we regenerate this in the mage-file |
70 | [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules |
71 | |
72 | if [[ ${ARCH} = x86_64 ]] |
73 | then |
74 | mlink multiarch-wrapper /usr/bin/pango-querymodules || die |
75 | mlink multiarch-wrapper /usr/bin/pango-view || die |
76 | fi |
77 | } |
78 | |
79 | postinstall() |
80 | { |
81 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
82 | then |
83 | echo "Generating modules listing ..." |
84 | local confdir |
85 | if [[ ${ARCH} = x86_64 ]] |
86 | then |
87 | # generate pango-modules for i686 |
88 | confdir=/etc/pango/i686-pc-linux-gnu |
89 | install -d ${confdir} |
90 | pango-querymodules-m32 > ${confdir}/pango.modules |
91 | fi |
92 | confdir=/etc/pango/${CHOST} |
93 | install -d ${confdir} |
94 | pango-querymodules > ${confdir}/pango.modules |
95 | fi |
96 | } |