Magellan Linux

Annotation of /smage/trunk/core/glib2/glib2-2.24.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 753 - (hide annotations) (download)
Thu Oct 21 17:11:17 2010 UTC (13 years, 6 months ago) by niro
File size: 1555 byte(s)
-fixed a typo
1 niro 744 # $Id: glib2-2.22.2-r1.smage2 3121 2009-10-13 14:31:54Z niro $
2    
3     PNAME="glib2"
4     PVER="2.24.2"
5     PBUILD="r1"
6    
7     PCATEGORIE="dev-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="Glib2 C Utility Library."
11     HOMEPAGE="http://www.gtk.org/"
12    
13 niro 749 DEPEND=">= virtual/glibc"
14     SDEPEND=">= dev-util/pkgconfig-0.25"
15 niro 744
16     SRCFILE="${PNAME/2/}-${PVER}.tar.bz2"
17     SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}"
18    
19     # enable linux32 emulation for x86_64 arches
20     EMUL_LINUX_32=true
21    
22 niro 749 MCORE_ONLY_KEEP="etc usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
23     sminclude multilib mtools mcore-split
24 niro 744
25     SRC_URI=(
26     gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE}
27     mirror://${PNAME}/${SRCFILE}
28     )
29    
30     UP2DATE="updatecmd_gnome ${PNAME/2/}"
31    
32     src_compile()
33     {
34     local myconf_m64
35     myconf_m64="--build=${CHOST}"
36    
37 niro 749 local myconf
38     # disable fam support
39     myconf="--disable-fam"
40     # disable gtk-doc and man
41     myconf+=" --disable-gtk-doc"
42     myconf+=" --disable-man"
43     # disable xattr
44     myconf+=" --disable-xattr"
45     # no native regex - disabled, splashy need regex
46     #myconf+=" --disable-regex"
47     # use internal regex
48 niro 753 myconf+=" --with-pcre=internal --enable-regex"
49 niro 749 # no nls
50     myconf+=" --with-libiconv=no"
51     myconf+=" --disable-nls"
52    
53 niro 744 # fix compile issues -> chost != build breaks the build
54 niro 749 mconfigure '$(eval echo \$myconf_${abi})' --with-threads=posix ${myconf} || die
55 niro 744 mmake || die
56     }
57    
58 niro 749 mcore_generic_src_install()
59 niro 744 {
60     minstall_destdir || die
61    
62     # Consider invalid UTF-8 filenames as locale-specific.
63     # FIXME : we should probably move to suggesting G_FILENAME_ENC
64     minstalldir /etc/env.d || die
65     echo "G_BROKEN_FILENAMES=1" > ${BINDIR}/etc/env.d/50glib2 || die
66     }