wok-next view glib/receipt @ rev 16379

ARM: add sox, libunique, libao, libnotify
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 15 03:14:22 2014 +0200 (2014-04-15)
parents 557291b407c6
children bfa161af9356
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 DEPENDS="pcre libffi libxml2 elfutils"
15 BUILD_DEPENDS="pcre-dev libffi-dev gettext zlib-dev perl python-dev \
16 elfutils-dev libxml2-dev libxml2-tools automake"
18 # Handle cross comilation. Use host Perl, Python, etc
19 case "$ARCH" in
20 arm*)
21 BUILD_DEPENDS="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 case "$ARCH" in
28 i?86)
29 ./configure \
30 --sysconfdir=/etc \
31 --with-pcre=system \
32 $CONFIGURE_ARGS ;;
33 arm*)
34 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
35 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
36 export PKG_CONFIG_LIBPATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
38 # Glib
39 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
40 export glib_cv_uscore=${glib_cv_uscore=no}
41 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
42 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
43 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
44 CC="$HOST_SYSTEM-gcc" \
45 LIBTOOL="$HOST_SYSTEM-libtool" \
46 ./configure \
47 --sysconfdir=/etc \
48 --with-pcre=system \
49 --build=i486-slitaz-linux \
50 --host=$ARCH-slitaz-linux-gnueabi \
51 --enable-shared=yes \
52 --enable-static=yes ;;
53 esac &&
54 make && make install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib
61 cp -a $install/usr/bin $fs/usr
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
64 # Split gio --> libgio
65 rm $fs/usr/lib/libgio*
67 # Python codegen, tester, Perl mkenums --> glib-dev
68 for bin in gdbus-codegen gtester* glib-mkenums
69 do
70 rm $fs/usr/bin/$bin
71 done
73 # Cook packages that want glib.
74 for w in libgio libgio-dev
75 do
76 [ -x "/usr/bin/cook" ] && echo cook $w
77 done
78 }