wok annotate glib/receipt @ rev 16182
Add gweled
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 30 16:56:33 2014 +0000 (2014-03-30) |
parents | d0e9cc44b37e |
children | 3a1e8d25c320 |
rev | line source |
---|---|
pascal@6023 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="glib" |
pascal@13394 | 4 VERSION="2.32.4" |
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@16015 | 14 CROSS_BUGS="arm: glib 2.32.4 error: cannot compute alignment of guint32" |
pankso@22 | 15 |
pankso@12471 | 16 DEPENDS="pcre libffi libxml2 elfutils" |
pankso@12471 | 17 BUILD_DEPENDS="pcre-dev libffi-dev gettext zlib-dev perl python python-dev \ |
pascal@15616 | 18 elfutils-dev libxml2-dev libxml2-tools automake" |
slaxemulator@10804 | 19 |
pankso@15967 | 20 # Handle cross comilation. Use host Perl, Python, etc |
pankso@15967 | 21 case "$ARCH" in |
pankso@16015 | 22 arm) |
pankso@16015 | 23 VERSION="2.34.3" |
pankso@16015 | 24 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@16015 | 25 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" |
pankso@16015 | 26 BUILD_DEPENDS="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" ;; |
pankso@15967 | 27 esac |
pankso@15967 | 28 |
pankso@22 | 29 # Rules to configure and make the package. |
pankso@22 | 30 compile_rules() |
pankso@22 | 31 { |
pankso@15967 | 32 case "$ARCH" in |
pascal@16017 | 33 i?86) |
pankso@16015 | 34 ./configure \ |
pankso@16015 | 35 --sysconfdir=/etc \ |
pankso@16015 | 36 --with-pcre=system \ |
pankso@16015 | 37 $CONFIGURE_ARGS ;; |
pankso@15967 | 38 arm) |
pankso@16015 | 39 # Native ARM build --> if ARCH != SLITAZ_ARCH ? |
pankso@16015 | 40 #export LIBTOOL=arm-slitaz-linux-gnueabi-libtool |
pankso@16015 | 41 export LD_LIBRARY_PATH=/cross/arm/sysroot/usr/lib:/usr/lib:/lib |
pankso@16015 | 42 export PKG_CONFIG_LIBPATH=/cross/arm/sysroot/usr/lib/pkgconfig |
pankso@16015 | 43 |
pankso@16015 | 44 # Glib |
pankso@15967 | 45 export glib_cv_stack_grows=${glib_cv_stack_grows=no} |
pankso@15967 | 46 export glib_cv_uscore=${glib_cv_uscore=no} |
pankso@15967 | 47 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no} |
pankso@15967 | 48 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no} |
pankso@15967 | 49 export ac_cv_type_long_long=${ac_cv_type_long_long=yes} |
pankso@15967 | 50 CC="arm-slitaz-linux-gnueabi-gcc" \ |
pankso@15967 | 51 ./configure \ |
pankso@15967 | 52 --sysconfdir=/etc \ |
pankso@15967 | 53 --with-pcre=system \ |
pankso@15967 | 54 --build=i486-slitaz-linux \ |
pankso@15967 | 55 --host=arm-slitaz-linux-gnueabi \ |
pankso@15967 | 56 --enable-shared=yes \ |
pankso@15967 | 57 --enable-static=yes ;; |
pankso@15967 | 58 esac && |
slaxemulator@10245 | 59 make && make install |
pankso@22 | 60 } |
pankso@22 | 61 |
pankso@22 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 63 genpkg_rules() |
pankso@22 | 64 { |
pankso@547 | 65 mkdir -p $fs/usr/lib |
slaxemulator@11626 | 66 cp -a $install/usr/bin $fs/usr |
slaxemulator@10985 | 67 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12471 | 68 |
pankso@12471 | 69 # Split gio --> libgio |
pankso@842 | 70 rm $fs/usr/lib/libgio* |
pankso@12471 | 71 |
slaxemulator@12597 | 72 # Python codegen, tester, Perl mkenums --> glib-dev |
slaxemulator@12597 | 73 for bin in gdbus-codegen gtester* glib-mkenums |
pankso@12471 | 74 do |
pankso@12471 | 75 rm $fs/usr/bin/$bin |
pankso@12471 | 76 done |
pankso@12471 | 77 |
pankso@12471 | 78 # Cook packages that want glib. |
pankso@12471 | 79 for w in libgio libgio-dev |
pankso@12471 | 80 do |
pascal@15152 | 81 [ -x "/usr/bin/cook" ] && echo cook $w |
pankso@12471 | 82 done |
pankso@22 | 83 } |