wok-next view glib/receipt @ rev 18627

syslinux/taziso/showfavinfo: show receipt
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 24 14:51:11 2015 +0100 (2015-11-24)
parents 3fbf40bde02e
children 4eab61ea2c5a
line source
1 # SliTaz package receipt.
3 PACKAGE="glib"
4 VERSION="2.43.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_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
37 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib"
39 # Glib
40 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
41 export glib_cv_uscore=${glib_cv_uscore=no}
42 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
43 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
44 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
45 CC="$HOST_SYSTEM-gcc" \
46 LIBTOOL="$HOST_SYSTEM-libtool" \
47 ./configure \
48 --sysconfdir=/etc \
49 --with-pcre=system \
50 --build=i486-slitaz-linux \
51 --host=$ARCH-slitaz-linux-gnueabi \
52 --enable-shared=yes \
53 --enable-static=yes \
54 --disable-rpath ;;
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 }