wok annotate code2/receipt @ rev 20399

Add code2 (speech codec 0.7-3.2 Kb/s)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 27 16:09:41 2018 +0200 (2018-06-27)
parents
children 1db43c525913
rev   line source
pascal@20399 1 # SliTaz package receipt.
pascal@20399 2
pascal@20399 3 PACKAGE="code2"
pascal@20399 4 VERSION="3723"
pascal@20399 5 CATEGORY="multimedia"
pascal@20399 6 SHORT_DESC="An open source low bit rate speech codec"
pascal@20399 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20399 8 LICENSE="LGPL2.1"
pascal@20399 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20399 10 WEB_SITE="http://rowetel.com/codec2.html"
pascal@20399 11 WGET_URL="subversion|svn://svn.code.sf.net/p/freetel/code/codec2-dev/"
pascal@20399 12
pascal@20399 13 BUILD_DEPENDS="subversion cmake libsamplerate-dev speex-dev"
pascal@20399 14
pascal@20399 15 # Rules to configure and make the package.
pascal@20399 16 compile_rules()
pascal@20399 17 {
pascal@20399 18 sed -i 's| -no-pie||' unittest/CMakeLists.txt
pascal@20399 19 mkdir build_linux
pascal@20399 20 cd build_linux
pascal@20399 21 cmake -DCMAKE_INSTALL_PREFIX=/usr ..
pascal@20399 22 make DESTDIR=$DESTDIR install
pascal@20399 23 }
pascal@20399 24
pascal@20399 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20399 26 genpkg_rules()
pascal@20399 27 {
pascal@20399 28 mkdir -p $fs/usr/lib
pascal@20399 29 cp -a $install/usr/bin $fs/usr
pascal@20399 30 cp -a $install/usr/lib*.so* $fs/usr/lib
pascal@20399 31 }