wok-next annotate opal/receipt @ rev 20854

Add xa, libicns; up vice (3.2)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 26 14:16:09 2018 +0300 (2018-06-26)
parents 4531cfd68634
children c9a7a7b42a86
rev   line source
pascal@20092 1 # SliTaz package receipt v2.
pascal@302 2
pascal@302 3 PACKAGE="opal"
pascal@20092 4 VERSION="3.10.10"
pascal@302 5 CATEGORY="network"
al@20512 6 SHORT_DESC="Open Phone Abstraction library"
pascal@302 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15601 8 LICENSE="MPL"
al@20512 9 WEB_SITE="http://www.ekiga.org/"
al@20512 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/multimedia/opal.html"
al@20512 11
pascal@20092 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@20512 13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
pascal@15601 14
al@20512 15 BUILD_DEPENDS="ptlib-dev openssl-dev"
al@20512 16 SPLIT="opal-dev"
pascal@302 17
al@20512 18 compile_rules() {
al@20512 19 sed -i 's| abs(| std::fabs(|g' plugins/video/common/mpi.cxx
al@20512 20
al@20512 21 sed -i -e 's/CODEC_ID/AV_&/' -e 's/PIX_FMT_/AV_&/' \
al@20512 22 plugins/video/H.263-1998/h263-1998.cxx \
al@20512 23 plugins/video/common/dyna.cxx \
al@20512 24 plugins/video/H.264/h264-x264.cxx \
al@20512 25 plugins/video/MPEG4-ffmpeg/mpeg4.cxx
al@20512 26
al@20512 27 sed -i -e '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' \
pascal@20092 28 src/im/msrp.cxx
al@20512 29
al@20512 30 sed -i -e '/abs(/s/MPI.*)/(int)(&)/' ./plugins/video/common/mpi.cxx
al@20512 31
al@20512 32 ./configure \
al@20512 33 $CONFIGURE_ARGS &&
al@20512 34 CXXFLAGS=-Wno-deprecated-declarations \
al@20512 35 make $MAKEFLAGS &&
al@20512 36 make DESTDIR=$DESTDIR install || return 1
al@20512 37
al@20512 38 chmod 644 $install/usr/lib/libopal_s.a
pascal@302 39 }
pascal@302 40
al@20512 41 genpkg_rules() {
pascal@20092 42 case $PACKAGE in
al@20512 43 opal)
al@20512 44 copy @std
al@20512 45 DEPENDS="cyrus-sasl expat jpeg libsdl libogg libtheora \
pascal@20092 46 libunixODBC openssl ptlib tiff zlib"
al@20512 47 TAGS="telephony"
al@20512 48 ;;
al@20512 49 *-dev)
al@20512 50 copy @dev
al@20512 51 ;;
pascal@20092 52 esac
pascal@302 53 }