wok-next view opal/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 23c3aed67cd9
children 188b011e073a
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 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.ekiga.org/"
11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
12 TAGS="telephony"
14 BUILD_DEPENDS="ptlib ptlib-dev openssl-dev"
15 SPLIT="opal opal-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's/CODEC_ID/AV_&/;s/PIX_FMT_/AV_&/' plugins/video/*/*.cxx
21 sed -i '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' \
22 src/im/msrp.cxx
23 ./configure --prefix=/usr --bindir=/bin \
24 --libexecdir=/usr/bin --mandir=/usr/share/man \
25 $CONFIGURE_ARGS &&
26 CXXFLAGS=-Wno-deprecated-declarations make $MAKEFLAGS &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 case $PACKAGE in
34 opal)
35 DEPENDS="cyrus-sasl expat jpeg libsdl libogg libtheora \
36 libunixODBC openssl ptlib tiff zlib"
37 mkdir -p $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 rm -f $fs/usr/lib/*.a
40 ;;
41 opal-dev)
42 CAT="development|Open Phone Abstraction library devel files."
43 mkdir -p $fs/usr/lib
44 cp -a $install/usr/include $fs/usr
45 cp $install/usr/lib/*.a $fs/usr/lib
46 ;;
47 esac
48 }