Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/glib2/glib2-2.28.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1942 - (show annotations) (download)
Fri May 6 19:23:35 2011 UTC (13 years, 1 month ago) by niro
File size: 1526 byte(s)
-added glib2, needed by mkinitrd which is needed for livecds
1 # $Id$
2
3 PNAME="glib2"
4 PVER="2.28.6"
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 DEPEND=">= virtual/glibc"
14 SDEPEND=">= dev-util/pkgconfig-0.25"
15
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 REMOVE_DEPRECATED_MAGE_TARGETS=1
23 ALX_ONLY_KEEP="etc usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
24 sminclude multilib mtools alx-split
25
26 SRC_URI=(
27 gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 UP2DATE="updatecmd_gnome ${PNAME/2/}"
32
33 src_compile()
34 {
35 local myconf_m64
36 myconf_m64="--build=${CHOST}"
37
38 local myconf
39 # disable fam support
40 myconf="--disable-fam"
41 # disable gtk-doc and man
42 myconf+=" --disable-gtk-doc"
43 myconf+=" --disable-man"
44 # disable xattr
45 myconf+=" --disable-xattr"
46 # no native regex - disabled, splashy need regex
47 #myconf+=" --disable-regex"
48 # use internal regex
49 myconf+=" --with-pcre=internal --enable-regex"
50 # no nls
51 myconf+=" --with-libiconv=no"
52 myconf+=" --disable-nls"
53
54 # fix compile issues -> chost != build breaks the build
55 mconfigure '$(eval echo \$myconf_${abi})' --with-threads=posix ${myconf} || die
56 mmake || die
57 }
58
59 alx_generic_src_install()
60 {
61 minstall_destdir || die
62
63 # Consider invalid UTF-8 filenames as locale-specific.
64 # FIXME : we should probably move to suggesting G_FILENAME_ENC
65 minstalldir /etc/env.d || die
66 echo "G_BROKEN_FILENAMES=1" > ${BINDIR}/etc/env.d/50glib2 || die
67 }