wok-next view glib/receipt @ rev 19789
Add js, up pam, polkit, polkit-pam; fix typo in btrfs-progs.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 20 03:48:54 2017 +0300 (2017-06-20) |
parents | f5bfda4cdfe9 |
children | ab7c63b80420 |
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 --enable-static \
29 $CONFIGURE_ARGS ;;
30 arm*)
31 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
32 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
33 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
34 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib"
36 # Glib
37 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
38 export glib_cv_uscore=${glib_cv_uscore=no}
39 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
40 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
41 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
42 CC="$HOST_SYSTEM-gcc" \
43 LIBTOOL="$HOST_SYSTEM-libtool" \
44 ./configure \
45 --sysconfdir=/etc \
46 --with-pcre=system \
47 --build=i486-slitaz-linux \
48 --host=$ARCH-slitaz-linux-gnueabi \
49 --enable-shared=yes \
50 --enable-static=yes \
51 --disable-rpath ;;
52 esac &&
53 make &&
54 make DESTDIR=/ install &&
55 make DESTDIR=$DESTDIR install
57 # we need `make DESTDIR=/ install` first because at the some stage (usual)
58 # `make install` need file glib-2.0.pc installed in the FS.
59 # `cook` is sure than this error is fatal.
60 # Installing into / is safe since we working in the Aufs layer...
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 case $PACKAGE in
67 glib)
68 copy @std
69 # Python codegen, tester, Perl mkenums --> glib-dev
70 cd $fs/usr/bin
71 rm gdbus-codegen gtester* glib-mkenums glib-gettextize
72 rm -r $fs/usr/share
73 DEPENDS="elfutils libffi pcre util-linux-blkid util-linux-mount \
74 util-linux-uuid zlib"
75 PROVIDE="libgio" # deprecated
76 ;;
77 glib-dev)
78 copy @std @dev
79 remove_already_packed
80 DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \
81 util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python"
82 PROVIDE="libgio-dev" # deprecated
83 ;;
84 esac
85 }