wok-next view glib/receipt @ rev 20446

pixman is obsolete -> xorg-pixman
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 13:29:20 2018 +0200 (2018-02-28)
parents ab7c63b80420
children 757d032c55c7
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"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS_arm="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev"
16 BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \
17 pcre-dev gtk-doc libxslt libxml2-tools dbus-dev util-linux-mount-dev"
18 SPLIT="glib-dev"
20 compile_rules() {
21 fix ld
22 case "$ARCH" in
23 i?86|x86_64)
24 ./configure \
25 --sysconfdir=/etc \
26 --with-pcre=system \
27 --enable-static \
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 fix libtool &&
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 genpkg_rules() {
64 case $PACKAGE in
65 glib)
66 copy @std
67 # Python codegen, tester, Perl mkenums --> glib-dev
68 cd $fs/usr/bin
69 rm gdbus-codegen gtester* glib-mkenums glib-gettextize
70 rm -r $fs/usr/share
71 DEPENDS="elfutils libffi pcre util-linux-mount zlib"
72 PROVIDE="libgio" # deprecated
73 ;;
74 glib-dev)
75 copy @std @dev @rm
76 DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \
77 util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python"
78 PROVIDE="libgio-dev" # deprecated
79 ;;
80 esac
81 }