wok-current view glib/receipt @ rev 16291
Fix pathon version from last commit
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 07 00:16:55 2014 +0200 (2014-04-07) |
parents | d0e9cc44b37e |
children | 3a1e8d25c320 |
line source
1 # SliTaz package receipt.
3 PACKAGE="glib"
4 VERSION="2.32.4"
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 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 VERSION="2.34.3"
24 TARBALL="$PACKAGE-$VERSION.tar.xz"
25 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
26 BUILD_DEPENDS="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 case "$ARCH" in
33 i?86)
34 ./configure \
35 --sysconfdir=/etc \
36 --with-pcre=system \
37 $CONFIGURE_ARGS ;;
38 arm)
39 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
40 #export LIBTOOL=arm-slitaz-linux-gnueabi-libtool
41 export LD_LIBRARY_PATH=/cross/arm/sysroot/usr/lib:/usr/lib:/lib
42 export PKG_CONFIG_LIBPATH=/cross/arm/sysroot/usr/lib/pkgconfig
44 # Glib
45 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
46 export glib_cv_uscore=${glib_cv_uscore=no}
47 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
48 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
49 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
50 CC="arm-slitaz-linux-gnueabi-gcc" \
51 ./configure \
52 --sysconfdir=/etc \
53 --with-pcre=system \
54 --build=i486-slitaz-linux \
55 --host=arm-slitaz-linux-gnueabi \
56 --enable-shared=yes \
57 --enable-static=yes ;;
58 esac &&
59 make && make install
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p $fs/usr/lib
66 cp -a $install/usr/bin $fs/usr
67 cp -a $install/usr/lib/*.so* $fs/usr/lib
69 # Split gio --> libgio
70 rm $fs/usr/lib/libgio*
72 # Python codegen, tester, Perl mkenums --> glib-dev
73 for bin in gdbus-codegen gtester* glib-mkenums
74 do
75 rm $fs/usr/bin/$bin
76 done
78 # Cook packages that want glib.
79 for w in libgio libgio-dev
80 do
81 [ -x "/usr/bin/cook" ] && echo cook $w
82 done
83 }