wok-next view glib/receipt @ rev 19780

Up glib, glib-networking, libnl, libevent, libpcap, libsoup.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 17 01:38:14 2017 +0300 (2017-06-17)
parents becece00f2de
children f5bfda4cdfe9
line source
1 # SliTaz package receipt v2.
3 PACKAGE="glib"
4 VERSION="2.50.3"
5 CATEGORY="x-window"
6 SHORT_DESC="C routines"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://developer.gnome.org/glib/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \
16 pcre-dev gtk-doc libxslt libxml2-tools dbus-dev util-linux-mount-dev"
17 BUILD_DEPENDS_arm="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev"
18 SPLIT="glib-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 case "$ARCH" in
24 i?86)
25 ./configure \
26 --sysconfdir=/etc \
27 --with-pcre=system \
28 $CONFIGURE_ARGS ;;
29 arm*)
30 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
31 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
32 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
33 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib"
35 # Glib
36 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
37 export glib_cv_uscore=${glib_cv_uscore=no}
38 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
39 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
40 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
41 CC="$HOST_SYSTEM-gcc" \
42 LIBTOOL="$HOST_SYSTEM-libtool" \
43 ./configure \
44 --sysconfdir=/etc \
45 --with-pcre=system \
46 --build=i486-slitaz-linux \
47 --host=$ARCH-slitaz-linux-gnueabi \
48 --enable-shared=yes \
49 --enable-static=yes \
50 --disable-rpath ;;
51 esac &&
52 make &&
53 make DESTDIR=/ install &&
54 make DESTDIR=$DESTDIR install
56 # we need `make DESTDIR=/ install` first because at the some stage (usual)
57 # `make install` need file glib-2.0.pc installed in the FS.
58 # `cook` is sure than this error is fatal.
59 # Installing into / is safe since we working in the Aufs layer...
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 case $PACKAGE in
66 glib)
67 copy @std
68 # Python codegen, tester, Perl mkenums --> glib-dev
69 cd $fs/usr/bin
70 rm gdbus-codegen gtester* glib-mkenums glib-gettextize
71 rm -r $fs/usr/share
72 DEPENDS="elfutils libffi pcre util-linux-blkid util-linux-mount \
73 util-linux-uuid zlib"
74 ;;
75 glib-dev)
76 copy @std @dev
77 remove_already_packed
78 DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \
79 util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python"
80 ;;
81 esac
82 }