wok-current view glib/receipt @ rev 15984
tcc: improve arm support but still not cross compiling
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 02 00:29:29 2014 +0100 (2014-03-02) |
parents | fd22b033a84a |
children | 128f691c5117 |
line source
1 # SliTaz package receipt.
3 PACKAGE="glib"
4 VERSION="2.32.4"
5 #VERSION="2.34.3"
6 CATEGORY="x-window"
7 SHORT_DESC="C routines."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="http://www.gtk.org/"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
13 #HOST_ARCH="i486 arm"
14 CROSS_BUGS="2.32.4: error: cannot compute alignment of guint32
15 2.34.3: Buggy shared libs format (libpcre, libffi)"
17 DEPENDS="pcre libffi libxml2 elfutils"
18 BUILD_DEPENDS="pcre-dev libffi-dev gettext zlib-dev perl python python-dev \
19 elfutils-dev libxml2-dev libxml2-tools automake"
21 # Handle cross comilation. Use host Perl, Python, etc
22 case "$ARCH" in
23 arm) 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 arm)
31 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
32 export glib_cv_uscore=${glib_cv_uscore=no}
33 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
34 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
35 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
36 export LD_LIBRARY_PATH=/cross/arm/sysroot/usr/lib:/usr/lib:/lib:/usr/local/lib
37 export PKG_CONFIG_LIBPATH=/cross/arm/sysroot/usr/lib/pkgconfig
38 CC="arm-slitaz-linux-gnueabi-gcc" \
39 ./configure \
40 --sysconfdir=/etc \
41 --with-pcre=system \
42 --build=i486-slitaz-linux \
43 --host=arm-slitaz-linux-gnueabi \
44 --enable-shared=yes \
45 --enable-static=yes ;;
46 *)
47 ./configure \
48 --sysconfdir=/etc \
49 --with-pcre=system \
50 $CONFIGURE_ARGS ;;
51 esac &&
52 make && make install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/lib/*.so* $fs/usr/lib
62 # Split gio --> libgio
63 rm $fs/usr/lib/libgio*
65 # Python codegen, tester, Perl mkenums --> glib-dev
66 for bin in gdbus-codegen gtester* glib-mkenums
67 do
68 rm $fs/usr/bin/$bin
69 done
71 # Cook packages that want glib.
72 for w in libgio libgio-dev
73 do
74 [ -x "/usr/bin/cook" ] && echo cook $w
75 done
76 }