wok-next annotate glib/receipt @ rev 20230
Up graphviz
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 06 05:30:08 2017 +0200 (2017-11-06) |
parents | f5bfda4cdfe9 |
children | ab7c63b80420 |
rev | line source |
---|---|
al@19761 | 1 # SliTaz package receipt v2. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="glib" |
al@19761 | 4 VERSION="2.50.3" |
pankso@22 | 5 CATEGORY="x-window" |
al@19761 | 6 SHORT_DESC="C routines" |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19780 | 9 WEB_SITE="https://developer.gnome.org/glib/" |
pankso@16015 | 10 HOST_ARCH="i486 arm" |
pankso@16015 | 11 |
al@19590 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19761 | 13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
al@19590 | 14 |
al@19590 | 15 BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \ |
al@19761 | 16 pcre-dev gtk-doc libxslt libxml2-tools dbus-dev util-linux-mount-dev" |
al@19761 | 17 BUILD_DEPENDS_arm="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" |
al@19778 | 18 SPLIT="glib-dev" |
pankso@15967 | 19 |
pankso@22 | 20 # Rules to configure and make the package. |
pankso@22 | 21 compile_rules() |
pankso@22 | 22 { |
pankso@15967 | 23 case "$ARCH" in |
pascal@16017 | 24 i?86) |
pankso@16015 | 25 ./configure \ |
al@19762 | 26 --sysconfdir=/etc \ |
al@19762 | 27 --with-pcre=system \ |
al@19784 | 28 --enable-static \ |
al@19762 | 29 $CONFIGURE_ARGS ;; |
pankso@16319 | 30 arm*) |
pankso@16015 | 31 # Native ARM build --> if ARCH != SLITAZ_ARCH ? |
pankso@16319 | 32 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib |
pankso@16380 | 33 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig |
pascal@17670 | 34 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib" |
al@19762 | 35 |
pankso@16015 | 36 # Glib |
pankso@15967 | 37 export glib_cv_stack_grows=${glib_cv_stack_grows=no} |
pankso@15967 | 38 export glib_cv_uscore=${glib_cv_uscore=no} |
pankso@15967 | 39 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no} |
pankso@15967 | 40 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no} |
pankso@15967 | 41 export ac_cv_type_long_long=${ac_cv_type_long_long=yes} |
pankso@16319 | 42 CC="$HOST_SYSTEM-gcc" \ |
pankso@16319 | 43 LIBTOOL="$HOST_SYSTEM-libtool" \ |
pankso@15967 | 44 ./configure \ |
pankso@15967 | 45 --sysconfdir=/etc \ |
pankso@15967 | 46 --with-pcre=system \ |
pankso@15967 | 47 --build=i486-slitaz-linux \ |
pankso@16379 | 48 --host=$ARCH-slitaz-linux-gnueabi \ |
pankso@15967 | 49 --enable-shared=yes \ |
pankso@16380 | 50 --enable-static=yes \ |
pankso@16380 | 51 --disable-rpath ;; |
al@19590 | 52 esac && |
al@19609 | 53 make && |
al@19762 | 54 make DESTDIR=/ install && |
al@19762 | 55 make DESTDIR=$DESTDIR install |
al@19762 | 56 |
al@19762 | 57 # we need `make DESTDIR=/ install` first because at the some stage (usual) |
al@19762 | 58 # `make install` need file glib-2.0.pc installed in the FS. |
al@19762 | 59 # `cook` is sure than this error is fatal. |
al@19762 | 60 # Installing into / is safe since we working in the Aufs layer... |
pankso@22 | 61 } |
pankso@22 | 62 |
pankso@22 | 63 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 64 genpkg_rules() |
pankso@22 | 65 { |
al@19761 | 66 case $PACKAGE in |
al@19761 | 67 glib) |
al@19778 | 68 copy @std |
al@19761 | 69 # Python codegen, tester, Perl mkenums --> glib-dev |
al@19780 | 70 cd $fs/usr/bin |
al@19780 | 71 rm gdbus-codegen gtester* glib-mkenums glib-gettextize |
al@19778 | 72 rm -r $fs/usr/share |
al@19778 | 73 DEPENDS="elfutils libffi pcre util-linux-blkid util-linux-mount \ |
al@19778 | 74 util-linux-uuid zlib" |
al@19785 | 75 PROVIDE="libgio" # deprecated |
al@19761 | 76 ;; |
al@19761 | 77 glib-dev) |
al@19762 | 78 copy @std @dev |
al@19762 | 79 remove_already_packed |
al@19778 | 80 DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \ |
al@19778 | 81 util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python" |
al@19785 | 82 PROVIDE="libgio-dev" # deprecated |
al@19761 | 83 ;; |
al@19761 | 84 esac |
pankso@22 | 85 } |