wok-next annotate sox/receipt @ rev 20456

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 03:33:54 2018 +0200 (2018-03-02)
parents dd145c435e4b
children 9e5dca6702bf
rev   line source
al@20456 1 # SliTaz package receipt v2.
pascal@1347 2
pascal@1347 3 PACKAGE="sox"
slaxemulator@9193 4 VERSION="14.3.2"
pascal@1347 5 CATEGORY="multimedia"
al@20456 6 SHORT_DESC="Swiss Army knife of sound processing programs"
pascal@1347 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15023 8 LICENSE="GPL LGPL"
al@20456 9 WEB_SITE="http://sox.sourceforge.net/"
al@20456 10
pascal@1347 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1347 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@1347 13
al@20456 14 BUILD_DEPENDS_arm="ffmpeg-dev libsndfile-dev libid3tag-dev libmad-dev \
al@20456 15 libvorbis-dev libpng16-dev lame-dev libsamplerate-dev alsa-lib-dev \
al@20456 16 libao-dev libogg-dev libmagic-dev"
pankso@16379 17 BUILD_DEPENDS="ffmpeg-dev libsndfile-dev libid3tag-dev libmad-dev \
al@20454 18 libvorbis-dev libpng16-dev lame-dev libsamplerate-dev alsa-lib-dev \
al@20456 19 libao-dev libogg-dev libmagic-dev flac-dev"
al@20456 20 SPLIT="sox-dev"
pankso@16379 21
al@20456 22 compile_rules() {
pankso@16379 23 ./configure \
pankso@16379 24 --with-distro="SliTaz" \
pankso@16379 25 $CONFIGURE_ARGS &&
pankso@16379 26 make && make install
pascal@1347 27 }
pascal@1347 28
al@20456 29 genpkg_rules() {
al@20456 30 case $PACKAGE in
al@20456 31 sox)
al@20456 32 mkdir -p $fs/usr/lib/sox
al@20456 33 cp -a $install/usr/bin $fs/usr
al@20456 34 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@20456 35 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
al@20456 36 case "$SLITAZ_ARCH" in
al@20456 37 arm*)
al@20456 38 DEPENDS="libltdl libsamplerate alsa-lib libid3tag libmad \
al@20456 39 libvorbis libpng16 lame libmagic libgomp libao ffmpeg \
al@20456 40 libsndfile"
al@20456 41 ;;
al@20456 42 *)
al@20456 43 DEPENDS="libltdl libsamplerate alsa-lib libid3tag libmad \
al@20456 44 libvorbis libpng16 lame libmagic libgomp libao ffmpeg \
al@20456 45 libsndfile flac"
al@20456 46 ;;
al@20456 47 esac
al@20456 48 ;;
al@20456 49 *-dev)
al@20456 50 mkdir -p $fs/usr/lib/sox
al@20456 51 cp -a $install/usr/include $fs/usr
al@20456 52 cp -a $install/usr/lib/*a $fs/usr/lib
al@20456 53 #cp -a $install/usr/lib/sox/*a $fs/usr/lib
al@20456 54 ;;
al@20456 55 esac
pascal@1347 56 }