wok-undigest view glib/receipt @ rev 1114

Add a bunch of pkgs with ewebkit and some update (try to build eve)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 26 23:22:36 2014 +0100 (2014-03-26)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="glib"
4 VERSION="2.36.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 ./autogen.sh
35 ./configure \
36 --sysconfdir=/etc \
37 --with-pcre=system \
38 $CONFIGURE_ARGS ;;
39 arm)
40 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
41 #export LIBTOOL=arm-slitaz-linux-gnueabi-libtool
42 export LD_LIBRARY_PATH=/cross/arm/sysroot/usr/lib:/usr/lib:/lib
43 export PKG_CONFIG_LIBPATH=/cross/arm/sysroot/usr/lib/pkgconfig
45 # Glib
46 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
47 export glib_cv_uscore=${glib_cv_uscore=no}
48 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
49 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
50 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
51 CC="arm-slitaz-linux-gnueabi-gcc" \
52 ./configure \
53 --sysconfdir=/etc \
54 --with-pcre=system \
55 --build=i486-slitaz-linux \
56 --host=arm-slitaz-linux-gnueabi \
57 --enable-shared=yes \
58 --enable-static=yes ;;
59 esac &&
60 make && make install
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 mkdir -p $fs/usr/lib
67 cp -a $install/usr/bin $fs/usr
68 cp -a $install/usr/lib/*.so* $fs/usr/lib
70 # Split gio --> libgio
71 rm $fs/usr/lib/libgio*
73 # Python codegen, tester, Perl mkenums --> glib-dev
74 for bin in gdbus-codegen gtester* glib-mkenums
75 do
76 rm $fs/usr/bin/$bin
77 done
79 # Cook packages that want glib.
80 for w in libgio libgio-dev
81 do
82 [ -x "/usr/bin/cook" ] && echo cook $w
83 done
84 }