wok-6.x annotate glib/receipt @ rev 21053

updated intltool (0.50.2 -> 0.51.1)
author Hans-G?nter Theisgen
date Wed Mar 13 14:21:03 2019 +0100 (2019-03-13)
parents 17e313b5b9c1
children 324b3fa82b76
rev   line source
pascal@6023 1 # SliTaz package receipt.
pankso@22 2
pankso@22 3 PACKAGE="glib"
devl547@17595 4 VERSION="2.43.3"
pankso@22 5 CATEGORY="x-window"
pankso@22 6 SHORT_DESC="C routines."
pankso@22 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pankso@12471 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@20669 10 WEB_SITE="https://www.gtk.org/"
slaxemulator@10985 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
pankso@16015 12 HOST_ARCH="i486 arm"
pankso@16015 13
pankso@12471 14 DEPENDS="pcre libffi libxml2 elfutils"
pankso@16319 15 BUILD_DEPENDS="pcre-dev libffi-dev gettext zlib-dev perl python-dev \
pascal@15616 16 elfutils-dev libxml2-dev libxml2-tools automake"
slaxemulator@10804 17
pankso@15967 18 # Handle cross comilation. Use host Perl, Python, etc
pankso@15967 19 case "$ARCH" in
pankso@16319 20 arm*)
pankso@16015 21 BUILD_DEPENDS="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" ;;
pankso@15967 22 esac
pankso@15967 23
pankso@22 24 # Rules to configure and make the package.
pankso@22 25 compile_rules()
pankso@22 26 {
pankso@15967 27 case "$ARCH" in
pascal@16017 28 i?86)
pankso@16015 29 ./configure \
pankso@16015 30 --sysconfdir=/etc \
pankso@16015 31 --with-pcre=system \
pankso@16015 32 $CONFIGURE_ARGS ;;
pankso@16319 33 arm*)
pankso@16015 34 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
pankso@16319 35 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
pankso@16380 36 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
pascal@17670 37 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib"
pankso@16015 38
pankso@16015 39 # Glib
pankso@15967 40 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
pankso@15967 41 export glib_cv_uscore=${glib_cv_uscore=no}
pankso@15967 42 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
pankso@15967 43 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
pankso@15967 44 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
pankso@16319 45 CC="$HOST_SYSTEM-gcc" \
pankso@16319 46 LIBTOOL="$HOST_SYSTEM-libtool" \
pankso@15967 47 ./configure \
pankso@15967 48 --sysconfdir=/etc \
pankso@15967 49 --with-pcre=system \
pankso@15967 50 --build=i486-slitaz-linux \
pankso@16379 51 --host=$ARCH-slitaz-linux-gnueabi \
pankso@15967 52 --enable-shared=yes \
pankso@16380 53 --enable-static=yes \
pankso@16380 54 --disable-rpath ;;
pankso@15967 55 esac &&
slaxemulator@10245 56 make && make install
pankso@22 57 }
pankso@22 58
pankso@22 59 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@22 60 genpkg_rules()
pankso@22 61 {
pankso@547 62 mkdir -p $fs/usr/lib
slaxemulator@11626 63 cp -a $install/usr/bin $fs/usr
slaxemulator@10985 64 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12471 65
pankso@12471 66 # Split gio --> libgio
pankso@842 67 rm $fs/usr/lib/libgio*
pankso@12471 68
slaxemulator@12597 69 # Python codegen, tester, Perl mkenums --> glib-dev
slaxemulator@12597 70 for bin in gdbus-codegen gtester* glib-mkenums
pankso@12471 71 do
pankso@12471 72 rm $fs/usr/bin/$bin
pankso@12471 73 done
pankso@12471 74
pankso@12471 75 # Cook packages that want glib.
pankso@12471 76 for w in libgio libgio-dev
pankso@12471 77 do
pascal@15152 78 [ -x "/usr/bin/cook" ] && echo cook $w
pankso@12471 79 done
pankso@22 80 }