wok-next view glib/receipt @ rev 19609

libcroco, glib: `mkdir -p /usr/share/gtk-doc/html` before `make install`
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Feb 03 14:37:14 2017 +0200 (2017-02-03)
parents 35a20e111081
children b7a457d78428
line source
1 # SliTaz package receipt.
3 PACKAGE="glib"
4 VERSION="2.48.2"
5 series=$(echo $VERSION | cut -d. -f1,2)
6 CATEGORY="x-window"
7 SHORT_DESC="C routines."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.gtk.org/"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.xz"
14 WGET_URL="$GNOME_MIRROR/$PACKAGE/$series/$TARBALL"
16 DEPENDS="pcre libffi libxml2 elfutils"
17 BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \
18 pcre-dev gtk-doc libxslt libxml2-tools dbus-dev"
19 SPLIT="libgio libgio-dev"
21 # Handle cross comilation. Use host Perl, Python, etc
22 case "$ARCH" in
23 arm*)
24 BUILD_DEPENDS="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 case "$ARCH" in
31 i?86)
32 ./configure \
33 --sysconfdir=/etc \
34 --with-pcre=system \
35 $CONFIGURE_ARGS ;;
36 arm*)
37 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
38 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
39 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
40 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib"
42 # Glib
43 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
44 export glib_cv_uscore=${glib_cv_uscore=no}
45 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
46 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
47 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
48 CC="$HOST_SYSTEM-gcc" \
49 LIBTOOL="$HOST_SYSTEM-libtool" \
50 ./configure \
51 --sysconfdir=/etc \
52 --with-pcre=system \
53 --build=i486-slitaz-linux \
54 --host=$ARCH-slitaz-linux-gnueabi \
55 --enable-shared=yes \
56 --enable-static=yes \
57 --disable-rpath ;;
58 esac &&
59 make &&
60 mkdir -p /usr/share/gtk-doc/html &&
61 make install
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 cook_copy_folders bin
68 cook_copy_files *.so*
70 # Split gio --> libgio
71 rm $fs/usr/lib/libgio*
73 # Python codegen, tester, Perl mkenums --> glib-dev
74 for bin in gdbus-codegen gtester* glib-mkenums; do
75 rm $fs/usr/bin/$bin
76 done
77 }