wok-next diff prosody/receipt @ rev 17130
Up QtWeb (git-fork)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Tue Sep 09 13:58:22 2014 +0200 (2014-09-09) |
parents | ad0940dfc5c8 |
children | e6615350078d |
line diff
1.1 --- a/prosody/receipt Sun Mar 02 14:10:27 2014 +0100 1.2 +++ b/prosody/receipt Tue Sep 09 13:58:22 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.