wok rev 16334

ARM: add idesk
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 11 10:57:36 2014 +0200 (2014-04-11)
parents 2b6001f6ed50
children 84dacddcafd8
files idesk/receipt mtpaint/receipt nano/receipt
line diff
     1.1 --- a/idesk/receipt	Fri Apr 11 09:53:56 2014 +0200
     1.2 +++ b/idesk/receipt	Fri Apr 11 10:57:36 2014 +0200
     1.3 @@ -9,6 +9,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.5  WEB_SITE="http://idesk.sourceforge.net/"
     1.6  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="imlib2 xorg-libXft"
    1.10  BUILD_DEPENDS="imlib2-dev xorg-libXft-dev"
    1.11 @@ -16,7 +17,6 @@
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14  {
    1.15 -	cd $src
    1.16  	patch -p 0 < $stuff/DesktopConfig.patch || exit 1
    1.17  	./configure \
    1.18  		--enable-xft \
     2.1 --- a/mtpaint/receipt	Fri Apr 11 09:53:56 2014 +0200
     2.2 +++ b/mtpaint/receipt	Fri Apr 11 10:57:36 2014 +0200
     2.3 @@ -9,6 +9,7 @@
     2.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     2.5  WEB_SITE="http://mtpaint.sourceforge.net/"
     2.6  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     2.7 +#HOST_ARCH="i486 arm"
     2.8  
     2.9  DEPENDS="gtk+ libpng lcms"
    2.10  BUILD_DEPENDS="gtk+-dev libpng-dev lcms-dev"
    2.11 @@ -17,12 +18,19 @@
    2.12  compile_rules()
    2.13  {
    2.14  	cp -a $stuff/icons/*.xpm $src/src/icons1
    2.15 -	cd $src
    2.16 -	./configure \
    2.17 -		--cpu=$ARCH \
    2.18 -		--prefix=/usr \
    2.19 -		intl nogif &&
    2.20 -	make
    2.21 +	case "$ARCH" in
    2.22 +		i?86)
    2.23 +			./configure \
    2.24 +				--cpu=$ARCH \
    2.25 +				--prefix=/usr \
    2.26 +				intl nogif ;;
    2.27 +		arm*)
    2.28 +			# we need: arm-slitaz-linux-gnueabi-pkg-config
    2.29 +			./configure \
    2.30 +				--prefix=/usr \
    2.31 +				--host=${HOST_SYSTEM} \
    2.32 +				intl nogif
    2.33 +	esac && make
    2.34  	# install mo files to the right place
    2.35  	for i in $(find $src/po/*.mo); do
    2.36  		LNG=$(basename $i .mo)
     3.1 --- a/nano/receipt	Fri Apr 11 09:53:56 2014 +0200
     3.2 +++ b/nano/receipt	Fri Apr 11 10:57:36 2014 +0200
     3.3 @@ -19,20 +19,13 @@
     3.4  SUGGESTED="gpm"
     3.5  BUILD_DEPENDS="ncursesw-dev"
     3.6  
     3.7 -# Handle cross compilation
     3.8 -case "$ARCH" in
     3.9 -	arm)
    3.10 -		export LDFLAGS="-L/usr/cross/arm/lib -L/usr/cross/arm/usr/lib" 
    3.11 -		BUILD_DEPENDS="ncurses-dev";;
    3.12 -	i?86) ARCH_ARGS="--enable-utf8" ;;
    3.13 -esac
    3.14 -
    3.15  # Rules to configure and make the package.
    3.16  compile_rules()
    3.17  {
    3.18  	./configure \
    3.19  		--sysconfdir=/etc \
    3.20  		--localstatedir=/var \
    3.21 +		--enable-utf8 \
    3.22  		$CONFIGURE_ARGS $ARCH_ARGS &&
    3.23  	make && make install
    3.24  }