wok-6.x annotate linphone/receipt @ rev 25013
updated openal and openal-dev (1.20.1 -> 1.22.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue May 17 07:38:28 2022 +0100 (2022-05-17) |
parents | a3c45ab9082e |
children |
rev | line source |
---|---|
pascal@5763 | 1 # SliTaz package receipt. |
pascal@5763 | 2 |
pascal@5763 | 3 PACKAGE="linphone" |
pascal@12665 | 4 VERSION="3.5.2" |
pascal@5763 | 5 CATEGORY="network" |
Hans-G?nter@23041 | 6 TAGS="softphone telephony" |
pascal@5763 | 7 SHORT_DESC="SIP soft phone." |
pascal@5763 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
pascal@24746 | 10 WEB_SITE="https://www.linphone.org/" |
Hans-G?nter@23041 | 11 |
pascal@13027 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@13027 | 13 WGET_URL="http://download-mirror.savannah.gnu.org/releases/linphone/${VERSION%.*}.x/sources/$TARBALL" |
pascal@13027 | 14 |
Hans-G?nter@23041 | 15 DEPENDS="exosip glib gtk+ ffmpeg libglade libv4l osip speex xorg-libXv" |
Hans-G?nter@23041 | 16 BUILD_DEPENDS="cmake exosip-dev ffmpeg-dev glib-dev gtk+-dev intltool |
Hans-G?nter@23041 | 17 libglade-dev libsdl-dev libv4l-dev osip-dev speex-dev xorg-libXv-dev" |
pascal@5763 | 18 |
pascal@24083 | 19 current_version() |
pascal@24083 | 20 { |
pascal@24083 | 21 local base=http://download-mirror.savannah.gnu.org/releases/linphone |
pascal@24083 | 22 wget -O - $base/$(wget -O - $base 2>/dev/null | \ |
pascal@24083 | 23 sed '/href="[0-9]/!d;s|.*href="\(.*\)/".*|\1|' | sort -Vr | sed q)/sources/ 2>/dev/null | \ |
pascal@24083 | 24 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24083 | 25 } |
pascal@24083 | 26 |
pascal@5763 | 27 # Rules to configure and make the package. |
pascal@5763 | 28 compile_rules() |
pascal@5763 | 29 { |
pascal@19737 | 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
pascal@16658 | 31 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \ |
pascal@16654 | 32 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \ |
pascal@16654 | 33 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \ |
pascal@16654 | 34 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \ |
pascal@16654 | 35 mediastreamer2/src/*.c |
pascal@16659 | 36 sed -i 's/g_thread_init(NULL);//' gtk/*.c |
pascal@13055 | 37 # Define deprecated ffmepg flags ... |
Hans-G?nter@23041 | 38 export CFLAGS="-Wno-deprecated-declarations -DCODEC_FLAG_PART=0x0080 -DCODEC_FLAG_H263P_UMV=0x0200000 -DCODEC_FLAG_H263P_SLICE_STRUCT=0x01000000 -DFF_I_TYPE=1" |
Hans-G?nter@23041 | 39 export LIBS="-lavutil -lz" |
Hans-G?nter@23041 | 40 |
Hans-G?nter@23041 | 41 ./configure \ |
Hans-G?nter@23041 | 42 --prefix=/usr \ |
Hans-G?nter@23041 | 43 --libexecdir=/usr/bin \ |
Hans-G?nter@23041 | 44 --infodir=/usr/share/info \ |
Hans-G?nter@23041 | 45 --mandir=/usr/share/man \ |
Hans-G?nter@23041 | 46 $CONFIGURE_ARGS |
pascal@5763 | 47 make && |
pascal@15311 | 48 make DESTDIR=$DESTDIR install 2>&1 | sed \ |
pascal@15311 | 49 -e "s/css': No such file/css': no such file/" \ |
pascal@15311 | 50 -e "s/html': No such file/html': no such file/" |
pascal@5763 | 51 } |
pascal@5763 | 52 |
pascal@5763 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5763 | 54 genpkg_rules() |
pascal@5763 | 55 { |
Hans-G?nter@23041 | 56 mkdir -p $fs/usr/lib |
Hans-G?nter@23041 | 57 mkdir -p $fs/usr/share |
Hans-G?nter@23041 | 58 |
Hans-G?nter@23041 | 59 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@23041 | 60 cp -a $install/usr/share/pixmaps $fs/usr/share |
Hans-G?nter@23041 | 61 cp -a $install/usr/share/sounds $fs/usr/share |
Hans-G?nter@23041 | 62 cp -a $install/usr/share/locale $fs/usr/share |
Hans-G?nter@23041 | 63 cp -a $install/usr/share/images $fs/usr/share |
Hans-G?nter@23041 | 64 cp -a $install/usr/share/linphone $fs/usr/share |
Hans-G?nter@23041 | 65 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23041 | 66 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@5763 | 67 } |