Magellan Linux

Annotation of /trunk/core/pango/pango-1.24.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1267 - (hide annotations) (download)
Sun Apr 26 16:00:57 2009 UTC (15 years, 2 months ago) by niro
File size: 1911 byte(s)
-fix build
1 niro 1262 # $Id$
2    
3     PNAME="pango"
4     PVER="1.24.1"
5     PBUILD="r1"
6    
7     PCATEGORIE="x11-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="Library for layout and rendering of internationalized text."
11     HOMEPAGE="http://www.pango.org/"
12    
13     DEPEND=">= x11-libs/libXrender-0.9
14     >= x11-libs/libX11-1
15     >= x11-libs/libXft-2
16     >= dev-libs/glib2-2.20
17     >= media-libs/fontconfig-2
18     >= media-libs/freetype-2
19     >= x11-libs/cairo-1.8"
20    
21     SDEPEND=">= dev-util/pkgconfig-0.23"
22    
23     # simul linux32 to get config things right
24     EMUL_LINUX_32=true
25    
26     sminclude multilib mtools
27    
28     SRCFILE="${PNAME}-${PVER}.tar.bz2"
29     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
30    
31     SRC_URI=(
32     gnome://${PNAME}/${PVER%.*}/${SRCFILE}
33     mirror://${PNAME}/${SRCFILE}
34     mirror://${PNAME}/pango-1.12.1-xfonts.patch
35     mirror://${PNAME}/pango-1.12.1-multilib.patch
36     )
37    
38     UP2DATE="updatecmd_gnome ${PNAME}"
39    
40     src_prepare()
41     {
42     munpack ${SRCFILE} || die
43    
44     # some enhancements from Redhat
45     mpatch pango-1.12.1-xfonts.patch || die
46    
47     # multilib fixes
48     mpatch pango-1.12.1-multilib.patch || die
49     }
50    
51     src_compile()
52     {
53     local myconf
54     [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix='-${abi}'
55    
56 niro 1267 mconfigure --build=${CHOST} --disable-static --disable-gtk-doc ${myconf} || die
57 niro 1262 mmake || die
58     }
59    
60     src_install()
61     {
62     minstall_destdir || die
63    
64     # we regenerate this in the mage-file
65     [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules
66    
67     if [[ ${ARCH} = x86_64 ]]
68     then
69     mlink pango-querymodules-m64 /usr/bin/pango-querymodules || die
70     mlink pango-view-m64 /usr/bin/pango-view || die
71     fi
72     }
73    
74     postinstall()
75     {
76     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
77     then
78     echo "Generating modules listing ..."
79     local confdir
80     if [[ ${ARCH} = x86_64 ]]
81     then
82     # generate pango-modules for i686
83     confdir=/etc/pango/i686-pc-linux-gnu
84     install -d ${confdir}
85     pango-querymodules-m32 > ${confdir}/pango.modules
86     fi
87     confdir=/etc/pango/${CHOST}
88     install -d ${confdir}
89     pango-querymodules > ${confdir}/pango.modules
90     fi
91     }

Properties

Name Value
svn:keywords Id