wok-next view glib/receipt @ rev 20405
Follow BLFS Chapter 9 "General Libraries": up apr, apr-util, aspell, autoconf213 (for js), dbus-glib, enchant, exempi, fftw, glib, glibmm, gmime, gobject-introspection, gsl, js, libboost.
js is 39.7MB / 87.6MB now. Looks like it's proper time to kick off polkit (Hi, Xander! You was right.)
js is 39.7MB / 87.6MB now. Looks like it's proper time to kick off polkit (Hi, Xander! You was right.)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 07 17:39:40 2017 +0200 (2017-12-07) |
parents | f445ca69a6a7 |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="glib"
4 VERSION="2.52.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 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/glib2.html"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.xz"
14 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
16 BUILD_DEPENDS_arm="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev"
17 BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \
18 pcre-dev gtk-doc libxslt libxml2-tools dbus-dev util-linux-mount-dev"
19 SPLIT="glib-dev"
21 compile_rules() {
22 fix ld
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 fix libtool &&
54 make &&
55 make DESTDIR=/ install &&
56 make DESTDIR=$DESTDIR install
58 # we need `make DESTDIR=/ install` first because at the some stage (usual)
59 # `make install` need file glib-2.0.pc installed in the FS.
60 # `cook` is sure than this error is fatal.
61 # Installing into / is safe since we working in the Aufs layer...
62 }
64 genpkg_rules() {
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-mount zlib"
73 PROVIDE="libgio" # deprecated
74 ;;
75 glib-dev)
76 copy @std @dev @rm
77 DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \
78 util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python"
79 PROVIDE="libgio-dev" # deprecated
80 ;;
81 esac
82 }