wok-undigest diff glib/receipt @ rev 1123

Add metronome
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 15 13:58:15 2014 +0000 (2014-05-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/glib/receipt	Thu May 15 13:58:15 2014 +0000
     1.3 @@ -0,0 +1,84 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="glib"
     1.7 +VERSION="2.36.4"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="C routines."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.13 +WEB_SITE="http://www.gtk.org/"
    1.14 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
    1.15 +HOST_ARCH="i486 arm"
    1.16 +
    1.17 +CROSS_BUGS="arm: glib 2.32.4 error: cannot compute alignment of guint32"
    1.18 +
    1.19 +DEPENDS="pcre libffi libxml2 elfutils"
    1.20 +BUILD_DEPENDS="pcre-dev libffi-dev gettext zlib-dev perl python python-dev \
    1.21 +elfutils-dev libxml2-dev libxml2-tools automake"
    1.22 +
    1.23 +# Handle cross comilation. Use host Perl, Python, etc
    1.24 +case "$ARCH" in
    1.25 +	arm)
    1.26 +		VERSION="2.34.3"
    1.27 +		TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.28 +		WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
    1.29 +		BUILD_DEPENDS="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev" ;;
    1.30 +esac
    1.31 +
    1.32 +# Rules to configure and make the package.
    1.33 +compile_rules()
    1.34 +{
    1.35 +	case "$ARCH" in
    1.36 +		i?86)
    1.37 +			./autogen.sh
    1.38 +			./configure \
    1.39 +				--sysconfdir=/etc \
    1.40 +				--with-pcre=system \
    1.41 +				$CONFIGURE_ARGS ;;
    1.42 +		arm)
    1.43 +			# Native ARM build --> if ARCH != SLITAZ_ARCH ?
    1.44 +			#export LIBTOOL=arm-slitaz-linux-gnueabi-libtool 
    1.45 +			export LD_LIBRARY_PATH=/cross/arm/sysroot/usr/lib:/usr/lib:/lib
    1.46 +			export PKG_CONFIG_LIBPATH=/cross/arm/sysroot/usr/lib/pkgconfig
    1.47 +			
    1.48 +			# Glib
    1.49 +			export glib_cv_stack_grows=${glib_cv_stack_grows=no}
    1.50 +			export glib_cv_uscore=${glib_cv_uscore=no}
    1.51 +			export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
    1.52 +			export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
    1.53 +			export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
    1.54 +			CC="arm-slitaz-linux-gnueabi-gcc" \
    1.55 +			./configure \
    1.56 +				--sysconfdir=/etc \
    1.57 +				--with-pcre=system \
    1.58 +				--build=i486-slitaz-linux \
    1.59 +				--host=arm-slitaz-linux-gnueabi \
    1.60 +				--enable-shared=yes \
    1.61 +				--enable-static=yes ;;
    1.62 +	esac && 
    1.63 +	make && make install
    1.64 +}
    1.65 +
    1.66 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.67 +genpkg_rules()
    1.68 +{
    1.69 +	mkdir -p $fs/usr/lib
    1.70 +	cp -a $install/usr/bin $fs/usr
    1.71 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.72 +	
    1.73 +	# Split gio --> libgio
    1.74 +	rm $fs/usr/lib/libgio*
    1.75 +	
    1.76 +	# Python codegen, tester, Perl mkenums --> glib-dev
    1.77 +	for bin in gdbus-codegen gtester* glib-mkenums
    1.78 +	do
    1.79 +		rm $fs/usr/bin/$bin
    1.80 +	done
    1.81 +	
    1.82 +	# Cook packages that want glib.
    1.83 +	for w in libgio libgio-dev
    1.84 +	do
    1.85 +		[ -x "/usr/bin/cook" ] && echo cook $w
    1.86 +	done
    1.87 +}