wok-next diff opal/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | 4531cfd68634 |
children | c9a7a7b42a86 |
line diff
1.1 --- a/opal/receipt Sat Oct 28 12:53:30 2017 +0200 1.2 +++ b/opal/receipt Tue Jun 05 17:27:09 2018 +0300 1.3 @@ -3,46 +3,51 @@ 1.4 PACKAGE="opal" 1.5 VERSION="3.10.10" 1.6 CATEGORY="network" 1.7 -SHORT_DESC="Open Phone Abstraction library." 1.8 +SHORT_DESC="Open Phone Abstraction library" 1.9 MAINTAINER="pascal.bellard@slitaz.org" 1.10 LICENSE="MPL" 1.11 +WEB_SITE="http://www.ekiga.org/" 1.12 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/multimedia/opal.html" 1.13 + 1.14 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.15 -WEB_SITE="http://www.ekiga.org/" 1.16 -WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" 1.17 -TAGS="telephony" 1.18 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" 1.19 1.20 -BUILD_DEPENDS="ptlib ptlib-dev openssl-dev" 1.21 -SPLIT="opal opal-dev" 1.22 +BUILD_DEPENDS="ptlib-dev openssl-dev" 1.23 +SPLIT="opal-dev" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 - sed -i 's/CODEC_ID/AV_&/;s/PIX_FMT_/AV_&/' plugins/video/*/*.cxx 1.29 - sed -i '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' \ 1.30 +compile_rules() { 1.31 + sed -i 's| abs(| std::fabs(|g' plugins/video/common/mpi.cxx 1.32 + 1.33 + sed -i -e 's/CODEC_ID/AV_&/' -e 's/PIX_FMT_/AV_&/' \ 1.34 + plugins/video/H.263-1998/h263-1998.cxx \ 1.35 + plugins/video/common/dyna.cxx \ 1.36 + plugins/video/H.264/h264-x264.cxx \ 1.37 + plugins/video/MPEG4-ffmpeg/mpeg4.cxx 1.38 + 1.39 + sed -i -e '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' \ 1.40 src/im/msrp.cxx 1.41 - ./configure --prefix=/usr --bindir=/bin \ 1.42 - --libexecdir=/usr/bin --mandir=/usr/share/man \ 1.43 - $CONFIGURE_ARGS && 1.44 - CXXFLAGS=-Wno-deprecated-declarations make $MAKEFLAGS && 1.45 - make DESTDIR=$DESTDIR install 1.46 + 1.47 + sed -i -e '/abs(/s/MPI.*)/(int)(&)/' ./plugins/video/common/mpi.cxx 1.48 + 1.49 + ./configure \ 1.50 + $CONFIGURE_ARGS && 1.51 + CXXFLAGS=-Wno-deprecated-declarations \ 1.52 + make $MAKEFLAGS && 1.53 + make DESTDIR=$DESTDIR install || return 1 1.54 + 1.55 + chmod 644 $install/usr/lib/libopal_s.a 1.56 } 1.57 1.58 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.59 -genpkg_rules() 1.60 -{ 1.61 +genpkg_rules() { 1.62 case $PACKAGE in 1.63 - opal) 1.64 - DEPENDS="cyrus-sasl expat jpeg libsdl libogg libtheora \ 1.65 + opal) 1.66 + copy @std 1.67 + DEPENDS="cyrus-sasl expat jpeg libsdl libogg libtheora \ 1.68 libunixODBC openssl ptlib tiff zlib" 1.69 - mkdir -p $fs/usr 1.70 - cp -a $install/usr/lib $fs/usr 1.71 - rm -f $fs/usr/lib/*.a 1.72 - ;; 1.73 - opal-dev) 1.74 - CAT="development|Open Phone Abstraction library devel files." 1.75 - mkdir -p $fs/usr/lib 1.76 - cp -a $install/usr/include $fs/usr 1.77 - cp $install/usr/lib/*.a $fs/usr/lib 1.78 - ;; 1.79 + TAGS="telephony" 1.80 + ;; 1.81 + *-dev) 1.82 + copy @dev 1.83 + ;; 1.84 esac 1.85 }