wok-next view glib/receipt @ rev 19717
tty-clock: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 23 11:13:34 2017 +0200 (2017-05-23) |
parents | c7a19c70fb7f |
children | b14795918795 |
line source
1 # SliTaz package receipt.
3 PACKAGE="glib"
4 VERSION="2.48.2"
5 series=$(echo $VERSION | cut -d. -f1,2)
6 CATEGORY="x-window"
7 SHORT_DESC="C routines."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.gtk.org/"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.xz"
14 WGET_URL="$GNOME_MIRROR/$PACKAGE/$series/$TARBALL"
16 DEPENDS="pcre libffi libxml2 elfutils"
17 BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \
18 pcre-dev gtk-doc libxslt libxml2-tools dbus-dev"
19 SPLIT="libgio libgio-dev"
21 # Handle cross comilation. Use host Perl, Python, etc
22 case "$ARCH" in
23 arm*)
24 BUILD_DEPENDS="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 case "$ARCH" in
31 i?86)
32 ./configure \
33 --sysconfdir=/etc \
34 --with-pcre=system \
35 $CONFIGURE_ARGS ;;
36 arm*)
37 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
38 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
39 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
40 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib"
42 # Glib
43 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
44 export glib_cv_uscore=${glib_cv_uscore=no}
45 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
46 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
47 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
48 CC="$HOST_SYSTEM-gcc" \
49 LIBTOOL="$HOST_SYSTEM-libtool" \
50 ./configure \
51 --sysconfdir=/etc \
52 --with-pcre=system \
53 --build=i486-slitaz-linux \
54 --host=$ARCH-slitaz-linux-gnueabi \
55 --enable-shared=yes \
56 --enable-static=yes \
57 --disable-rpath ;;
58 esac &&
59 make &&
60 make install
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 cook_copy_folders bin
67 cook_copy_files *.so*
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; do
74 rm $fs/usr/bin/$bin
75 done
76 }