wok-current view glib/receipt @ rev 16346
ARM: add tor + tinycm (up to 1.1)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 12 23:52:01 2014 +0200 (2014-04-12) |
parents | 3a1e8d25c320 |
children | e1ee172acb7b |
line source
1 # SliTaz package receipt.
3 PACKAGE="glib"
4 VERSION="2.34.3"
5 CATEGORY="x-window"
6 SHORT_DESC="C routines."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gtk.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 HOST_ARCH="i486 arm"
14 CROSS_BUGS="arm: glib 2.32.4 error: cannot compute alignment of guint32"
16 DEPENDS="pcre libffi libxml2 elfutils"
17 BUILD_DEPENDS="pcre-dev libffi-dev gettext zlib-dev perl python-dev \
18 elfutils-dev libxml2-dev libxml2-tools automake"
20 # Handle cross comilation. Use host Perl, Python, etc
21 case "$ARCH" in
22 arm*)
23 BUILD_DEPENDS="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 case "$ARCH" in
30 i?86)
31 ./configure \
32 --sysconfdir=/etc \
33 --with-pcre=system \
34 $CONFIGURE_ARGS ;;
35 arm*)
36 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
37 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
38 export PKG_CONFIG_LIBPATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
40 # Glib
41 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
42 export glib_cv_uscore=${glib_cv_uscore=no}
43 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
44 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
45 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
46 CC="$HOST_SYSTEM-gcc" \
47 LIBTOOL="$HOST_SYSTEM-libtool" \
48 ./configure \
49 --sysconfdir=/etc \
50 --with-pcre=system \
51 --build=i486-slitaz-linux \
52 --host=arm-slitaz-linux-gnueabi \
53 --enable-shared=yes \
54 --enable-static=yes ;;
55 esac &&
56 make && make install
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p $fs/usr/lib
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 # Split gio --> libgio
67 rm $fs/usr/lib/libgio*
69 # Python codegen, tester, Perl mkenums --> glib-dev
70 for bin in gdbus-codegen gtester* glib-mkenums
71 do
72 rm $fs/usr/bin/$bin
73 done
75 # Cook packages that want glib.
76 for w in libgio libgio-dev
77 do
78 [ -x "/usr/bin/cook" ] && echo cook $w
79 done
80 }