wok rev 20406

asterisk: add code2 & opus codec
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 20 23:12:02 2018 +0200 (2018-07-20)
parents 323ef21d707d
children 8c314507df00
files asterisk/receipt littlefs-fuse/receipt
line diff
     1.1 --- a/asterisk/receipt	Mon Jul 09 22:25:53 2018 +0200
     1.2 +++ b/asterisk/receipt	Fri Jul 20 23:12:02 2018 +0200
     1.3 @@ -17,7 +17,7 @@
     1.4  speex iksemel spandsp tiff radiusclient-ng nbs freetds libpostgresqlclient \
     1.5  libmysqlclient libunixODBC popt dahdi libpri lua libcap attr net-snmp \
     1.6  portaudio sqlite libkrb5 libcomerr3 libsdl libsdl-image libssl libxml2 bluez \
     1.7 -libldap libical neon util-linux-uuid"
     1.8 +libldap libical neon util-linux-uuid opus code2"
     1.9  BUILD_DEPENDS="gtk+-dev libxml2-dev postgresql-dev libsdl-dev ncurses-dev \
    1.10  gmime gmime-dev unixODBC-dev unixODBC openldap-dev openldap \
    1.11  dahdi-linux dahdi-tools dahdi-dev \
    1.12 @@ -25,7 +25,7 @@
    1.13  openssl-dev lua-dev lua libpri-dev bluez-dev bluez portaudio-dev alsa-lib-dev \
    1.14  libsdl-image-dev net-snmp iksemel libical-dev curl-dev libcap-dev iksemel-dev \
    1.15  jack-audio-connection-kit-dev radiusclient-ng-dev radiusclient-ng \
    1.16 -libvorbis-dev speex-dev"
    1.17 +libvorbis-dev speex-dev opus-dev code2-dev autoconf automake libtool"
    1.18  
    1.19  # Rules to configure and make the package.
    1.20  #
    1.21 @@ -47,13 +47,23 @@
    1.22  	busybox sed -i 's|lua5.1/||' pbx/pbx_lua.c
    1.23  	grep -rsl '^#define AST_PBX_MAX_STACK' * | xargs busybox sed -i \
    1.24  		's/define AST_PBX_MAX_STACK.*/define AST_PBX_MAX_STACK 1024/'
    1.25 -	[ -s $SOURCES_REPOSITORY/rfc3951.txt ] ||
    1.26 -		wget -P $SOURCES_REPOSITORY http://www.ietf.org/rfc/rfc3951.txt
    1.27 +	while read url ; do
    1.28 +		[ -s $SOURCES_REPOSITORY/$(basename "$url") ] ||
    1.29 +		    wget --no-check-certificate -P $SOURCES_REPOSITORY "$url"
    1.30 +	done <<EOT
    1.31 +http://www.ietf.org/rfc/rfc3951.txt                                            
    1.32 +https://github.com/meetecho/asterisk-opus/raw/master/asterisk_opus%2Bvp8.diff  
    1.33 +http://svn.code.sf.net/p/freetel/code/codec2/branches/0.5/asterisk-11/asterisk-11.8.1-codec2.patch                                                             
    1.34 +http://svn.code.sf.net/p/freetel/code/codec2/branches/0.5/asterisk-11/asterisk-11.8.1-opus-codec2.patch                                                        
    1.35 +EOT
    1.36  	cp $SOURCES_REPOSITORY/rfc3951.txt codecs/ilbc ||
    1.37  	cp $stuff/rfc3951.txt codecs/ilbc
    1.38  	[ -f codecs/ilbc/iLBC_define.h ] || ( cd codecs/ilbc &&
    1.39  		awk -f $stuff/extract-cfile.awk rfc3951.txt > /dev/null )
    1.40 -	mkdir -p $DESTDIR/usr/bin
    1.41 +	patch -p1 < $SOURCES_REPOSITORY/asterisk_opus%2Bvp8.diff                
    1.42 +	patch -p1 < $SOURCES_REPOSITORY/asterisk-11.8.1-opus-codec2.patch       
    1.43 +	mkdir -p $DESTDIR/usr/bin                                               
    1.44 +	./bootstrap.sh                                                          
    1.45  	./configure \
    1.46  		--prefix=/usr \
    1.47  		--sysconfdir=/etc \
     2.1 --- a/littlefs-fuse/receipt	Mon Jul 09 22:25:53 2018 +0200
     2.2 +++ b/littlefs-fuse/receipt	Fri Jul 20 23:12:02 2018 +0200
     2.3 @@ -22,6 +22,9 @@
     2.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.5  genpkg_rules()
     2.6  {
     2.7 -	mkdir -p $fs/usr/bin
     2.8 +	mkdir -p $fs/usr/bin $install/usr/share/doc
     2.9  	cp $src/lfs $fs/usr/bin
    2.10 +	cp $src/README.md $install/usr/share/doc
    2.11 +	cp $src/littlefs/DESIGN.md $install/usr/share/doc
    2.12 +	cp $src/littlefs/SPEC.md $install/usr/share/doc
    2.13  }