wok-current rev 16578

Up: prosody (0.9.4) + port to ARM (prosody is in last PiMag, let build a private XMPP chat server)
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 03 12:29:58 2014 +0200 (2014-05-03)
parents dee220ae1803
children 8990b8a225d3
files prosody/receipt
line diff
     1.1 --- a/prosody/receipt	Sat May 03 12:14:03 2014 +0200
     1.2 +++ b/prosody/receipt	Sat May 03 12:29:58 2014 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="prosody"
     1.7 -VERSION="0.9.3"
     1.8 +VERSION="0.9.4"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="xmpp-jabber server in lua"
    1.11  MAINTAINER="allan316@gmail.com"
    1.12 @@ -9,18 +9,28 @@
    1.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14  WEB_SITE="http://prosody.im"
    1.15  WGET_URL="$WEB_SITE/downloads/source/$TARBALL"
    1.16 -#HOST_ARCH="i486 arm"
    1.17 +HOST_ARCH="i486 arm"
    1.18  
    1.19  DEPENDS="lua libidn libssl libcrypto"
    1.20  BUILD_DEPENDS="lua-dev libidn-dev openssl-dev"
    1.21  
    1.22 +# Handle cross compilation
    1.23 +case "$ARCH" in
    1.24 +	arm*) luapath="/cross/$ARCH/sysroot" ;;
    1.25 +esac
    1.26 +
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30  	./configure \
    1.31 -		--prefix=/usr &&
    1.32 -	make CC=${HOST_SYSTEM}-gcc && 
    1.33 -	make DESTDIR=$DESTDIR install
    1.34 +		--prefix=/usr \
    1.35 +		--ostype=linux \
    1.36 +		--c-compiler=${HOST_SYSTEM}-gcc \
    1.37 +		--linker=${HOST_SYSTEM}-gcc \
    1.38 +		--with-lua=${luapath}/usr \
    1.39 +		--with-lua-lib=${luapath}/usr/lib \
    1.40 +		--with-lua-include=${luapath}/usr/include &&
    1.41 +	make && make DESTDIR=$DESTDIR install
    1.42  }
    1.43  
    1.44  # Rules to gen a SliTaz package suitable for Tazpkg.