wok-6.x annotate glib/receipt @ rev 24554
updated flac and flac-dev again (1.3.3 -> 1.3.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 11:25:23 2022 +0100 (2022-02-25) |
parents | 324b3fa82b76 |
children |
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/" |
pascal@24093 | 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$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 |
pascal@24093 | 24 current_version() |
pascal@24093 | 25 { |
pascal@24093 | 26 wget -O - $(dirname $WGET_URL) 2>/dev/null | sed '/LATEST/!d;s|.*IS-||;s|<.*||' |
pascal@24093 | 27 } |
pascal@24093 | 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@16319 | 38 arm*) |
pankso@16015 | 39 # Native ARM build --> if ARCH != SLITAZ_ARCH ? |
pankso@16319 | 40 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib |
pankso@16380 | 41 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig |
pascal@17670 | 42 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib" |
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@16319 | 50 CC="$HOST_SYSTEM-gcc" \ |
pankso@16319 | 51 LIBTOOL="$HOST_SYSTEM-libtool" \ |
pankso@15967 | 52 ./configure \ |
pankso@15967 | 53 --sysconfdir=/etc \ |
pankso@15967 | 54 --with-pcre=system \ |
pankso@15967 | 55 --build=i486-slitaz-linux \ |
pankso@16379 | 56 --host=$ARCH-slitaz-linux-gnueabi \ |
pankso@15967 | 57 --enable-shared=yes \ |
pankso@16380 | 58 --enable-static=yes \ |
pankso@16380 | 59 --disable-rpath ;; |
pankso@15967 | 60 esac && |
slaxemulator@10245 | 61 make && make install |
pankso@22 | 62 } |
pankso@22 | 63 |
pankso@22 | 64 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 65 genpkg_rules() |
pankso@22 | 66 { |
pankso@547 | 67 mkdir -p $fs/usr/lib |
slaxemulator@11626 | 68 cp -a $install/usr/bin $fs/usr |
slaxemulator@10985 | 69 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12471 | 70 |
pankso@12471 | 71 # Split gio --> libgio |
pankso@842 | 72 rm $fs/usr/lib/libgio* |
pankso@12471 | 73 |
slaxemulator@12597 | 74 # Python codegen, tester, Perl mkenums --> glib-dev |
slaxemulator@12597 | 75 for bin in gdbus-codegen gtester* glib-mkenums |
pankso@12471 | 76 do |
pankso@12471 | 77 rm $fs/usr/bin/$bin |
pankso@12471 | 78 done |
pankso@12471 | 79 |
pankso@12471 | 80 # Cook packages that want glib. |
pankso@12471 | 81 for w in libgio libgio-dev |
pankso@12471 | 82 do |
pascal@15152 | 83 [ -x "/usr/bin/cook" ] && echo cook $w |
pankso@12471 | 84 done |
pankso@22 | 85 } |