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