wok view mpg123/receipt @ rev 16491

ARM: add mercurial with a fancy compile hack \o/
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 14:37:13 2014 +0200 (2014-04-23)
parents 7a820bd0c608
children ba780b0b772e
line source
1 # SliTaz package receipt.
3 PACKAGE="mpg123"
4 VERSION="1.18.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Command line audio player and streamer"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.mpg123.de/"
11 WGET_URL="http://www.mpg123.de/download/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="alsa-lib audiofile"
15 BUILD_DEPENDS="alsa-lib-dev audiofile-dev"
17 # Arch optimisation
18 case "$ARCH" in
19 i486) ARCH_ARGS="--with-cpu=i486" ;;
20 arm*) ARCH_ARGS="--with-cpu=arm_nofpu" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --with-default-audio=alsa \
28 --with-audio="alsa" \
29 $CONFIGURE_ARGS ${ARCH_ARGS} &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 # ARM
40 if [ -d "$install/usr/lib/mpg123" ]; then
41 cp -a $install/usr/lib/mpg123 $fs/usr/lib
42 find $fs/usr/lib -name "*.la" -exec rm -f {} \;
43 fi
44 # Needed to work!!! Dont remove
45 cp $install/usr/lib/libmpg123.la $fs/usr/lib
46 }