wok-next annotate glib/receipt @ rev 20446
pixman is obsolete -> xorg-pixman
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 13:29:20 2018 +0200 (2018-02-28) |
parents | ab7c63b80420 |
children | 757d032c55c7 |
rev | line source |
---|---|
al@19761 | 1 # SliTaz package receipt v2. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="glib" |
al@20405 | 4 VERSION="2.52.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/" |
al@20405 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/glib2.html" |
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@20405 | 15 BUILD_DEPENDS_arm="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" |
al@19590 | 16 BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \ |
al@19761 | 17 pcre-dev gtk-doc libxslt libxml2-tools dbus-dev util-linux-mount-dev" |
al@19778 | 18 SPLIT="glib-dev" |
pankso@15967 | 19 |
al@20405 | 20 compile_rules() { |
al@20405 | 21 fix ld |
pankso@15967 | 22 case "$ARCH" in |
al@20443 | 23 i?86|x86_64) |
pankso@16015 | 24 ./configure \ |
al@20405 | 25 --sysconfdir=/etc \ |
al@20405 | 26 --with-pcre=system \ |
al@20405 | 27 --enable-static \ |
al@20405 | 28 $CONFIGURE_ARGS ;; |
pankso@16319 | 29 arm*) |
pankso@16015 | 30 # Native ARM build --> if ARCH != SLITAZ_ARCH ? |
pankso@16319 | 31 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib |
pankso@16380 | 32 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig |
pascal@17670 | 33 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib" |
al@19762 | 34 |
pankso@16015 | 35 # Glib |
pankso@15967 | 36 export glib_cv_stack_grows=${glib_cv_stack_grows=no} |
pankso@15967 | 37 export glib_cv_uscore=${glib_cv_uscore=no} |
pankso@15967 | 38 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no} |
pankso@15967 | 39 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no} |
pankso@15967 | 40 export ac_cv_type_long_long=${ac_cv_type_long_long=yes} |
pankso@16319 | 41 CC="$HOST_SYSTEM-gcc" \ |
pankso@16319 | 42 LIBTOOL="$HOST_SYSTEM-libtool" \ |
pankso@15967 | 43 ./configure \ |
pankso@15967 | 44 --sysconfdir=/etc \ |
pankso@15967 | 45 --with-pcre=system \ |
pankso@15967 | 46 --build=i486-slitaz-linux \ |
pankso@16379 | 47 --host=$ARCH-slitaz-linux-gnueabi \ |
pankso@15967 | 48 --enable-shared=yes \ |
pankso@16380 | 49 --enable-static=yes \ |
pankso@16380 | 50 --disable-rpath ;; |
al@19590 | 51 esac && |
al@20405 | 52 fix libtool && |
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 |
al@20405 | 63 genpkg_rules() { |
al@19761 | 64 case $PACKAGE in |
al@19761 | 65 glib) |
al@19778 | 66 copy @std |
al@19761 | 67 # Python codegen, tester, Perl mkenums --> glib-dev |
al@19780 | 68 cd $fs/usr/bin |
al@19780 | 69 rm gdbus-codegen gtester* glib-mkenums glib-gettextize |
al@19778 | 70 rm -r $fs/usr/share |
al@20405 | 71 DEPENDS="elfutils libffi pcre util-linux-mount zlib" |
al@19785 | 72 PROVIDE="libgio" # deprecated |
al@19761 | 73 ;; |
al@19761 | 74 glib-dev) |
al@20405 | 75 copy @std @dev @rm |
al@19778 | 76 DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \ |
al@19778 | 77 util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python" |
al@19785 | 78 PROVIDE="libgio-dev" # deprecated |
al@19761 | 79 ;; |
al@19761 | 80 esac |
pankso@22 | 81 } |