wok annotate glib/receipt @ rev 17601

linux64/stuff/modules64.list: add visor.ko.xz
author Richard Dunbar <mojo@slitaz.org>
date Wed Feb 11 18:18:30 2015 -0500 (2015-02-11)
parents 51b3e2d10e16
children 17e313b5b9c1
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"
pankso@22 10 WEB_SITE="http://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
pankso@16380 37 export 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 }