wok-next diff opal/receipt @ rev 20297

Up spl (0.7.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 09 21:37:23 2017 +0100 (2017-11-09)
parents 23c3aed67cd9
children 188b011e073a
line diff
     1.1 --- a/opal/receipt	Thu Dec 05 20:23:08 2013 +0000
     1.2 +++ b/opal/receipt	Thu Nov 09 21:37:23 2017 +0100
     1.3 @@ -1,35 +1,48 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="opal"
     1.8 -VERSION="3.6.6"
     1.9 +VERSION="3.10.10"
    1.10  CATEGORY="network"
    1.11  SHORT_DESC="Open Phone Abstraction library."
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="MPL"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.16  WEB_SITE="http://www.ekiga.org/"
    1.17  WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
    1.18  TAGS="telephony"
    1.19  
    1.20 -DEPENDS="cyrus-sasl expat jpeg libsdl libogg libtheora libunixODBC \
    1.21 -openssl ptlib tiff zlib"
    1.22  BUILD_DEPENDS="ptlib ptlib-dev openssl-dev"
    1.23 +SPLIT="opal opal-dev"
    1.24  
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 -	cd $src
    1.29 +	sed -i 's/CODEC_ID/AV_&/;s/PIX_FMT_/AV_&/' plugins/video/*/*.cxx
    1.30 +	sed -i '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' \
    1.31 +		src/im/msrp.cxx
    1.32  	./configure --prefix=/usr --bindir=/bin \
    1.33  	--libexecdir=/usr/bin --mandir=/usr/share/man \
    1.34  	$CONFIGURE_ARGS &&
    1.35 -	make $MAKEFLAGS &&
    1.36 +	CXXFLAGS=-Wno-deprecated-declarations make $MAKEFLAGS &&
    1.37  	make DESTDIR=$DESTDIR install
    1.38  }
    1.39  
    1.40  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.41  genpkg_rules()
    1.42  {
    1.43 -	mkdir -p $fs/usr
    1.44 -	cp -a $install/usr/lib $fs/usr
    1.45 -	rm -f $fs/usr/lib/*.a
    1.46 +	case $PACKAGE in
    1.47 +	opal)
    1.48 +		DEPENDS="cyrus-sasl expat jpeg libsdl libogg libtheora \
    1.49 +			libunixODBC openssl ptlib tiff zlib"
    1.50 +		mkdir -p $fs/usr
    1.51 +		cp -a $install/usr/lib $fs/usr
    1.52 +		rm -f $fs/usr/lib/*.a
    1.53 +		;;
    1.54 +	opal-dev)
    1.55 +		CAT="development|Open Phone Abstraction library devel files."
    1.56 +		mkdir -p $fs/usr/lib
    1.57 +		cp -a $install/usr/include $fs/usr
    1.58 +		cp $install/usr/lib/*.a $fs/usr/lib
    1.59 +		;;
    1.60 +	esac
    1.61  }