wok-next view sox/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 e1ee172acb7b
children c3a368c0cddb
line source
1 # SliTaz package receipt.
3 PACKAGE="sox"
4 VERSION="14.3.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Swiss Army knife of sound processing programs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL LGPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://sox.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="libltdl libsamplerate alsa-lib libid3tag libmad libvorbis \
15 libpng16 lame libmagic libgomp libao ffmpeg libsndfile"
16 BUILD_DEPENDS="ffmpeg-dev libsndfile-dev libid3tag-dev libmad-dev \
17 libvorbis-dev libpng16-dev lame-dev libsamplerate-dev alsa-lib-dev \
18 libao-dev libogg-dev libmagic-dev"
20 # Handle SliTaz arch
21 case "$SLITAZ_ARCH" in
22 i?86) DEPENDS="$DEPENDS flac"
23 esac
25 # Handle cross compilation
26 case "$ARCH" in
27 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev"
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --with-distro="SliTaz" \
35 $CONFIGURE_ARGS &&
36 make && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib/sox
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
46 }