Magellan Linux

Contents of /smage/branches/alx-0_6_0/extras/pango/pango-1.28.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2650 - (show annotations) (download)
Mon Jul 11 10:08:54 2011 UTC (12 years, 10 months ago) by niro
File size: 2213 byte(s)
auto added: ver bump to 1.28.4-r1
1 # $Id$
2
3 PNAME="pango"
4 PVER="1.28.4"
5 PBUILD="r1"
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.28
20 >= media-libs/fontconfig-2.8
21 >= media-libs/freetype-2.4
22 >= x11-libs/cairo-1.10"
23
24 SDEPEND=">= dev-util/pkgconfig-0.25"
25
26 # simul linux32 to get config things right
27 EMUL_LINUX_32=true
28
29 ALX_ONLY_KEEP="etc/pango
30 usr/bin/pango-querymodules
31 usr/$(mlibdir)/*.so
32 usr/$(mlibdir)/*.so.*
33 usr/$(mlibdir)/pango/*/modules/*.so
34 usr/$(mlibdir)/pango/*/modules/*.so.*"
35 sminclude multilib mtools alx-split
36
37 SRCFILE="${PNAME}-${PVER}.tar.bz2"
38 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
39
40 SRC_URI=(
41 gnome://${PNAME}/${PVER%.*}/${SRCFILE}
42 mirror://${PNAME}/${SRCFILE}
43 mirror://${PNAME}/pango-1.12.1-xfonts.patch
44 mirror://${PNAME}/pango-1.12.1-multilib.patch
45 )
46
47 UP2DATE="updatecmd_gnome ${PNAME}"
48
49 src_prepare()
50 {
51 munpack ${SRCFILE} || die
52
53 # some enhancements from Redhat
54 mpatch pango-1.12.1-xfonts.patch || die
55
56 # multilib fixes
57 mpatch pango-1.12.1-multilib.patch || die
58 }
59
60 src_compile()
61 {
62 local myconf
63 [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi)
64
65 mconfigure --disable-static --disable-gtk-doc ${myconf} || die
66 mmake || die
67 }
68
69 alx_generic_src_install()
70 {
71 minstall_destdir || die
72
73 # we regenerate this in the mage-file
74 [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules
75
76 if [[ ${ARCH} = x86_64 ]]
77 then
78 mlink multiarch-wrapper /usr/bin/pango-querymodules || die
79 mlink multiarch-wrapper /usr/bin/pango-view || die
80 fi
81 }
82
83 postinstall()
84 {
85 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
86 then
87 echo "Generating modules listing ..."
88 local confdir
89 if [[ ${ARCH} = x86_64 ]]
90 then
91 # generate pango-modules for i686
92 confdir=/etc/pango/i686-pc-linux-gnu
93 install -d ${confdir}
94 pango-querymodules-m32 > ${confdir}/pango.modules
95 fi
96 confdir=/etc/pango/${CHOST}
97 install -d ${confdir}
98 pango-querymodules > ${confdir}/pango.modules
99 fi
100 }