wok-next rev 21207
try to build asterisk again
author | Hans-G?nter Theisgen |
---|---|
date | Mon Dec 02 09:52:22 2019 +0100 (2019-12-02) |
parents | 4c6133e46a9f |
children | 82d538613d03 |
files | asterisk/receipt |
line diff
1.1 --- a/asterisk/receipt Mon Dec 02 09:25:03 2019 +0100 1.2 +++ b/asterisk/receipt Mon Dec 02 09:52:22 2019 +0100 1.3 @@ -13,19 +13,19 @@ 1.4 1.5 EXTRA_SOURCE_FILES="rfc3951.txt" 1.6 1.7 -BUILD_DEPENDS="gtk2-dev libxml2-dev postgresql-dev sdl-dev ncurses-dev \ 1.8 -gmime gmime-dev unixODBC-dev unixODBC openldap-dev openldap \ 1.9 -dahdi-linux dahdi-tools dahdi-dev \ 1.10 -newt-dev mysql-dev nbs-dev popt-dev neon-dev neon postgresql sqlite3-dev \ 1.11 -openssl-dev lua-dev lua libpri-dev bluez-dev bluez portaudio-dev alsa-lib-dev \ 1.12 -sdl-image-dev net-snmp iksemel libical-dev curl-dev libcap-dev iksemel-dev \ 1.13 -jack-dev radiusclient-ng-dev radiusclient-ng \ 1.14 -libvorbis-dev speex-dev" 1.15 +BUILD_DEPENDS="alsa-lib-dev bluez bluez-dev curl-dev dahdi-dev dahdi-linux 1.16 + dahdi-tools gmime gmime-dev gtk2-dev iksemel iksemel-dev jack-dev 1.17 + libcap-dev libical-dev libpri-dev libvorbis-dev libxml2-dev lua lua-dev 1.18 + mysql-dev nbs-dev ncurses-dev neon neon-dev net-snmp newt-dev openldap 1.19 + openldap-dev openssl-dev popt-dev portaudio-dev postgresql postgresql-dev 1.20 + radiusclient-ng radiusclient-ng-dev sdl-dev sdl-image-dev speex-dev 1.21 + sqlite3-dev unixODBC unixODBC-dev" 1.22 SPLIT="$PACKAGE-dev" 1.23 1.24 # Graphical configuration: 'make menuconfig' or 'make gmenuconfig' 1.25 # 1.26 -compile_rules() { 1.27 +compile_rules() 1.28 +{ 1.29 # according to https://issues.asterisk.org/jira/browse/ASTERISK-20576 1.30 # the message "Makefile:82: pjproject/build.mak: No such file or directory" is normal :-/ 1.31 sed -i 's/>no</>yes</' addons/[acor]*.c 1.32 @@ -48,10 +48,12 @@ 1.33 awk -f $stuff/extract-cfile.awk rfc3951.txt > /dev/null ) 1.34 mkdir -p $install/usr/bin 1.35 # export CXXFLAGS="$CXXFLAGS -fPIC" 1.36 - ./configure \ 1.37 - --without-pwlib \ 1.38 - --with-dahdi=$WOK/dahdi/$(ls $WOK/dahdi/taz) \ 1.39 - --with-tonezone \ 1.40 + 1.41 + ./bootstrap.sh && 1.42 + ./configure \ 1.43 + --without-pwlib \ 1.44 + --with-dahdi=$WOK/dahdi/$(ls $WOK/dahdi/taz) \ 1.45 + --with-tonezone \ 1.46 $CONFIGURE_ARGS && 1.47 make -j1 2>&1 | grep -v pjproject && 1.48 make -j1 DESTDIR=$install install && 1.49 @@ -60,23 +62,25 @@ 1.50 gcc rawplayer.c -o $install/usr/bin/rawplayer 1.51 } 1.52 1.53 -genpkg_rules() { 1.54 +genpkg_rules() 1.55 +{ 1.56 case $PACKAGE in 1.57 asterisk) 1.58 CONFIG_FILES="/etc/asterisk" 1.59 - DEPENDS="openssl ncurses zlib libogg libvorbis curl newt \ 1.60 - libusb-compat alsa-lib speex iksemel spandsp libtiff \ 1.61 - radiusclient-ng nbs freetds libpostgresqlclient \ 1.62 - libmysqlclient libunixODBC popt dahdi libpri lua \ 1.63 - libcap attr net-snmp portaudio sqlite3 libkrb5 \ 1.64 - libcomerr3 sdl sdl-image libxml2 bluez \ 1.65 - libldap libical neon util-linux-uuid" 1.66 + DEPENDS="alsa-lib attr bluez curl dahdi freetds iksemel libcap 1.67 + libcomerr3 libical libkrb5 libldap libmysqlclient libogg 1.68 + libpostgresqlclient libpri libtiff libusb-compat libunixODBC 1.69 + libvorbis libxml2 lua nbs ncurses neon net-snmp newt openssl 1.70 + popt portaudio radiusclient-ng sdl sdl-image spandsp speex 1.71 + sqlite3 util-linux-uuid zlib" 1.72 + 1.73 mkdir -p $fs/usr 1.74 - cp -a $install/etc $fs 1.75 - cp -a $install/var $fs 1.76 - cp -a $install/usr/lib $fs/usr 1.77 - cp -a $install/usr/sbin $fs/usr 1.78 - cp -a $stuff/*/ $fs 1.79 + 1.80 + cp -a $install/etc $fs 1.81 + cp -a $install/var $fs 1.82 + cp -a $install/usr/lib $fs/usr 1.83 + cp -a $install/usr/sbin $fs/usr 1.84 + cp -a $stuff/*/ $fs 1.85 TAGS="telephony" 1.86 ;; 1.87 asterisk-dev) 1.88 @@ -85,7 +89,8 @@ 1.89 esac 1.90 } 1.91 1.92 -setup_rules() { 1.93 +setup_rules() 1.94 +{ 1.95 case "$2" in 1.96 mysql_host) 1.97 sed "s|^hostname=.*|hostname=$3|" -i "$1/etc/asterisk/cdr_mysql.conf"