wok-next view glib/receipt @ rev 20663

Fix web site for the Shimmer Project themes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 10 22:58:32 2018 +0300 (2018-05-10)
parents 0e7893ac206d
children 014a4f35b014
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 case "$ARCH" in
22 i?86|x86_64)
23 ./configure \
24 --with-pcre=system \
25 --enable-static \
26 $CONFIGURE_ARGS ;;
27 arm*)
28 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
29 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
30 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
31 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib"
33 # Glib
34 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
35 export glib_cv_uscore=${glib_cv_uscore=no}
36 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
37 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
38 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
39 CC="$HOST_SYSTEM-gcc" \
40 LIBTOOL="$HOST_SYSTEM-libtool" \
41 ./configure \
42 --sysconfdir=/etc \
43 --with-pcre=system \
44 --build=i486-slitaz-linux \
45 --host=$ARCH-slitaz-linux-gnueabi \
46 --enable-shared=yes \
47 --enable-static=yes \
48 --disable-rpath ;;
49 esac &&
50 fix libtool &&
51 make &&
52 make DESTDIR=/ install &&
53 make DESTDIR=$DESTDIR install
55 # we need `make DESTDIR=/ install` first because at the some stage (usual)
56 # `make install` need file glib-2.0.pc installed in the FS.
57 # `cook` is sure than this error is fatal.
58 # Installing into / is safe since we working in the Aufs layer...
59 }
61 genpkg_rules() {
62 case $PACKAGE in
63 glib)
64 copy @std
65 # Python codegen, tester, Perl mkenums --> glib-dev
66 cd $fs/usr/bin
67 rm gdbus-codegen gtester* glib-mkenums glib-gettextize
68 rm -r $fs/usr/share
69 DEPENDS="elfutils libffi pcre util-linux-mount zlib"
70 PROVIDE="libgio" # deprecated
71 ;;
72 glib-dev)
73 copy @std @dev @rm
74 DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \
75 util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python"
76 PROVIDE="libgio-dev" # deprecated
77 ;;
78 esac
79 }