wok-next annotate 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 |
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" |
pascal@302 | 6 SHORT_DESC="Open Phone Abstraction library." |
pascal@302 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 8 LICENSE="MPL" |
pascal@20092 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@302 | 10 WEB_SITE="http://www.ekiga.org/" |
pascal@5465 | 11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
pascal@15601 | 12 TAGS="telephony" |
pascal@15601 | 13 |
devl547@5515 | 14 BUILD_DEPENDS="ptlib ptlib-dev openssl-dev" |
pascal@20092 | 15 SPLIT="opal opal-dev" |
pascal@302 | 16 |
pascal@302 | 17 # Rules to configure and make the package. |
pascal@302 | 18 compile_rules() |
pascal@302 | 19 { |
pascal@20092 | 20 sed -i 's/CODEC_ID/AV_&/;s/PIX_FMT_/AV_&/' plugins/video/*/*.cxx |
pascal@20092 | 21 sed -i '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' \ |
pascal@20092 | 22 src/im/msrp.cxx |
pascal@302 | 23 ./configure --prefix=/usr --bindir=/bin \ |
pascal@302 | 24 --libexecdir=/usr/bin --mandir=/usr/share/man \ |
pascal@1532 | 25 $CONFIGURE_ARGS && |
pascal@20092 | 26 CXXFLAGS=-Wno-deprecated-declarations make $MAKEFLAGS && |
pascal@15601 | 27 make DESTDIR=$DESTDIR install |
pascal@302 | 28 } |
pascal@302 | 29 |
pascal@302 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@302 | 31 genpkg_rules() |
pascal@302 | 32 { |
pascal@20092 | 33 case $PACKAGE in |
pascal@20092 | 34 opal) |
pascal@20092 | 35 DEPENDS="cyrus-sasl expat jpeg libsdl libogg libtheora \ |
pascal@20092 | 36 libunixODBC openssl ptlib tiff zlib" |
pascal@20092 | 37 mkdir -p $fs/usr |
pascal@20092 | 38 cp -a $install/usr/lib $fs/usr |
pascal@20092 | 39 rm -f $fs/usr/lib/*.a |
pascal@20092 | 40 ;; |
pascal@20092 | 41 opal-dev) |
pascal@20092 | 42 CAT="development|Open Phone Abstraction library devel files." |
pascal@20092 | 43 mkdir -p $fs/usr/lib |
pascal@20092 | 44 cp -a $install/usr/include $fs/usr |
pascal@20092 | 45 cp $install/usr/lib/*.a $fs/usr/lib |
pascal@20092 | 46 ;; |
pascal@20092 | 47 esac |
pascal@302 | 48 } |