wok rev 16114

ARM: sucess cross compiling slim
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 22 20:15:59 2014 +0100 (2014-03-22)
parents 70122e7eef9a
children 784241c8e52c
files slim/receipt
line diff
     1.1 --- a/slim/receipt	Fri Mar 21 19:57:11 2014 +0000
     1.2 +++ b/slim/receipt	Sat Mar 22 20:15:59 2014 +0100
     1.3 @@ -10,7 +10,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WGET_URL="http://download.berlios.de/slim/$TARBALL"
     1.6  CONFIG_FILES="/etc/slim.conf"
     1.7 -#HOST_ARCH="i486 arm"
     1.8 +HOST_ARCH="i486 arm"
     1.9  
    1.10  RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too
    1.11  SUGGESTED="slim-theme-default slitaz-configs"
    1.12 @@ -18,7 +18,13 @@
    1.13  BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-libXft-dev xorg-libXmu-dev"
    1.14  
    1.15  case "$ARCH" in
    1.16 -	i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake" ;;
    1.17 +	i?86) 
    1.18 +		BUILD_DEPENDS="$BUILD_DEPENDS cmake" 
    1.19 +		INCL=/usr/include
    1.20 +		LIBS=/usr/lib ;;
    1.21 +	arm*)
    1.22 +		INCL=/cross/$ARCH/sysroot/usr/include
    1.23 +		LIBS=/cross/$ARCH/sysroot/usr/lib ;;
    1.24  esac
    1.25  
    1.26  # Rules to configure and make the package.
    1.27 @@ -28,7 +34,9 @@
    1.28  	mkdir build; cd build
    1.29  	cmake \
    1.30  		-DCMAKE_INSTALL_PREFIX=/usr \
    1.31 -		-DX11_Xmu_LIB=-lXmu \
    1.32 +		-DX11_Xmu_LIB="$LIBS/libXmu.so" \
    1.33 +		-DX11_Xft_INCLUDE_PATH=${INCL} \
    1.34 +		-DX11_Xmu_INCLUDE_PATH= ${INCL} \
    1.35  		.. &&
    1.36  	make &&
    1.37  	make DESTDIR=$DESTDIR install