wok-next diff asterisk/receipt @ rev 20533
cairo-clock, grub4dos: fix CFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 27 12:50:45 2018 +0200 (2018-03-27) |
parents | d43bf7aae921 |
children | 757d032c55c7 |
line diff
1.1 --- a/asterisk/receipt Wed Mar 21 15:58:17 2018 +0200 1.2 +++ b/asterisk/receipt Tue Mar 27 12:50:45 2018 +0200 1.3 @@ -3,14 +3,15 @@ 1.4 PACKAGE="asterisk" 1.5 VERSION="11.1.1" 1.6 CATEGORY="misc" 1.7 -SHORT_DESC="Open Source PBX and telephony toolkit." 1.8 +SHORT_DESC="Open Source PBX and telephony toolkit" 1.9 MAINTAINER="pascal.bellard@slitaz.org" 1.10 LICENSE="GPL2" 1.11 +WEB_SITE="http://www.asterisk.org/" 1.12 + 1.13 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WGET_URL="http://downloads.asterisk.org/pub/telephony/asterisk/releases/$TARBALL" 1.15 + 1.16 EXTRA_SOURCE_FILES="rfc3951.txt" 1.17 -WEB_SITE="http://www.asterisk.org/" 1.18 -WGET_URL="http://downloads.asterisk.org/pub/telephony/asterisk/releases/$TARBALL" 1.19 -TAGS="telephony" 1.20 1.21 BUILD_DEPENDS="gtk+-dev libxml2-dev postgresql-dev libsdl-dev ncurses-dev \ 1.22 gmime gmime-dev unixODBC-dev unixODBC openldap-dev openldap \ 1.23 @@ -26,8 +27,7 @@ 1.24 # 1.25 # Graphical configuration: 'make menuconfig' or 'make gmenuconfig' 1.26 # 1.27 -compile_rules() 1.28 -{ 1.29 +compile_rules() { 1.30 # according to https://issues.asterisk.org/jira/browse/ASTERISK-20576 1.31 # the message "Makefile:82: pjproject/build.mak: No such file or directory" is normal :-/ 1.32 sed -i 's/>no</>yes</' addons/[acor]*.c 1.33 @@ -42,13 +42,14 @@ 1.34 busybox sed -i 's|lua5.1/||' pbx/pbx_lua.c 1.35 grep -rsl '^#define AST_PBX_MAX_STACK' * | xargs busybox sed -i \ 1.36 's/define AST_PBX_MAX_STACK.*/define AST_PBX_MAX_STACK 1024/' 1.37 - [ -s $SRC/rfc3951.txt ] || 1.38 - wget -P $SRC http://www.ietf.org/rfc/rfc3951.txt 1.39 - cp $SRC/rfc3951.txt codecs/ilbc || 1.40 + [ -s $SOURCES_REPOSITORY/rfc3951.txt ] || 1.41 + wget -P $SOURCES_REPOSITORY http://www.ietf.org/rfc/rfc3951.txt 1.42 + cp $SOURCES_REPOSITORY/rfc3951.txt codecs/ilbc || 1.43 cp $stuff/rfc3951.txt codecs/ilbc 1.44 [ -f codecs/ilbc/iLBC_define.h ] || ( cd codecs/ilbc && 1.45 awk -f $stuff/extract-cfile.awk rfc3951.txt > /dev/null ) 1.46 mkdir -p $DESTDIR/usr/bin 1.47 +# export CXXFLAGS="$CXXFLAGS -fPIC" 1.48 ./configure \ 1.49 --prefix=/usr \ 1.50 --sysconfdir=/etc \ 1.51 @@ -63,30 +64,28 @@ 1.52 gcc rawplayer.c -o $DESTDIR/usr/bin/rawplayer 1.53 } 1.54 1.55 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.56 -genpkg_rules() 1.57 -{ 1.58 +genpkg_rules() { 1.59 case $PACKAGE in 1.60 - asterisk) 1.61 - CONFIG_FILES="/etc/asterisk" 1.62 - DEPENDS="openssl ncurses zlib libogg libvorbis curl newt \ 1.63 + asterisk) 1.64 + CONFIG_FILES="/etc/asterisk" 1.65 + DEPENDS="openssl ncurses zlib libogg libvorbis curl newt \ 1.66 libusb-compat alsa-lib speex iksemel spandsp tiff \ 1.67 radiusclient-ng nbs freetds libpostgresqlclient \ 1.68 libmysqlclient libunixODBC popt dahdi libpri lua \ 1.69 libcap attr net-snmp portaudio sqlite3 libkrb5 \ 1.70 libcomerr3 libsdl libsdl-image libxml2 bluez \ 1.71 libldap libical neon util-linux-uuid" 1.72 - mkdir -p $fs/usr 1.73 - cp -a $install/etc $fs 1.74 - cp -a $install/var $fs 1.75 - cp -a $install/usr/lib $fs/usr 1.76 - cp -a $install/usr/sbin $fs/usr 1.77 - cp -a $stuff/*/ $fs 1.78 - ;; 1.79 - asterisk-dev) 1.80 - mkdir -p $fs/usr 1.81 - cp -a $install/usr/include $fs/usr 1.82 - ;; 1.83 + mkdir -p $fs/usr 1.84 + cp -a $install/etc $fs 1.85 + cp -a $install/var $fs 1.86 + cp -a $install/usr/lib $fs/usr 1.87 + cp -a $install/usr/sbin $fs/usr 1.88 + cp -a $stuff/*/ $fs 1.89 + TAGS="telephony" 1.90 + ;; 1.91 + asterisk-dev) 1.92 + copy @dev 1.93 + ;; 1.94 esac 1.95 } 1.96